diff options
Diffstat (limited to 'modules/home-manager/hypr')
| -rw-r--r-- | modules/home-manager/hypr/binds.nix | 1 | ||||
| -rw-r--r-- | modules/home-manager/hypr/decoration.nix | 10 | ||||
| -rw-r--r-- | modules/home-manager/hypr/waybar-hyprland.nix | 8 |
3 files changed, 10 insertions, 9 deletions
diff --git a/modules/home-manager/hypr/binds.nix b/modules/home-manager/hypr/binds.nix index 8d2d772..865ac33 100644 --- a/modules/home-manager/hypr/binds.nix +++ b/modules/home-manager/hypr/binds.nix @@ -16,6 +16,7 @@ "$mod, F2, exec, $term" "$mod, F3, exec, $filem" "$mod, F4, killactive," + "$mod SHIFT, F4, exec, hyprctl kill" "$mod, F, fullscreen" "$mod, T, togglefloating" diff --git a/modules/home-manager/hypr/decoration.nix b/modules/home-manager/hypr/decoration.nix index e928a51..e9d5dfe 100644 --- a/modules/home-manager/hypr/decoration.nix +++ b/modules/home-manager/hypr/decoration.nix @@ -16,11 +16,11 @@ "f[1], gapsout:0, gapsin:0" ]; - windowrulev2 = [ - "bordersize 0, floating:0, onworkspace:w[tv1]" - "rounding 0, floating:0, onworkspace:w[tv1]" - "bordersize 0, floating:0, onworkspace:f[1]" - "rounding 0, floating:0, onworkspace:f[1]" + windowrule = [ + "border_size 0, match:float 0, match:workspace w[tv1]" + "rounding 0, match:float 0, match:workspace w[tv1]" + "border_size 0, match:float 0, match:workspace f[1]" + "rounding 0, match:float 0, match:workspace f[1]" ]; }; diff --git a/modules/home-manager/hypr/waybar-hyprland.nix b/modules/home-manager/hypr/waybar-hyprland.nix index 15b8d7c..7941170 100644 --- a/modules/home-manager/hypr/waybar-hyprland.nix +++ b/modules/home-manager/hypr/waybar-hyprland.nix @@ -8,7 +8,7 @@ mainBar = { layer = "top"; position = "top"; - height = 15; + height = 30; modules-left = [ "hyprland/workspaces" "idle_inhibitor" ]; modules-center = [ "hyprland/window" ]; @@ -64,12 +64,12 @@ on-scroll-down = "playerctl --player=spotify_player,spotify previous"; exec = "${pkgs.writeShellScriptBin "spotify-module-script" '' shorten() { - if [ ''${#1} -le 16 ]; then + if [ ''${#1} -le 12 ]; then printf "%s" "$1" else - local truncated="''${1:0:13}" + local truncated="''${1:0:9}" if [ "''${truncated: -1}" = " " ]; then - truncated="''${truncated:0:12}" + truncated="''${truncated:0:8}" fi printf "%s…" "$truncated" fi |
