From 62b98fbdf59c107283576ffd1879dd3ccc4c5d76 Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Wed, 17 Jul 2024 14:51:42 +0200 Subject: [PATCH 1/5] add godot et al --- gunther/leonv.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gunther/leonv.nix b/gunther/leonv.nix index e87b415..d214113 100755 --- a/gunther/leonv.nix +++ b/gunther/leonv.nix @@ -22,6 +22,10 @@ nextcloud-client ausweisapp + godot_4 + dotnet-runtime + blender + aseprite # smt solver for liquid haskell z3 @@ -80,8 +84,9 @@ inputs.hyprland-contrib.packages.${pkgs.system}.grimblast bluez htop - gnome.file-roller + file-roller zip + unzip # yubikey yubico-pam From 873231511a2f7e21e03209a88cc36e6d15a6d13e Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Wed, 17 Jul 2024 14:52:10 +0200 Subject: [PATCH 2/5] fix workspaces and window title widgets --- common/eww/config/widgets/window-title/get-window-title.sh | 2 +- common/eww/config/widgets/workspaces/get-active-workspace.sh | 2 +- common/eww/config/widgets/workspaces/get-workspaces.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/eww/config/widgets/window-title/get-window-title.sh b/common/eww/config/widgets/window-title/get-window-title.sh index f5a494a..7120055 100644 --- a/common/eww/config/widgets/window-title/get-window-title.sh +++ b/common/eww/config/widgets/window-title/get-window-title.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash hyprctl activewindow -j | jq --raw-output .title -socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}' \ No newline at end of file +socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}' \ No newline at end of file diff --git a/common/eww/config/widgets/workspaces/get-active-workspace.sh b/common/eww/config/widgets/workspaces/get-active-workspace.sh index 0ebac7b..c317202 100755 --- a/common/eww/config/widgets/workspaces/get-active-workspace.sh +++ b/common/eww/config/widgets/workspaces/get-active-workspace.sh @@ -2,5 +2,5 @@ hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id' -socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | +socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}' \ No newline at end of file diff --git a/common/eww/config/widgets/workspaces/get-workspaces.sh b/common/eww/config/widgets/workspaces/get-workspaces.sh index fa7d904..6aaf995 100755 --- a/common/eww/config/widgets/workspaces/get-workspaces.sh +++ b/common/eww/config/widgets/workspaces/get-workspaces.sh @@ -6,6 +6,6 @@ spaces (){ } spaces -socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do +socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do spaces done \ No newline at end of file From 6db1f19027a98da3c21a3e537aba2e73bd40dd88 Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Wed, 17 Jul 2024 14:52:28 +0200 Subject: [PATCH 3/5] flake.lock: Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/bbe6e94737289c8cb92d4d8f9199fbfe4f11c0ba' (2024-07-05) → 'github:nix-community/home-manager/afd2021bedff2de92dfce0e257a3d03ae65c603d' (2024-07-16) • Updated input 'hyprland-contrib': 'github:hyprwm/contrib/29a8374f4b9206d5c4af84aceb7fb5dff441ea60' (2024-06-15) → 'github:hyprwm/contrib/65d42dcbfde2229a75ccdb195c318dfe241f9ade' (2024-07-11) • Updated input 'unstable': 'github:nixos/nixpkgs/9f4128e00b0ae8ec65918efeba59db998750ead6' (2024-07-03) → 'github:nixos/nixpkgs/693bc46d169f5af9c992095736e82c3488bf7dbb' (2024-07-14) --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 5a04289..bb30500 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1720167120, - "narHash": "sha256-K9JYdlPiyaXp33JRg7CT8rMwH56e4ncXSsXW/YKnNXc=", + "lastModified": 1721135958, + "narHash": "sha256-H548rpPMsn25LDKn1PCFmPxmWlClJJGnvdzImHkqjuY=", "owner": "nix-community", "repo": "home-manager", - "rev": "bbe6e94737289c8cb92d4d8f9199fbfe4f11c0ba", + "rev": "afd2021bedff2de92dfce0e257a3d03ae65c603d", "type": "github" }, "original": { @@ -27,11 +27,11 @@ ] }, "locked": { - "lastModified": 1718476555, - "narHash": "sha256-fuWpgh8KasByIJWE+xVd37Al0LV5YAn6s871T50qVY0=", + "lastModified": 1720709712, + "narHash": "sha256-78j/cY+AXoMIqqiNc1vWx237EPfpERAcYsb57ABUbwQ=", "owner": "hyprwm", "repo": "contrib", - "rev": "29a8374f4b9206d5c4af84aceb7fb5dff441ea60", + "rev": "65d42dcbfde2229a75ccdb195c318dfe241f9ade", "type": "github" }, "original": { @@ -49,11 +49,11 @@ }, "unstable": { "locked": { - "lastModified": 1720031269, - "narHash": "sha256-rwz8NJZV+387rnWpTYcXaRNvzUSnnF9aHONoJIYmiUQ=", + "lastModified": 1720957393, + "narHash": "sha256-oedh2RwpjEa+TNxhg5Je9Ch6d3W1NKi7DbRO1ziHemA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9f4128e00b0ae8ec65918efeba59db998750ead6", + "rev": "693bc46d169f5af9c992095736e82c3488bf7dbb", "type": "github" }, "original": { From 342b68dea4077168b8d4dce4a0662900d65beca7 Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Sun, 28 Jul 2024 21:19:50 +0200 Subject: [PATCH 4/5] flake.lock: Update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/afd2021bedff2de92dfce0e257a3d03ae65c603d' (2024-07-16) → 'github:nix-community/home-manager/d0240a064db3987eb4d5204cf2400bc4452d9922' (2024-07-27) • Updated input 'unstable': 'github:nixos/nixpkgs/693bc46d169f5af9c992095736e82c3488bf7dbb' (2024-07-14) → 'github:nixos/nixpkgs/b73c2221a46c13557b1b3be9c2070cc42cf01eb3' (2024-07-27) --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index bb30500..5484359 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1721135958, - "narHash": "sha256-H548rpPMsn25LDKn1PCFmPxmWlClJJGnvdzImHkqjuY=", + "lastModified": 1722119539, + "narHash": "sha256-2kU90liMle0vKR8exJx1XM4hZh9CdNgZGHCTbeA9yzY=", "owner": "nix-community", "repo": "home-manager", - "rev": "afd2021bedff2de92dfce0e257a3d03ae65c603d", + "rev": "d0240a064db3987eb4d5204cf2400bc4452d9922", "type": "github" }, "original": { @@ -49,11 +49,11 @@ }, "unstable": { "locked": { - "lastModified": 1720957393, - "narHash": "sha256-oedh2RwpjEa+TNxhg5Je9Ch6d3W1NKi7DbRO1ziHemA=", + "lastModified": 1722062969, + "narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "693bc46d169f5af9c992095736e82c3488bf7dbb", + "rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3", "type": "github" }, "original": { From e6917bde531cb3bafd6fa0c9892163888078c67d Mon Sep 17 00:00:00 2001 From: Leon Vatthauer Date: Mon, 29 Jul 2024 18:04:01 +0200 Subject: [PATCH 5/5] work on eww --- absol/configuration.nix | 2 -- absol/eww/config/widgets/resources/eww.yuck | 2 +- .../config/widgets/window-title/get-window-title.sh | 3 --- .../config/widgets/workspaces/get-active-workspace.sh | 2 +- absol/eww/config/widgets/workspaces/get-workspaces.sh | 2 +- common/eww/config/widgets/window-title/eww.yuck | 7 ------- gunther/configuration.nix | 2 -- {common => gunther}/eww/config/eww.scss | 10 ++++------ {common => gunther}/eww/config/eww.yuck | 0 .../eww/config/widgets/resources/eww.yuck | 4 ++-- .../eww/config/widgets/resources/network.sh | 0 .../eww/config/widgets/window-title/eww.yuck | 2 +- .../config/widgets/window-title/get-window-title.sh | 2 +- .../widgets/workspaces/change-active-workspace.sh | 0 .../eww/config/widgets/workspaces/eww.yuck | 0 .../config/widgets/workspaces/get-active-workspace.sh | 0 .../eww/config/widgets/workspaces/get-workspaces.sh | 0 {common => gunther}/eww/default.nix | 0 gunther/leonv.nix | 2 +- 19 files changed, 12 insertions(+), 28 deletions(-) delete mode 100644 absol/eww/config/widgets/window-title/get-window-title.sh delete mode 100644 common/eww/config/widgets/window-title/eww.yuck rename {common => gunther}/eww/config/eww.scss (95%) rename {common => gunther}/eww/config/eww.yuck (100%) rename {common => gunther}/eww/config/widgets/resources/eww.yuck (91%) rename {common => gunther}/eww/config/widgets/resources/network.sh (100%) rename {absol => gunther}/eww/config/widgets/window-title/eww.yuck (73%) rename {common => gunther}/eww/config/widgets/window-title/get-window-title.sh (90%) rename {common => gunther}/eww/config/widgets/workspaces/change-active-workspace.sh (100%) rename {common => gunther}/eww/config/widgets/workspaces/eww.yuck (100%) rename {common => gunther}/eww/config/widgets/workspaces/get-active-workspace.sh (100%) rename {common => gunther}/eww/config/widgets/workspaces/get-workspaces.sh (100%) rename {common => gunther}/eww/default.nix (100%) diff --git a/absol/configuration.nix b/absol/configuration.nix index d126916..f6ed92a 100755 --- a/absol/configuration.nix +++ b/absol/configuration.nix @@ -124,8 +124,6 @@ services.blueman.enable = true; # Enable sound with pipewire. - sound.enable = true; - hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; diff --git a/absol/eww/config/widgets/resources/eww.yuck b/absol/eww/config/widgets/resources/eww.yuck index 8384839..cb7cd18 100644 --- a/absol/eww/config/widgets/resources/eww.yuck +++ b/absol/eww/config/widgets/resources/eww.yuck @@ -86,7 +86,7 @@ ; VOLUME -(defpoll volume_percent :interval "0.1s" :initial "40" "amixer sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%'") +(defpoll volume_percent :interval "0.1s" :initial "40" "wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F. '{print $2}'") (defwidget volume [] (eventbox diff --git a/absol/eww/config/widgets/window-title/get-window-title.sh b/absol/eww/config/widgets/window-title/get-window-title.sh deleted file mode 100644 index f5a494a..0000000 --- a/absol/eww/config/widgets/window-title/get-window-title.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -hyprctl activewindow -j | jq --raw-output .title -socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}' \ No newline at end of file diff --git a/absol/eww/config/widgets/workspaces/get-active-workspace.sh b/absol/eww/config/widgets/workspaces/get-active-workspace.sh index 0ebac7b..c317202 100755 --- a/absol/eww/config/widgets/workspaces/get-active-workspace.sh +++ b/absol/eww/config/widgets/workspaces/get-active-workspace.sh @@ -2,5 +2,5 @@ hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id' -socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | +socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}' \ No newline at end of file diff --git a/absol/eww/config/widgets/workspaces/get-workspaces.sh b/absol/eww/config/widgets/workspaces/get-workspaces.sh index fa7d904..6aaf995 100755 --- a/absol/eww/config/widgets/workspaces/get-workspaces.sh +++ b/absol/eww/config/widgets/workspaces/get-workspaces.sh @@ -6,6 +6,6 @@ spaces (){ } spaces -socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do +socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do spaces done \ No newline at end of file diff --git a/common/eww/config/widgets/window-title/eww.yuck b/common/eww/config/widgets/window-title/eww.yuck deleted file mode 100644 index 66ff506..0000000 --- a/common/eww/config/widgets/window-title/eww.yuck +++ /dev/null @@ -1,7 +0,0 @@ -(deflisten window :initial "" "sh ./widgets/window-title/get-window-title.sh") -(defwidget windowtitle [] - (box :class "title" - (label :text {window == "null" ? "" : window} :class "title" - ) - ) -) \ No newline at end of file diff --git a/gunther/configuration.nix b/gunther/configuration.nix index 11c20a7..401b58c 100755 --- a/gunther/configuration.nix +++ b/gunther/configuration.nix @@ -102,8 +102,6 @@ services.blueman.enable = true; # Enable sound with pipewire. - sound.enable = true; - hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; diff --git a/common/eww/config/eww.scss b/gunther/eww/config/eww.scss similarity index 95% rename from common/eww/config/eww.scss rename to gunther/eww/config/eww.scss index c053b74..f560fd9 100644 --- a/common/eww/config/eww.scss +++ b/gunther/eww/config/eww.scss @@ -27,16 +27,11 @@ $base: #24273a; $mantle: #1e2030; $crust: #181926; -*{ +* { all: unset; font-family: "monospace"; } -// .bar { -// background-color: $base; -// border-radius: 16px; -// } - .container { background-color: $base; border-radius: 16px; @@ -71,16 +66,19 @@ tooltip label { color: $green; margin: 0px 10px 0px 10px; } + .bluetooth_icon { font-size: 18px; color: $blue; margin: 0px 10px 0px 10px; } + .cpu_text { font-size: 18px; color: $maroon; margin: 0px 10px 0px 10px; } + .mem_text { font-size: 18px; color: $yellow; diff --git a/common/eww/config/eww.yuck b/gunther/eww/config/eww.yuck similarity index 100% rename from common/eww/config/eww.yuck rename to gunther/eww/config/eww.yuck diff --git a/common/eww/config/widgets/resources/eww.yuck b/gunther/eww/config/widgets/resources/eww.yuck similarity index 91% rename from common/eww/config/widgets/resources/eww.yuck rename to gunther/eww/config/widgets/resources/eww.yuck index 306588f..3a38f39 100644 --- a/common/eww/config/widgets/resources/eww.yuck +++ b/gunther/eww/config/widgets/resources/eww.yuck @@ -74,13 +74,13 @@ ; VOLUME -(defpoll volume_percent :interval "0.1s" :initial "40" "amixer sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%'") +(defpoll volume_percent :interval "0.1s" :initial "40" "wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F. '{print $2}'") (defwidget volume [] (eventbox :active true :onclick "/usr/bin/env pavucontrol &" - :onscroll "if [ {} = 'up' ]; then wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; else wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-; fi" ; wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- + :onscroll "if [ {} = 'up' ]; then wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; else wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-; fi" (box :space-evenly false :orientation "h" diff --git a/common/eww/config/widgets/resources/network.sh b/gunther/eww/config/widgets/resources/network.sh similarity index 100% rename from common/eww/config/widgets/resources/network.sh rename to gunther/eww/config/widgets/resources/network.sh diff --git a/absol/eww/config/widgets/window-title/eww.yuck b/gunther/eww/config/widgets/window-title/eww.yuck similarity index 73% rename from absol/eww/config/widgets/window-title/eww.yuck rename to gunther/eww/config/widgets/window-title/eww.yuck index 66ff506..bec8851 100644 --- a/absol/eww/config/widgets/window-title/eww.yuck +++ b/gunther/eww/config/widgets/window-title/eww.yuck @@ -1,6 +1,6 @@ (deflisten window :initial "" "sh ./widgets/window-title/get-window-title.sh") (defwidget windowtitle [] - (box :class "title" + (box :class "title" :visible {window == "null" ? false : true} (label :text {window == "null" ? "" : window} :class "title" ) ) diff --git a/common/eww/config/widgets/window-title/get-window-title.sh b/gunther/eww/config/widgets/window-title/get-window-title.sh similarity index 90% rename from common/eww/config/widgets/window-title/get-window-title.sh rename to gunther/eww/config/widgets/window-title/get-window-title.sh index 7120055..2c0a8f1 100644 --- a/common/eww/config/widgets/window-title/get-window-title.sh +++ b/gunther/eww/config/widgets/window-title/get-window-title.sh @@ -1,3 +1,3 @@ -#!/usr/bin/env bash +#!/bin/sh hyprctl activewindow -j | jq --raw-output .title socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}' \ No newline at end of file diff --git a/common/eww/config/widgets/workspaces/change-active-workspace.sh b/gunther/eww/config/widgets/workspaces/change-active-workspace.sh similarity index 100% rename from common/eww/config/widgets/workspaces/change-active-workspace.sh rename to gunther/eww/config/widgets/workspaces/change-active-workspace.sh diff --git a/common/eww/config/widgets/workspaces/eww.yuck b/gunther/eww/config/widgets/workspaces/eww.yuck similarity index 100% rename from common/eww/config/widgets/workspaces/eww.yuck rename to gunther/eww/config/widgets/workspaces/eww.yuck diff --git a/common/eww/config/widgets/workspaces/get-active-workspace.sh b/gunther/eww/config/widgets/workspaces/get-active-workspace.sh similarity index 100% rename from common/eww/config/widgets/workspaces/get-active-workspace.sh rename to gunther/eww/config/widgets/workspaces/get-active-workspace.sh diff --git a/common/eww/config/widgets/workspaces/get-workspaces.sh b/gunther/eww/config/widgets/workspaces/get-workspaces.sh similarity index 100% rename from common/eww/config/widgets/workspaces/get-workspaces.sh rename to gunther/eww/config/widgets/workspaces/get-workspaces.sh diff --git a/common/eww/default.nix b/gunther/eww/default.nix similarity index 100% rename from common/eww/default.nix rename to gunther/eww/default.nix diff --git a/gunther/leonv.nix b/gunther/leonv.nix index d214113..5529c53 100755 --- a/gunther/leonv.nix +++ b/gunther/leonv.nix @@ -3,7 +3,7 @@ imports = [ ./../common ./hypr/hyprland.nix - ./../common/eww + ./eww ]; /* The home.stateVersion option does not have a default and must be set */ home.stateVersion = "24.05";