aboutsummaryrefslogtreecommitdiff
path: root/share/home/hyprdesktop.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/home/hyprdesktop.nix')
-rw-r--r--share/home/hyprdesktop.nix27
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
'';
};