start spotifyd after display, add wl-clipboard, add pactl bindings in sway config

This commit is contained in:
Elizabeth Hunt 2023-05-07 10:11:57 -07:00
parent d08519918c
commit 0368c49716
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
3 changed files with 11 additions and 10 deletions

View File

@ -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

View File

@ -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]

View File

@ -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