From 0368c4971639a06072e9f7ac666f7d6c555cca49 Mon Sep 17 00:00:00 2001 From: "elizabeth.hunt@simponic.xyz" Date: Sun, 7 May 2023 10:11:57 -0700 Subject: [PATCH] start spotifyd after display, add wl-clipboard, add pactl bindings in sway config --- .config/sway/config | 15 ++++++++++----- .config/systemd/user/spotifyd.service | 4 ---- scripts/install.sh | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index a6892c8..894c9c1 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -33,10 +33,10 @@ output HEADLESS-1 { # # Example configuration: # -exec swayidle -w \ - timeout 600 'swaylock -f -c 000000' \ - timeout 900 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ - before-sleep 'swaylock -f -c 000000' +#exec swayidle -w \ +# timeout 600 'swaylock -f -c 000000' \ +# timeout 900 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ +# before-sleep 'swaylock -f -c 000000' # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when @@ -82,6 +82,10 @@ exec swayidle -w \ bindsym $mod+Shift+w exec "brightnessctl set +5%" bindsym $mod+Shift+s exec "brightnessctl set 5%-" + # Volume + bindsym $mod+Shift+u exec "pactl set-sink-volume 0 +5%" + bindsym $mod+Shift+d exec "pactl set-sink-volume 0 -5%" + # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows. @@ -224,4 +228,5 @@ include /etc/sway/config.d/* include ~/.config/sway/local.d/* # Display target has started -exec systemctl start --user display.target & +exec systemctl --user import-environment +exec systemctl start --user display.target diff --git a/.config/systemd/user/spotifyd.service b/.config/systemd/user/spotifyd.service index 4627a74..73b9ed0 100644 --- a/.config/systemd/user/spotifyd.service +++ b/.config/systemd/user/spotifyd.service @@ -1,10 +1,6 @@ [Unit] Description=A spotify playing daemon Documentation=https://github.com/Spotifyd/spotifyd -Wants=sound.target -After=sound.target -Wants=network-online.target -After=network-online.target Wants=display.target [Service] diff --git a/scripts/install.sh b/scripts/install.sh index 2b4f30d..cc35b36 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -13,7 +13,7 @@ sudo pacman -S git vim \ base-devel dunst wofi noto-fonts-emoji \ light brightnessctl pass docker \ pavucontrol seahorse man xorg xorg-xwayland \ - lxappearance + lxappearance wl-clipboard # rustup rustup default stable