Sway Edition - General Conversation!

@morten-b @OdiousImp

No sure you decide if you wanted eos LDM or custom eos sway LDM. so i do a test one . use if you want ( no offened if not use any wallpaper ) I just give ideas. :blush:

EOS-Sway_LDM_Grt_TEST-1

Edit… :pray: i fixed mistake :shushing_face:

https://github.com/Shjim-Arch/Files/blob/main/EOS-Sway_LDM_Grt_TEST-1.png

1 Like

@morten-b is fixing the centering issue with wofi and LightDM all we have to do?

LDM for EOS use " /usr/share/endeavouros/backgrounds/endeavouros-wallpaper.png "

1 Like

we’ll probably use yours - it’ll match better and it’s amazing

@OdiousImp

No sure with Mod+b for H split… I look later what use mod+h

i like you change on lockscreen … large circle around :+1:

1 Like

I think all our keybindings follow sway defaults for that stuff. You make more sense, though. I will ask @morten-b first.

It was your amazing lockscreen that made it possible!

Obviously i don’t know what i’m doing? :thinking:

2021-01-26-10:59:52-screenshot

Edit: I tried to install using the script to my i3

@OdiousImp @morten-b

:pray: Sway learrn curve for me :woozy_face: pls point direction i go wrong on cmus in waybar :pray:
when free , rush no :ok_hand:
2021-01-26T

? you try install on top i3?

Yes… i don’t where to start?

Edit: I installed it in base and i have it now but no mouse input? :cry:

When you mean base you mean from a base arch install or what?You have installed in propely you just have to launch from lightdm etc; when logging in

I see you’re launnching sway from inside i3? If your DM doesn’t pick up sway as a option launch it from tty.

are you using the linux-lts kernel? Lightdm doesn’t register mouse into sway from the lts, I don’t know why. You can launch from tty or use the normal kernel

It might be easier to launch cmus from a script like one does in polybar

Then have

"custom/cmus": {
    "format":"ﱘ",
     "exec" : "~/.config/waybar/cmus.sh"
		 "exec-if" : "pgrep -x cmus"
}
1 Like

i use in polybar

#!/bin/bash

prepend_zero () {
        seq -f "%02g" $1 $1
}

artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-))

if [[ $artist = *[!\ ]* ]]; then
        song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-))
        position=$(cmus-remote -C status | grep position | cut -c 10-)
        minutes1=$(prepend_zero $(($position / 60)))
        seconds1=$(prepend_zero $(($position % 60)))
        duration=$(cmus-remote -C status | grep duration | cut -c 10-)
        minutes2=$(prepend_zero $(($duration / 60)))
        seconds2=$(prepend_zero $(($duration % 60)))
        echo -n "     $song    By    $artist   [ $minutes1:$seconds1  /  $minutes2:$seconds2 ]"
else
        echo
fi

in config

[module/player-cmus]
type = custom/script
exec = ~/.config/polybar/player-cmus.sh
interval = 1
click-left = cmus-remote -n &
click-right = cmus-remote -r &
click-middle = cmus-remote -u &

this work better for me … :pray: I try above you post 1st

Oh your one is better. Waybar and Polybar are very similar . Expect for CSS file

:pray: no work both… it ok you NO worry i work on it… :pray: for help :+1:

No I tried to install it first from EndeavourOS i3 that was installed in v-box. Then i tried installing base EndeavourOS but is missing too much. I’m not coder so i need more than just code stuff to explain the steps. Sorry. I will figure it out one step at a time. With a little help from my friends and reading and trying and failing and trying some more maybe. :thinking:

1 Like

You can install from your i3 Edition… You have done so right?

maybe better just add new user . then install it

1 Like

I will try again when i get some time. I have to go shovel snow and go to work soon. Thanks. I keep trying.

2 Likes

exec will be executed if the exit code of exec-if equals 0.

The waybar says exec will only be exacuted if this equals 0 but

pgrep cmus = 7220 not O?