2023-10-14 20:49:30 +01:00
|
|
|
{ config, pkgs, ... }:
|
2023-10-23 13:21:16 +01:00
|
|
|
let
|
|
|
|
themeName = config.gtk.theme.name;
|
|
|
|
cursorName = config.gtk.cursorTheme.name;
|
|
|
|
cursorSize = "24";
|
2023-09-24 10:29:51 +01:00
|
|
|
in ''
|
2023-09-04 08:53:41 +01:00
|
|
|
source = ./extra.conf
|
2023-08-22 09:44:40 +01:00
|
|
|
monitor=,preferred,auto,auto
|
|
|
|
|
|
|
|
env = XDG_CURRENT_DESKTOP=Hyprland
|
|
|
|
env = XDG_SESSION_TYPE=wayland
|
|
|
|
env = XDG_SESSION_DESKTOP=Hyprland
|
|
|
|
env = GDK_BACKEND=wayland,x11
|
2023-10-23 13:21:16 +01:00
|
|
|
env = GTK_THEME,${themeName}
|
|
|
|
env = XCURSOR_THEME,${cursorName}
|
|
|
|
env = XCURSOR_SIZE,${cursorSize}
|
2023-09-24 10:29:51 +01:00
|
|
|
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
|
|
|
|
2023-10-23 13:21:16 +01:00
|
|
|
exec-once = hyprctl setcursor ${cursorName} ${cursorSize}
|
|
|
|
exec-once = dbus-update-activation-environment --systemd --all
|
|
|
|
exec-once = systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORMTHEME
|
2023-10-23 22:38:35 +01:00
|
|
|
exec-once = systemctl --user restart xdg-desktop-portal.service xdg-desktop-portal-hyprland.service avizo.service
|
2023-10-23 13:21:16 +01:00
|
|
|
|
2023-10-25 07:40:39 +01:00
|
|
|
misc:disable_autoreload = true
|
2023-09-24 10:29:51 +01:00
|
|
|
|
2023-10-25 07:40:39 +01:00
|
|
|
gestures:workspace_swipe = true
|
2023-09-24 10:29:51 +01:00
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
input {
|
|
|
|
kb_layout = gb
|
2023-10-25 07:40:39 +01:00
|
|
|
kb_options = ctrl:nocaps
|
2023-08-22 09:44:40 +01:00
|
|
|
follow_mouse = 1
|
2023-10-25 07:40:39 +01:00
|
|
|
touchpad:natural_scroll = yes
|
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
general {
|
2023-11-04 15:51:05 +00:00
|
|
|
gaps_in = 5
|
|
|
|
gaps_out = 10
|
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-25 17:23:23 +01:00
|
|
|
layout = dwindle
|
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 {
|
2023-10-22 12:58:15 +01:00
|
|
|
rounding = 10
|
2023-08-22 09:44:40 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-10-25 07:40:39 +01:00
|
|
|
xwayland:force_zero_scaling = true
|
2023-08-22 09:44:40 +01:00
|
|
|
|
|
|
|
# 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,
|
2023-10-30 17:54:50 +00:00
|
|
|
bind = SUPER SHIFT, Q, exec, rofi -replace -show power-menu
|
2023-10-03 07:31:47 +01:00
|
|
|
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-10-30 17:54:50 +00:00
|
|
|
bind = SUPER, tab, exec, rofi -replace -show window
|
2023-11-04 12:00:40 +00:00
|
|
|
bind = SUPER, P, exec, pkill rofi || rofi-pass
|
|
|
|
bind = SUPER SHIFT, P, exec, pkill rofi || rofi-pass --last-used
|
2023-10-19 07:40:03 +01:00
|
|
|
bind = SUPER, X, exec, ${pkgs.mako}/bin/makoctl restore
|
|
|
|
bind = SUPER SHIFT, X, exec, ${pkgs.mako}/bin/makoctl dismiss -a
|
2023-08-22 09:44:40 +01:00
|
|
|
|
|
|
|
# Common program shortcuts
|
2023-10-30 21:30:23 +00:00
|
|
|
bind = SUPER, Space, exec, rofi -replace -show combi
|
2023-10-30 17:54:50 +00:00
|
|
|
bind = SUPER SHIFT, Space, exec, rofi -replace -show run
|
2023-09-11 09:25:17 +01:00
|
|
|
bind = SUPER, Return, exec, alacritty
|
2023-10-30 17:54:50 +00:00
|
|
|
bind = SUPER SHIFT, Return, exec, rofi -replace -show ssh
|
2023-08-23 09:31:52 +01:00
|
|
|
|
2023-11-05 07:42:11 +00:00
|
|
|
bind = SUPER ALT, D, exec, [workspace 1] alacritty
|
2023-11-04 12:00:40 +00:00
|
|
|
bind = SUPER ALT, E, exec, [workspace 2] emacs
|
|
|
|
bind = SUPER ALT, W, exec, [workspace 3] nyxt
|
|
|
|
bind = SUPER ALT, F, exec, [workspace 4] thunar
|
2023-11-04 20:08:55 +00:00
|
|
|
bind = SUPER ALT, C, exec, [workspace 5] fractal
|
2023-11-04 10:08:28 +00:00
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
# Misc useful binds
|
2023-10-30 17:54:50 +00:00
|
|
|
bind=,XF86Calculator,exec,rofi -replace -show calc
|
2023-10-12 16:24:55 +01:00
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
# Sound
|
2023-10-19 07:40:03 +01:00
|
|
|
bindl=,XF86AudioMute,exec,${pkgs.avizo}/bin/volumectl %
|
|
|
|
bindl=,XF86AudioMicMute,exec,${pkgs.avizo}/bin/volumectl -m %
|
|
|
|
bindle=,XF86AudioRaiseVolume,exec,${pkgs.avizo}/bin/volumectl -u + 5
|
|
|
|
bindle=,XF86AudioLowerVolume,exec,${pkgs.avizo}/bin/volumectl -u - 5
|
2023-10-12 16:24:55 +01:00
|
|
|
|
2023-08-22 09:44:40 +01:00
|
|
|
# Brightness
|
2023-10-19 07:40:03 +01:00
|
|
|
bindle=,XF86MonBrightnessUp,exec,${pkgs.avizo}/bin/lightctl + 5
|
|
|
|
bindle=,XF86MonBrightnessDown,exec,${pkgs.avizo}/bin/lightctl - 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-30 15:40:28 +00:00
|
|
|
$layers = ^(waybar|system-menu|rofi|anyrun|gtk-layer-shell|notifications)$
|
2023-10-13 13:23:58 +01:00
|
|
|
layerrule = blur, $layers
|
2023-10-19 07:40:03 +01:00
|
|
|
layerrule = ignorealpha 0.3, $layers
|
2023-10-13 13:23:58 +01:00
|
|
|
|
2023-09-05 12:49:33 +01:00
|
|
|
# Window rules
|
2023-11-05 07:54:53 +00:00
|
|
|
windowrule = float,(org.kde.polkit-kde-authentication-agent-1d|Pinentry)
|
|
|
|
windowrule = center,(org.kde.polkit-kde-authentication-agent-1d|Pinentry)
|
|
|
|
windowrule = pin,(org.kde.polkit-kde-authentication-agent-1|Pinentry)
|
|
|
|
windowrule = dimaround,(org.kde.polkit-kde-authentication-agent-1|Pinentry)
|
|
|
|
windowrule = stayfocused,(org.kde.polkit-kde-authentication-agent-1|Pinentry)
|
|
|
|
windowrule = float,(pavucontrol|.blueman-manager-wrapped|nm-connection-editor)
|
|
|
|
windowrule = size 800 600,(pavucontrol|.blueman-manager-wrapped|nm-connection-editor)
|
|
|
|
windowrule = move onscreen 100%-820 60,(pavucontrol|.blueman-manager-wrapped|nm-connection-editor)
|
2023-11-03 09:34:13 +00:00
|
|
|
windowrule = nomaximizerequest, ^(libreoffice).*
|
|
|
|
windowrule = nofullscreenrequest, ^(libreoffice).*
|
2023-11-03 07:06:19 +00:00
|
|
|
windowrule = group set always,(fractal)
|
|
|
|
windowrule = group set always,(discord)
|
|
|
|
windowrule = group set always,(teams-for-linux)
|
2023-10-23 20:04:17 +01:00
|
|
|
windowrule = nofullscreenrequest,(Nxplayer.bin)
|
|
|
|
windowrule = nomaximizerequest,(Nxplayer.bin)
|
2023-10-25 17:02:07 +01:00
|
|
|
windowrule = group set always,(Nxplayer.bin)
|
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-11-04 20:08:55 +00:00
|
|
|
# 1: [d]efault
|
|
|
|
bind = SUPER, D, moveworkspacetomonitor, 1 current
|
|
|
|
bind = SUPER, D, workspace, 1
|
|
|
|
bind = SUPER SHIFT, D, movetoworkspace, 1
|
2023-11-04 12:00:40 +00:00
|
|
|
|
2023-11-04 20:08:55 +00:00
|
|
|
# 2: [e]ditor (let's be honest, it's [e]macs)
|
2023-11-04 12:00:40 +00:00
|
|
|
bind = SUPER, E, moveworkspacetomonitor, 2 current
|
|
|
|
bind = SUPER, E, workspace, 2
|
|
|
|
bind = SUPER SHIFT, E, movetoworkspace, 2
|
|
|
|
|
|
|
|
# 3: [w]eb browser
|
|
|
|
bind = SUPER, W, moveworkspacetomonitor, 3 current
|
|
|
|
bind = SUPER, W, workspace, 3
|
|
|
|
bind = SUPER SHIFT, W, movetoworkspace, 3
|
|
|
|
windowrule = workspace 3, (nyxt)
|
|
|
|
|
|
|
|
# 4: [f]iles
|
|
|
|
bind = SUPER, F, moveworkspacetomonitor, 4 current
|
|
|
|
bind = SUPER, F, workspace, 4
|
|
|
|
bind = SUPER SHIFT, F, movetoworkspace, 4
|
2023-11-04 20:08:55 +00:00
|
|
|
windowrule = workspace 4, (thunar)
|
|
|
|
|
|
|
|
# 5: [c]hat
|
|
|
|
bind = SUPER, C, moveworkspacetomonitor, 5 current
|
|
|
|
bind = SUPER, C, workspace, 5
|
|
|
|
bind = SUPER SHIFT, C, movetoworkspace, 5
|
|
|
|
windowrule = workspace 5, (fractal)
|
|
|
|
windowrule = workspace 5, (discord)
|
|
|
|
windowrule = workspace 5, (teams-for-linux)
|
|
|
|
|
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, 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.hyprpaper}/bin/hyprpaper
|
2023-10-20 10:23:56 +01:00
|
|
|
exec-once = ${pkgs.mako}/bin/mako
|
2023-09-24 07:32:32 +01:00
|
|
|
exec-once = ${pkgs.dex}/bin/dex --autostart
|
2023-10-20 10:23:56 +01:00
|
|
|
exec-once = kidex
|
2023-08-22 09:44:40 +01:00
|
|
|
''
|