diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-02-03 16:09:54 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-02-03 16:09:54 +0100 |
| commit | 19f5b3cdca2630e343e525f26dfe36a31460e6d0 (patch) | |
| tree | 259eb401968b4df0493bc540af785547e114f494 /modules/home/i3wm/scripts.nix | |
| parent | 7c5bad501efeb189260e7392793cd1b68aeea7e6 (diff) | |
yeeted niri added i3
Diffstat (limited to 'modules/home/i3wm/scripts.nix')
| -rw-r--r-- | modules/home/i3wm/scripts.nix | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/home/i3wm/scripts.nix b/modules/home/i3wm/scripts.nix deleted file mode 100644 index 4eb0b61..0000000 --- a/modules/home/i3wm/scripts.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ pkgs, ... }: - -{ - home.packages = [ - (pkgs.writeShellScriptBin "get-spotify-status" '' - PARENT_BAR="example" - PLAYER="playerctld" - FORMAT="{{ title }} - {{ artist }}" - - PLAYERCTL_STATUS=$(playerctl --player=$PLAYER status 2>/dev/null) - - if [ "$PLAYERCTL_STATUS" = "Playing" ]; then - playerctl --player=$PLAYER metadata --format "$FORMAT" - elif [ "$PLAYERCTL_STATUS" = "Paused" ]; then - echo "Paused" - else - echo "No music" - fi - '') - - (pkgs.writeShellScriptBin "polybar-hide-on-fullscreen" '' - i3-msg -t subscribe -m '[ "window" ]' | while read -r event; do - if echo "$event" | grep -q '"fullscreen_mode":[[:space:]]*1'; then - polybar-msg cmd hide - elif echo "$event" | grep -q '"fullscreen_mode":[[:space:]]*0'; then - polybar-msg cmd show - fi - done - '') - ]; -}
\ No newline at end of file |
