2023-06-09 13:17:34 +02:00
|
|
|
# Fallback rule for monitors.
|
|
|
|
# More specific rules defined in the .nix file.
|
2023-05-24 03:17:09 +02:00
|
|
|
# https://wiki.hyprland.org/Configuring/Monitors/
|
|
|
|
monitor=,preferred,auto,1
|
|
|
|
|
|
|
|
general {
|
|
|
|
cursor_inactive_timeout = 30 # Hide cursor after being inactive for 30s
|
|
|
|
resize_on_border = true # Click on borders with the mouse to resize
|
|
|
|
}
|
|
|
|
|
|
|
|
decoration {
|
2023-08-19 21:31:22 +02:00
|
|
|
rounding = 8 # TODO: inject from nix
|
2023-08-13 04:15:32 +02:00
|
|
|
active_opacity = 1
|
|
|
|
inactive_opacity = 1
|
|
|
|
|
|
|
|
blur {
|
|
|
|
enabled = true
|
|
|
|
ignore_opacity = true
|
2023-11-08 07:16:48 +01:00
|
|
|
xray = true
|
2023-08-13 04:15:32 +02:00
|
|
|
size = 10
|
2023-11-08 07:16:48 +01:00
|
|
|
passes = 4
|
|
|
|
contrast = 1.2
|
2024-04-13 22:42:29 +02:00
|
|
|
brightness = 1.0
|
2023-08-13 04:15:32 +02:00
|
|
|
noise = 0.05
|
|
|
|
}
|
2023-05-24 03:17:09 +02:00
|
|
|
}
|
|
|
|
|
2023-08-17 09:31:46 +02:00
|
|
|
# Blur extra surfaces
|
|
|
|
layerrule = blur,gtk-layer-shell
|
2023-08-19 21:13:34 +02:00
|
|
|
layerrule = blur,anyrun
|
2024-01-04 20:35:10 +01:00
|
|
|
layerrule = blur,waybar
|
2023-08-19 21:13:34 +02:00
|
|
|
layerrule = ignorezero,anyrun
|
2024-01-04 20:35:10 +01:00
|
|
|
layerrule = ignorezero,waybar
|
2023-08-14 13:49:55 +02:00
|
|
|
|
2023-05-24 03:17:09 +02:00
|
|
|
input {
|
|
|
|
kb_layout = us
|
|
|
|
|
|
|
|
# TODO: standardize the touchpad settings.
|
|
|
|
# Right now I also have similar settings for xorg.
|
|
|
|
touchpad {
|
|
|
|
natural_scroll = true # Invert scrolling direction
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gestures {
|
|
|
|
workspace_swipe = true
|
|
|
|
workspace_swipe_fingers = 3
|
|
|
|
}
|
|
|
|
|
2023-07-22 16:21:29 +02:00
|
|
|
misc {
|
|
|
|
# Configure the default hyprland branding
|
|
|
|
disable_hyprland_logo = true
|
|
|
|
disable_splash_rendering = true
|
2023-08-13 04:15:32 +02:00
|
|
|
force_hypr_chan = true
|
2023-07-22 16:21:29 +02:00
|
|
|
}
|
|
|
|
|
2023-11-14 18:12:07 +01:00
|
|
|
animations {
|
|
|
|
enabled = true
|
|
|
|
|
|
|
|
animation = workspaces,1,4,default,slidevert
|
|
|
|
}
|
|
|
|
|
2023-05-24 03:17:09 +02:00
|
|
|
# Execute apps at launch
|
2024-05-01 04:35:50 +02:00
|
|
|
exec-once = wezterm & firefox & discocss & spot & obsidian & obsidiantui & smosgui
|
2023-05-24 03:17:09 +02:00
|
|
|
|
|
|
|
# {{{ Window rules
|
|
|
|
# {{{ Automatically move stuff to workspaces
|
2024-04-07 12:11:57 +02:00
|
|
|
windowrulev2 = workspace 2 silent, title:^(.*Firefox.*)$
|
2024-05-01 04:35:50 +02:00
|
|
|
|
2024-04-07 12:11:57 +02:00
|
|
|
windowrulev2 = workspace 3 silent, title:^(.*(Disc|WebC)ord.*)$
|
2024-05-01 04:35:50 +02:00
|
|
|
windowrulev2 = workspace 3 silent, title:^(.*Element.*)$
|
|
|
|
|
|
|
|
windowrulev2 = workspace 6 silent, title:^(.*(S|s)pot(ify)?.*)$
|
|
|
|
|
2024-04-07 12:11:57 +02:00
|
|
|
windowrulev2 = workspace 7 silent, title:^(.*Obsidian.*)$
|
2024-05-01 04:35:50 +02:00
|
|
|
windowrulev2 = workspace 7 silent, title:^(.*stellar-sanctum)$
|
|
|
|
windowrulev2 = workspace 7 silent, class:^(org\.wezfurlong\.wezterm\.obsidian)$
|
|
|
|
|
2024-04-07 12:11:57 +02:00
|
|
|
windowrulev2 = workspace 8 silent, class:^(org\.wezfurlong\.wezterm\.smos)$
|
2023-05-24 03:17:09 +02:00
|
|
|
# }}}
|
|
|
|
# {{{ Idleinhibit rules
|
|
|
|
# - while firefox is fullscreen
|
|
|
|
windowrulev2 = idleinhibit fullscreen, class:^(firefox)$
|
|
|
|
# - while watching videos
|
|
|
|
windowrulev2 = idleinhibit focus, class:^(mpv|.+exe)$
|
|
|
|
windowrulev2 = idleinhibit focus, class:^(firefox)$, title:^(.*YouTube.*)$
|
|
|
|
# }}}
|
|
|
|
# }}}
|
|
|
|
# {{{ Keybinds
|
|
|
|
$mod = SUPER
|
|
|
|
|
2023-05-31 05:06:51 +02:00
|
|
|
# {{{ General
|
2023-05-24 03:17:09 +02:00
|
|
|
bind = $mod, C, killactive, # Kill current
|
|
|
|
bind = $mod, F, fullscreen, # Fullscreen
|
|
|
|
|
|
|
|
# Execute external things
|
2024-02-12 14:32:59 +01:00
|
|
|
bind = $mod, return, exec, wezterm
|
|
|
|
bind = $mod, T, exec, wl-ocr
|
|
|
|
bind = $mod SHIFT, T, exec, wl-qr
|
|
|
|
bind = $mod CONTROL, T, exec, hyprpicker | wl-copy && libnotify "Copied color $(wp-paste)" # Color picker
|
2023-05-24 03:17:09 +02:00
|
|
|
bind = $mod, Q, exec, wlogout # Show logout menu
|
|
|
|
bind = $mod, L, exec, loginctl lock-session # Lock screen
|
2023-08-19 21:13:34 +02:00
|
|
|
bind = $mod, P, exec, anyrun
|
2023-05-31 05:06:51 +02:00
|
|
|
bind = $mod, B, exec, wlsunset-toggle # Toggle blue light filter thingy
|
2023-06-15 20:08:20 +02:00
|
|
|
bind = $mod, V, exec, wezterm start vimclip # Vim anywhere!
|
2024-04-07 12:11:57 +02:00
|
|
|
bind = $mod, W, exec, /home/adrielus/projects/form-filler/type.sh
|
2023-05-24 03:17:09 +02:00
|
|
|
|
|
|
|
# Work with the special workspace
|
|
|
|
bind = $mod, x, togglespecialworkspace,
|
|
|
|
bind = $mod SHIFT, x, movetoworkspace, special
|
|
|
|
# }}}
|
|
|
|
# {{{ Screenshotting
|
|
|
|
bind = $mod, S, exec, grimblast --notify copysave area
|
|
|
|
bind = $mod SHIFT, S, exec, grimblast --notify copysave active
|
|
|
|
bind = $mod CONTROL, S, exec, grimblast --notify copysave screen
|
|
|
|
# }}}
|
|
|
|
# {{{ Grouping
|
|
|
|
bind = $mod, G, togglegroup,
|
2023-11-15 17:43:12 +01:00
|
|
|
bind = $mod SHIFT, L, changegroupactive, f
|
|
|
|
bind = $mod SHIFT, H, changegroupactive, b
|
2023-05-24 03:17:09 +02:00
|
|
|
# }}}
|
|
|
|
# {{{ Mouse move/resize
|
|
|
|
# Move/resize windows with mod + LMB/RMB and dragging
|
|
|
|
bindm = $mod, mouse:272, movewindow
|
|
|
|
bindm = $mod, mouse:273, resizewindow
|
|
|
|
# }}}
|
|
|
|
# {{{ Move focus
|
|
|
|
bind = $mod, h, movefocus, l
|
|
|
|
bind = $mod, l, movefocus, r
|
|
|
|
bind = $mod, k, movefocus, u
|
|
|
|
bind = $mod, j, movefocus, d
|
|
|
|
# }}}
|
|
|
|
# {{{ Switch to workspace
|
|
|
|
bind = $mod, 1, workspace, 1
|
|
|
|
bind = $mod, 2, workspace, 2
|
|
|
|
bind = $mod, 3, workspace, 3
|
|
|
|
bind = $mod, 4, workspace, 4
|
|
|
|
bind = $mod, 5, workspace, 5
|
|
|
|
bind = $mod, 6, workspace, 6
|
|
|
|
bind = $mod, 7, workspace, 7
|
|
|
|
bind = $mod, 8, workspace, 8
|
|
|
|
bind = $mod, 9, workspace, 9
|
|
|
|
bind = $mod, 0, workspace, 10
|
|
|
|
# }}}
|
|
|
|
# {{{ Send to workspace
|
|
|
|
# Move active window to a workspace with mod + SHIFT + [0-9]
|
|
|
|
bind = $mod SHIFT, 1, movetoworkspace, 1
|
|
|
|
bind = $mod SHIFT, 2, movetoworkspace, 2
|
|
|
|
bind = $mod SHIFT, 3, movetoworkspace, 3
|
|
|
|
bind = $mod SHIFT, 4, movetoworkspace, 4
|
|
|
|
bind = $mod SHIFT, 5, movetoworkspace, 5
|
|
|
|
bind = $mod SHIFT, 6, movetoworkspace, 6
|
|
|
|
bind = $mod SHIFT, 7, movetoworkspace, 7
|
|
|
|
bind = $mod SHIFT, 8, movetoworkspace, 8
|
|
|
|
bind = $mod SHIFT, 9, movetoworkspace, 9
|
|
|
|
bind = $mod SHIFT, 0, movetoworkspace, 10
|
|
|
|
# }}}
|
|
|
|
# {{{ Resize
|
|
|
|
bind=SUPER,R,submap,resize
|
|
|
|
|
|
|
|
submap=resize
|
|
|
|
|
|
|
|
# sets repeatable binds for resizing the active window
|
|
|
|
binde=,l,resizeactive,10 0
|
|
|
|
binde=,h,resizeactive,-10 0
|
|
|
|
binde=,k,resizeactive,0 -10
|
|
|
|
binde=,j,resizeactive,0 10
|
|
|
|
|
|
|
|
bind=,escape,submap,reset
|
|
|
|
|
|
|
|
submap=reset
|
|
|
|
# }}}
|
2024-02-29 11:49:36 +01:00
|
|
|
# {{{ Volume & brightness
|
|
|
|
binde=, XF86AudioRaiseVolume, exec, swayosd --output-volume raise
|
|
|
|
binde=, XF86AudioLowerVolume, exec, swayosd --output-volume lower
|
|
|
|
binde=, XF86AudioMute, exec, swayosd --output-volume mute-toggle
|
|
|
|
binde=, XF86AudioMicMute, exec, swayosd --input-volume mute-toggle
|
|
|
|
binde=, XF86MonBrightnessUp, exec, swayosd --brightness raise
|
|
|
|
binde=, XF86MonBrightnessDown, exec, swayosd --brightness lower
|
|
|
|
# }}}
|
2023-05-24 03:17:09 +02:00
|
|
|
# }}}
|