diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-01-03 17:46:46 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-01-03 17:46:46 +0100 |
| commit | 78d0a00d13066daa7fc5a0a73364c62bcd6eeaca (patch) | |
| tree | 99d5b84224e01b27afb3f211a77ee42a523b103a | |
| parent | d3fd2b7fb9d794b264c1ff303fa3e1a0d48bf929 (diff) | |
hyprdesktop: program-specific improvments
| -rw-r--r-- | share/home/hyprdesktop.nix | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/share/home/hyprdesktop.nix b/share/home/hyprdesktop.nix index 1b66a02..bb3bd24 100644 --- a/share/home/hyprdesktop.nix +++ b/share/home/hyprdesktop.nix @@ -23,7 +23,7 @@ wayland.windowManager.hyprland = let - commands = { + programs = { audio = { increase = "wpctl set-volume @DEFAULT_AUDIO_SINK@ --limit 1.0 5%+"; decrease = "wpctl set-volume @DEFAULT_AUDIO_SINK@ --limit 1.0 5%-"; @@ -46,7 +46,7 @@ extraConfig = '' $mod = SUPER - bind = $mod SHIFT, Return, exec, ${commands.terminal} + bind = $mod SHIFT, Return, exec, ${programs.terminal} general { layout = master @@ -73,8 +73,8 @@ bind = $mod SHIFT, C, killactive bind = $mod SHIFT, F, togglefloating bind = $mod SHIFT, Q, exit - bind = $mod, P, exec, ${commands.cmd.drun} - bind = $mod SHIFT, P, exec, ${commands.cmd.run} + bind = $mod, P, exec, ${programs.cmd.drun} + bind = $mod SHIFT, P, exec, ${programs.cmd.run} bind = $mod, H, cyclenext, prev bind = $mod, L, cyclenext @@ -82,18 +82,18 @@ bind = $mod SHIFT, L, swapnext # audio control - binde =, XF86AudioRaiseVolume, exec, ${commands.audio.increase} - binde =, XF86AudioLowerVolume, exec, ${commands.audio.decrease} - bind =, XF86AudioMute, exec, ${commands.audio.toggle-mute} + binde =, XF86AudioRaiseVolume, exec, ${programs.audio.increase} + binde =, XF86AudioLowerVolume, exec, ${programs.audio.decrease} + bind =, XF86AudioMute, exec, ${programs.audio.toggle-mute} # monitor brightness control - binde =, XF86MonBrightnessUp, exec, ${commands.brightness.increase} - binde =, XF86MonBrightnessDown, exec, ${commands.brightness.decrease} + binde =, XF86MonBrightnessUp, exec, ${programs.brightness.increase} + binde =, XF86MonBrightnessDown, exec, ${programs.brightness.decrease} # Screenshotting # My stupid laptop outputs these three key codes when the PrtSc key is # pressed instead of using just one code like any sane device would - bind = SUPER SHIFT, S, exec, ${commands.screenshot} + bind = SUPER SHIFT, S, exec, ${programs.screenshot} input { # focus change on cursor move @@ -112,6 +112,13 @@ windowrulev2 = workspace 4,class:(Signal) windowrulev2 = workspace 5,class:(Bitwarden) + # workaround for https://github.com/hyprwm/Hyprland/issues/2661 + windowrulev2 = stayfocused, title:^()$,class:^(steam)$ + windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ + + # No fade-in animation for the lanucher + layerrule = noanim, launcher + exec-once = eww --config ${config.programs.eww.configDir} open bar ''; }; |
