From 59be3fbd673d64c12a1a831081b40f4ae888c939 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Tue, 31 Mar 2026 12:31:00 +0200 Subject: Moved the original i3 config to /home/rices/original to be in line with the other refactored configs --- modules/home/i3wm/original/scripts.nix | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 modules/home/i3wm/original/scripts.nix (limited to 'modules/home/i3wm/original/scripts.nix') diff --git a/modules/home/i3wm/original/scripts.nix b/modules/home/i3wm/original/scripts.nix deleted file mode 100644 index 4eb0b61..0000000 --- a/modules/home/i3wm/original/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 -- cgit v1.2.3