diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-03-24 13:57:44 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-03-24 13:57:44 +0100 |
| commit | 640794a741177bb0bb1a0d161eb743f2bfed73ca (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /enviroments/i3wm.nix | |
| parent | c4af2e03eb09a9b6566da1fd0c8be3e341e97463 (diff) | |
Removed everything
Diffstat (limited to 'enviroments/i3wm.nix')
| -rw-r--r-- | enviroments/i3wm.nix | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/enviroments/i3wm.nix b/enviroments/i3wm.nix deleted file mode 100644 index 0421853..0000000 --- a/enviroments/i3wm.nix +++ /dev/null @@ -1,71 +0,0 @@ -{ config, lib, pkgs, ... }: - - -let - get_spotify_status = pkgs.writeShellScript "get_spotify_status.sh" '' - #!/bin/bash - PARENT_BAR="example" - PARENT_BAR_PID=$(pgrep -a "polybar" | grep "$PARENT_BAR" | cut -d" " -f1) - PLAYER="playerctld" - FORMAT="{{ title }} - {{ artist }}" - - update_hooks() { - while IFS= read -r id; do - polybar-msg -p "$id" hook spotify-play-pause $2 1>/dev/null 2>&1 - done < <(echo "$1") - } - - PLAYERCTL_STATUS=$(playerctl --player=$PLAYER status 2>/dev/null) - EXIT_CODE=$? - - if [ $EXIT_CODE -eq 0 ]; then - STATUS=$PLAYERCTL_STATUS - else - STATUS="No player is running" - fi - - if [ "$1" == "--status" ]; then - echo "$STATUS" - else - if [ "$STATUS" = "Stopped" ]; then - echo "Music Stopped" - elif [ "$STATUS" = "Paused" ]; then - update_hooks "$PARENT_BAR_PID" 2 - playerctl --player=$PLAYER metadata --format "$FORMAT" - elif [ "$STATUS" = "No player is running" ]; then - echo "Music Off" - else - update_hooks "$PARENT_BAR_PID" 1 - playerctl --player=$PLAYER metadata --format "$FORMAT" - fi - fi - ''; - - hidePolybarInFullscreen = pkgs.writeShellScript "hidePolybarInFullscreen.sh" '' - #!/usr/bin/env bash - sleep 1 - 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 - ''; -in -{ - services = { - xserver = { - enable = true; - windowManager.i3 = { - enable = true; - }; - }; - displayManager.defaultSession = "none+i3"; - }; - - home = { - - }; - -}
\ No newline at end of file |
