diff --git a/home-manager/linux/programs/sway.nix b/home-manager/linux/programs/sway.nix index 1663ffd..a970673 100644 --- a/home-manager/linux/programs/sway.nix +++ b/home-manager/linux/programs/sway.nix @@ -71,7 +71,8 @@ in with lib; { # Make qt theming work export QT_QPA_PLATFORMTHEME="qt5ct" # Prepare for wob - export WOBSOCK $XDG_RUNTIME_DIR/wob.sock + export WOBSOCK="$XDG_RUNTIME_DIR/wob.sock" + rm -rf $WOBSOCK && mkfifo $WOBSOCK ''; config = { # Startup wob @@ -179,7 +180,7 @@ in with lib; { "XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1| awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK"; "XF86AudioLowerVolume" = - "bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK"; + "exec pactl set-sink-volume @DEFAULT_SINK@ -5% && pactl get-sink-volume @DEFAULT_SINK@ | head -n 1 | awk '{print substr($5, 1, length($5)-1)}' > $WOBSOCK"; # Play/pause and next song "XF86AudioPlay" = "exec mpc toggle"; "XF86AudioNext" = "exec mpc next";