2023-10-14 20:49:30 +01:00
|
|
|
{ config, pkgs, ... }:
|
2023-09-24 10:29:51 +01:00
|
|
|
let cursorSize = 24;
|
|
|
|
in ''
|
2023-09-04 08:53:41 +01:00
|
|
|
source = ./extra.conf
|
2023-08-22 09:44:40 +01:00
|
|
|
monitor=,preferred,auto,auto
|
|
|
|
|
2023-09-24 10:29:51 +01:00
|
|
|
exec-once = hyprctl setcursor ${config.gtk.cursorTheme.name} ${
|
|
|
|
toString cursorSize
|
|
|
|
}
|
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
env = XDG_CURRENT_DESKTOP=Hyprland
|
|
|
|
env = XDG_SESSION_TYPE=wayland
|
|
|
|
env = XDG_SESSION_DESKTOP=Hyprland
|
|
|
|
env = GDK_BACKEND=wayland,x11
|
2023-09-07 09:22:22 +01:00
|
|
|
env = GTK_THEME,${config.gtk.theme.name}
|
|
|
|
env = XCURSOR_THEME,${config.gtk.cursorTheme.name}
|
2023-09-24 10:29:51 +01:00
|
|
|
env = XCURSOR_SIZE,${toString cursorSize}
|
|
|
|
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
|
|
|
env = QT_QPA_PLATFORM,wayland
|
|
|
|
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
|
|
|
env = MOZ_ENABLE_WAYLAND,1
|
2023-09-13 06:17:51 +01:00
|
|
|
env = DOOMLOCALDIR=${config.home.sessionVariables.DOOMLOCALDIR};
|
|
|
|
env = DOOMPROFILELOADFILE=${config.home.sessionVariables.DOOMPROFILELOADFILE};
|
|
|
|
|
2023-09-24 10:29:51 +01:00
|
|
|
misc {
|
|
|
|
disable_autoreload = true
|
|
|
|
vrr = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
gestures {
|
|
|
|
workspace_swipe = true
|
|
|
|
}
|
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
input {
|
|
|
|
kb_layout = gb
|
|
|
|
follow_mouse = 1
|
|
|
|
touchpad {
|
|
|
|
natural_scroll = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
general {
|
2023-10-17 08:15:52 +01:00
|
|
|
gaps_in = 2.5
|
|
|
|
gaps_out = 5
|
2023-09-24 10:29:51 +01:00
|
|
|
border_size = 1
|
2023-08-22 09:44:40 +01:00
|
|
|
cursor_inactive_timeout = 5
|
2023-10-01 13:05:59 +01:00
|
|
|
layout = master
|
2023-08-22 09:44:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dwindle {
|
|
|
|
force_split = 2
|
|
|
|
preserve_split = true
|
|
|
|
}
|
|
|
|
|
2023-10-01 13:05:59 +01:00
|
|
|
master {
|
|
|
|
mfact = 0.55
|
2023-10-16 11:43:58 +01:00
|
|
|
new_is_master = false
|
|
|
|
new_on_top = false
|
2023-10-01 13:05:59 +01:00
|
|
|
no_gaps_when_only = 0
|
|
|
|
orientation = left
|
|
|
|
}
|
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
decoration {
|
|
|
|
rounding = 10
|
|
|
|
drop_shadow = yes
|
2023-09-24 10:29:51 +01:00
|
|
|
shadow_ignore_window = true
|
2023-08-22 09:44:40 +01:00
|
|
|
shadow_range = 4
|
|
|
|
shadow_render_power = 3
|
|
|
|
blur {
|
|
|
|
enabled = true
|
|
|
|
size = 5
|
|
|
|
passes = 3
|
2023-09-24 10:29:51 +01:00
|
|
|
new_optimizations = true
|
|
|
|
brightness = 1.0
|
|
|
|
noise = 0.02
|
2023-08-22 09:44:40 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
animations {
|
|
|
|
enabled = yes
|
2023-09-28 07:25:42 +01:00
|
|
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
2023-08-22 09:44:40 +01:00
|
|
|
animation = windows, 1, 7, myBezier
|
|
|
|
animation = windowsOut, 1, 7, default, popin 80%
|
|
|
|
animation = border, 1, 10, default
|
|
|
|
animation = borderangle, 1, 8, default
|
|
|
|
animation = fade, 1, 7, default
|
|
|
|
animation = workspaces, 1, 6, default
|
|
|
|
}
|
|
|
|
|
|
|
|
XWayland {
|
|
|
|
force_zero_scaling = true
|
|
|
|
}
|
|
|
|
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
2023-09-27 12:45:12 +01:00
|
|
|
bind = SUPER, F1, exec, ${pkgs.gtklock}/bin/gtklock
|
2023-10-03 07:31:47 +01:00
|
|
|
bind = SUPER, Q, killactive,
|
|
|
|
bind = SUPER SHIFT, Q, exec, wlogout
|
|
|
|
bind = SUPER, V, togglefloating
|
2023-08-22 09:44:40 +01:00
|
|
|
bind = SUPER, M, fullscreen, 0
|
2023-10-03 07:31:47 +01:00
|
|
|
bind = SUPER SHIFT, M, fullscreen, 1
|
2023-09-11 09:25:17 +01:00
|
|
|
bind = SUPER, P, exec, pkill rofi || rofi-pass
|
2023-10-03 07:31:47 +01:00
|
|
|
bind = SUPER SHIFT, P, exec, pkill rofi || rofi-pass --last-used
|
2023-09-11 09:25:17 +01:00
|
|
|
bind = SUPER, X, exec, swaync-client -t
|
2023-08-22 09:44:40 +01:00
|
|
|
|
|
|
|
# Common program shortcuts
|
2023-09-24 10:29:51 +01:00
|
|
|
bind = SUPER, Space, exec, pkill anyrun || anyrun
|
2023-09-11 09:25:17 +01:00
|
|
|
bind = SUPER, Return, exec, alacritty
|
2023-10-03 07:31:47 +01:00
|
|
|
bind = SUPER SHIFT, Return, exec, [float] alacritty
|
2023-08-23 09:31:52 +01:00
|
|
|
|
2023-10-09 12:23:38 +01:00
|
|
|
bind = SUPER ALT, T, exec, [workspace 1] alacritty
|
2023-10-10 16:02:01 +01:00
|
|
|
bind = SUPER ALT, D, exec, [workspace 2] emacs
|
2023-10-03 07:31:47 +01:00
|
|
|
bind = SUPER ALT, W, exec, [workspace 3] firefox
|
2023-10-09 12:23:38 +01:00
|
|
|
bind = SUPER ALT, A, exec, [workspace 4] alacritty -e khal interactive
|
2023-10-10 10:34:34 +01:00
|
|
|
bind = SUPER ALT, F, exec, [workspace 5] alacritty -e mc
|
2023-10-09 12:23:38 +01:00
|
|
|
bind = SUPER ALT, S, exec, [workspace 6] alacritty -e ncspot
|
|
|
|
bind = SUPER ALT, C, exec, [workspace 7] ferdium
|
|
|
|
bind = SUPER ALT, R, exec, [workspace 8] remmina
|
2023-10-10 16:02:01 +01:00
|
|
|
bind = SUPER ALT, G, exec, [workspace 9] steam
|
2023-08-23 09:31:52 +01:00
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
# Misc useful binds
|
2023-10-15 09:10:16 +01:00
|
|
|
bind=,Print,exec,watershot
|
2023-09-24 10:29:51 +01:00
|
|
|
bind=,XF86Calculator,exec,pkill anyrun || anyrun
|
2023-10-12 16:24:55 +01:00
|
|
|
|
2023-10-16 11:43:58 +01:00
|
|
|
# Bind modifiers to show state using swayosd
|
|
|
|
bindl=,Num_lock,exec,${pkgs.swayosd}/bin/swayosd --num-lock
|
|
|
|
bindl=,Caps_lock,exec,${pkgs.swayosd}/bin/swayosd --caps-lock
|
|
|
|
bindl=,Scroll_lock,exec,${pkgs.swayosd}/bin/swayosd --scroll-lock
|
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
# Sound
|
2023-10-12 16:24:55 +01:00
|
|
|
bindl=,XF86AudioMute,exec,${pkgs.swayosd}/bin/swayosd --output-volume=mute-toggle
|
|
|
|
bindl=,XF86AudioMicMute,exec,${pkgs.swayosd}/bin/swayosd --input-volume=mute-toggle
|
|
|
|
bindle=,XF86AudioRaiseVolume,exec,${pkgs.swayosd}/bin/swayosd --output-volume=+5
|
|
|
|
bindle=,XF86AudioLowerVolume,exec,${pkgs.swayosd}/bin/swayosd --output-volume=-5
|
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
# Brightness
|
2023-10-12 20:23:29 +01:00
|
|
|
bindle=,XF86MonBrightnessUp,exec,${pkgs.swayosd}/bin/swayosd --brightness=+5
|
|
|
|
bindle=,XF86MonBrightnessDown,exec,${pkgs.swayosd}/bin/swayosd --brightness=-5
|
2023-10-12 16:24:55 +01:00
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
# Playback
|
2023-09-28 06:57:35 +01:00
|
|
|
bindl=,XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause
|
|
|
|
bindl=,XF86AudioStop,exec,${pkgs.playerctl}/bin/playerctl play-pause
|
|
|
|
bindl=,XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous
|
|
|
|
bindl=,XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next
|
2023-08-22 09:44:40 +01:00
|
|
|
|
|
|
|
bind = SUPER, H, movefocus, l
|
|
|
|
bind = SUPER, L, movefocus, r
|
|
|
|
bind = SUPER, K, movefocus, u
|
|
|
|
bind = SUPER, J, movefocus, d
|
|
|
|
bind = SUPER SHIFT, H, movewindow, l
|
|
|
|
bind = SUPER SHIFT, L, movewindow, r
|
|
|
|
bind = SUPER SHIFT, K, movewindow, u
|
|
|
|
bind = SUPER SHIFT, J, movewindow, d
|
|
|
|
|
2023-10-13 13:23:58 +01:00
|
|
|
# Layer rules
|
2023-10-15 10:43:35 +01:00
|
|
|
$layers = ^(waybar|system-menu|anyrun|gtk-layer-shell|swaync-.+|swayosd)$
|
2023-10-13 13:23:58 +01:00
|
|
|
layerrule = blur, $layers
|
|
|
|
layerrule = ignorealpha 0.5, $layers
|
|
|
|
|
2023-09-05 12:49:33 +01:00
|
|
|
# Window rules
|
2023-10-08 14:07:26 +01:00
|
|
|
windowrule = float,(org.kde.polkit-kde-authentication-agent-1)
|
|
|
|
windowrule = center,(org.kde.polkit-kde-authentication-agent-1)
|
|
|
|
windowrule = pin,(org.kde.polkit-kde-authentication-agent-1)
|
|
|
|
windowrule = dimaround,(org.kde.polkit-kde-authentication-agent-1)
|
|
|
|
windowrule = stayfocused,(org.kde.polkit-kde-authentication-agent-1)
|
2023-09-05 12:49:33 +01:00
|
|
|
windowrule = float,(pavucontrol)
|
|
|
|
windowrule = size 800 600,(pavucontrol)
|
|
|
|
windowrule = move 100%-820 10%,(pavucontrol)
|
|
|
|
windowrule = float,(.blueman-manager-wrapped)
|
|
|
|
windowrule = size 800 600,(.blueman-manager-wrapped)
|
|
|
|
windowrule = move 100%-820 10%,(.blueman-manager-wrapped)
|
|
|
|
windowrule = float,(nm-connection-editor)
|
|
|
|
windowrule = size 800 600,(nm-connection-editor)
|
|
|
|
windowrule = move 100%-820 10%,(nm-connection-editor)
|
2023-09-26 16:50:22 +01:00
|
|
|
windowrule = float,(.protonvpn-wrapped)
|
|
|
|
windowrule = center,(.protonvpn-wrapped)
|
2023-09-05 17:22:21 +01:00
|
|
|
windowrule = float,(Pinentry)
|
|
|
|
windowrule = center,(Pinentry)
|
2023-09-11 08:28:50 +01:00
|
|
|
windowrule = float,(thunar)
|
|
|
|
windowrule = center,(thunar)
|
2023-10-03 15:42:37 +01:00
|
|
|
windowrule = float,(davmail-imap-ImapConnection)
|
|
|
|
windowrule = center,(davmail-imap-ImapConnection)
|
2023-09-24 13:05:26 +01:00
|
|
|
windowrule = float,(wlogout)
|
|
|
|
windowrule = center,(wlogout)
|
2023-10-17 09:57:53 +01:00
|
|
|
windowrule = size 100% 100%,(wlogout)
|
2023-09-24 13:05:26 +01:00
|
|
|
windowrule = nofullscreenrequest,(wlogout)
|
|
|
|
windowrule = nomaximizerequest,(wlogout)
|
2023-10-17 09:57:53 +01:00
|
|
|
windowrule = noborder,(wlogout)
|
|
|
|
windowrule = noanim,(wlogout)
|
2023-09-28 07:20:33 +01:00
|
|
|
windowrule = pin,(wlogout)
|
|
|
|
windowrule = stayfocused,(wlogout)
|
2023-10-17 09:57:53 +01:00
|
|
|
windowrule = keepaspectratio,(wlogout)
|
2023-09-28 08:27:03 +01:00
|
|
|
windowrule = pin,(Rofi)
|
|
|
|
windowrule = dimaround,(Rofi)
|
|
|
|
windowrule = stayfocused,(Rofi)
|
2023-10-16 10:24:57 +01:00
|
|
|
windowrule = nofullscreenrequest,(firefox)
|
|
|
|
windowrule = nomaximizerequest,(firefox)
|
2023-08-22 09:44:40 +01:00
|
|
|
windowrulev2 = float,title:(File|Picture-in-Picture),class:(firefox)
|
2023-10-17 09:57:53 +01:00
|
|
|
windowrulev2 = float,title:^(Extension.*)$,class:(firefox)
|
2023-08-22 09:44:40 +01:00
|
|
|
windowrulev2 = pin,title:(File|Picture-in-Picture),class:(firefox)
|
2023-10-17 09:57:53 +01:00
|
|
|
windowrulev2 = pin,title:^(Extension.*)$,class:(firefox)
|
|
|
|
windowrulev2 = center,title:(File|Picture-in-Picture),class:(firefox)
|
|
|
|
windowrulev2 = center,title:^(Extension.*)$,class:(firefox)
|
|
|
|
windowrulev2 = workspace special silent, title:^(Firefox — Sharing Indicator)$,class:(firefox)
|
|
|
|
windowrulev2 = workspace special silent, title:^(.*is sharing (your screen|a window)\.)$,class:(firefox)
|
2023-08-22 09:44:40 +01:00
|
|
|
windowrulev2 = float,title:(Open),class:(soffice)
|
2023-10-17 09:57:53 +01:00
|
|
|
windowrulev2 = float,title:(Friends List),class:(steam)
|
|
|
|
windowrulev2 = float,title:(Steam Settings),class:(steam)
|
2023-08-22 09:44:40 +01:00
|
|
|
|
2023-09-05 12:49:33 +01:00
|
|
|
# Workspace definitions
|
2023-10-09 12:23:38 +01:00
|
|
|
# 1: [t]erminal
|
|
|
|
bind = SUPER, T, moveworkspacetomonitor, 1 current
|
|
|
|
bind = SUPER, T, workspace, 1
|
|
|
|
bind = SUPER SHIFT, T, movetoworkspace, 1
|
2023-09-05 12:49:33 +01:00
|
|
|
|
2023-10-03 07:31:47 +01:00
|
|
|
# 2: [d]ev
|
|
|
|
bind = SUPER, D, moveworkspacetomonitor, 2 current
|
|
|
|
bind = SUPER, D, workspace, 2
|
|
|
|
bind = SUPER SHIFT, D, movetoworkspace, 2
|
2023-10-14 20:49:30 +01:00
|
|
|
windowrule = workspace 2 silent,(emacs)
|
2023-09-05 12:49:33 +01:00
|
|
|
|
2023-10-03 07:31:47 +01:00
|
|
|
# 3: [b]rowser
|
|
|
|
bind = SUPER, W, moveworkspacetomonitor, 3 current
|
|
|
|
bind = SUPER, W, workspace, 3
|
|
|
|
bind = SUPER SHIFT, W, movetoworkspace, 3
|
2023-10-14 20:49:30 +01:00
|
|
|
windowrule = workspace 3 silent,(firefox)
|
2023-09-05 12:49:33 +01:00
|
|
|
|
2023-10-09 12:23:38 +01:00
|
|
|
# 4: [a]genda (or c[a]lendar)
|
|
|
|
bind = SUPER, A, moveworkspacetomonitor, 4 current
|
|
|
|
bind = SUPER, A, workspace, 4
|
|
|
|
bind = SUPER SHIFT, A, movetoworkspace, 4
|
2023-10-14 20:49:30 +01:00
|
|
|
windowrulev2 = workspace 5 silent,class:(Alacritty),title:(khal interactive)
|
2023-10-09 12:23:38 +01:00
|
|
|
|
|
|
|
# 5: [f]iles
|
|
|
|
bind = SUPER, F, moveworkspacetomonitor, 5 current
|
|
|
|
bind = SUPER, F, workspace, 5
|
|
|
|
bind = SUPER SHIFT, F, movetoworkspace, 5
|
2023-10-14 20:49:30 +01:00
|
|
|
windowrule = workspace 5 silent,^(libreoffice).*
|
|
|
|
windowrulev2 = workspace 5 silent,title:(Open),class:(soffice)
|
2023-10-09 12:23:38 +01:00
|
|
|
|
|
|
|
# 6: [s]potify (or mu[s]ic)
|
|
|
|
bind = SUPER, S, moveworkspacetomonitor, 6 current
|
|
|
|
bind = SUPER, S, workspace, 6
|
|
|
|
bind = SUPER SHIFT, S, movetoworkspace, 6
|
2023-10-14 20:49:30 +01:00
|
|
|
windowrulev2 = workspace 6 silent,class:(Alacritty),title:(ncspot)
|
2023-10-09 12:23:38 +01:00
|
|
|
|
|
|
|
# 7: [c]hat
|
|
|
|
bind = SUPER, C, moveworkspacetomonitor, 7 current
|
|
|
|
bind = SUPER, C, workspace, 7
|
|
|
|
bind = SUPER SHIFT, C, movetoworkspace, 7
|
2023-10-14 20:49:30 +01:00
|
|
|
windowrule = workspace 7 silent,(Signal)
|
|
|
|
windowrule = workspace 7 silent,(fractal)
|
|
|
|
windowrule = workspace 7 silent,(Ferdium)
|
2023-10-09 12:23:38 +01:00
|
|
|
|
|
|
|
# 8: [r]emote
|
|
|
|
bind = SUPER, R, moveworkspacetomonitor, 8 current
|
|
|
|
bind = SUPER, R, workspace, 8
|
|
|
|
bind = SUPER SHIFT, R, movetoworkspace, 8
|
2023-10-14 20:49:30 +01:00
|
|
|
windowrule = workspace 8 silent,(org.remmina.Remmina)
|
|
|
|
windowrule = workspace 8 silent,(Nxplayer.bin)
|
2023-10-09 13:58:53 +01:00
|
|
|
windowrule = nofullscreenrequest,(Nxplayer.bin)
|
|
|
|
windowrule = nomaximizerequest,(Nxplayer.bin)
|
2023-10-09 12:23:38 +01:00
|
|
|
|
|
|
|
# 9: [g]aming
|
|
|
|
bind = SUPER, G, moveworkspacetomonitor, 9 current
|
|
|
|
bind = SUPER, G, workspace, 9
|
|
|
|
bind = SUPER SHIFT, G, movetoworkspace, 9
|
2023-10-14 20:49:30 +01:00
|
|
|
windowrule = workspace 9 silent,(steam)
|
2023-08-22 09:44:40 +01:00
|
|
|
|
|
|
|
# Special workspaces
|
2023-09-11 08:28:50 +01:00
|
|
|
bind = SUPER, comma, workspace, m-1
|
|
|
|
bind = SUPER SHIFT, comma, movetoworkspace, r-1
|
|
|
|
bind = SUPER, period, workspace, m+1
|
|
|
|
bind = SUPER SHIFT, period, movetoworkspace, r+1
|
2023-08-22 09:44:40 +01:00
|
|
|
bind = SUPER, N, workspace, empty
|
|
|
|
bind = SUPER SHIFT, N, movetoworkspace, empty
|
|
|
|
bind = SUPER, minus, togglespecialworkspace
|
|
|
|
bind = SUPER SHIFT, minus, movetoworkspace, special
|
|
|
|
bind = SUPER, tab, workspace, previous
|
|
|
|
bind = SUPER SHIFT, tab, movetoworkspace, previous
|
|
|
|
bind = SUPER, bracketright, focusmonitor, +1
|
|
|
|
bind = SUPER SHIFT, bracketright, movecurrentworkspacetomonitor, +1
|
|
|
|
bind = SUPER, bracketleft, focusmonitor, -1
|
|
|
|
bind = SUPER SHIFT, bracketleft, movecurrentworkspacetomonitor, -1
|
|
|
|
bind = SUPER, U, focusurgentorlast
|
|
|
|
|
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
|
|
bindm = SUPER, mouse:272, movewindow
|
|
|
|
bindm = SUPER, mouse:273, resizewindow
|
|
|
|
|
2023-09-11 13:46:52 +01:00
|
|
|
exec-once = ${pkgs.swaynotificationcenter}/bin/swaync
|
|
|
|
exec-once = ${pkgs.hyprpaper}/bin/hyprpaper
|
2023-10-18 06:58:35 +01:00
|
|
|
exec-once = kidex
|
2023-09-24 07:32:32 +01:00
|
|
|
exec-once = ${pkgs.dex}/bin/dex --autostart
|
2023-10-18 06:58:35 +01:00
|
|
|
exec-once = emacs
|
2023-10-03 07:42:06 +01:00
|
|
|
exec-once = ferdium
|
2023-10-18 06:58:35 +01:00
|
|
|
exec-once = signal-desktop
|
2023-08-22 09:44:40 +01:00
|
|
|
''
|