summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-06-04 22:08:15 -0500
committerzachir <zachir@librem.one>2024-06-04 22:28:26 -0500
commitdf7898291f0dcc003767f2ecffb2c16cfa9645a2 (patch)
treef00944d36ef0b34faeaa5ccc6227b894cac5420b
parentde752a009e8ac1df83c1631dac8bbf61a741d087 (diff)
Update hyprland config
This adds in hyprsplit, variable refresh rate, prevents swallowing with fontpreview-ueberzug, and adds in hyprcursor environment variables.
-rw-r--r--hypr/hyprland.conf139
1 files changed, 64 insertions, 75 deletions
diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf
index e053008..36f697a 100644
--- a/hypr/hyprland.conf
+++ b/hypr/hyprland.conf
@@ -15,11 +15,32 @@ exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once = xdph
exec-once = hyprpm reload -n
exec-once = pypr
+exec-once = import-gsettings gtk-theme 'Flat-Remix-GTK-Green-Darkest-Solid'
+exec-once = import-gsettings icon-theme 'Mint-X-Grey'
+exec-once = import-gsettings cursor-theme 'Breeze'
+exec-once = xrdb ~/.Xresources
+exec-once = com.github.wwmm.easyeffects
+exec-once = mpd
+#}}}
+
+#{{{ env
+# Environment variables set at launch
+env = HYPRCURSOR_THEME,BreezeHypr
+env = HYPRCURSOR_SIZE,36
+env = XCURSOR_THEME,BreezeX-Black
+env = XCURSOR_SIZE,36
#}}}
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
+# Debug {{{
+debug {
+ enable_stdout_logs = true
+ disable_logs = false
+}
+# }}}
+
#{{{ Input options
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
@@ -61,8 +82,9 @@ misc {
disable_splash_rendering = true
enable_swallow = true
swallow_regex = ^(kitty)$
- vfr = false
- vrr = true
+ swallow_exception_regex = ^(.*)(ueberzug)$
+ vfr = true
+ vrr = 1
}
#}}}
@@ -131,11 +153,11 @@ gestures {
#}}}
#{{{ plugin options
-#plugin {
-# split-monitor-workspaces {
-# count = 9
-# }
-#}
+plugin {
+ hyprsplit {
+ num_workspaces = 9
+ }
+}
#}}}
#{{{ Windowrules
@@ -243,74 +265,41 @@ bind = $mainMod SHIFT, N, togglespecialworkspace, minimized
#{{{ Workspace binds (using split-monitor-workspaces plugin!)
# Switch workspaces with mainMod + [0-9]
-#bind = $mainMod, 1, split-workspace, 1
-#bind = $mainMod, 2, split-workspace, 2
-#bind = $mainMod, 3, split-workspace, 3
-#bind = $mainMod, 4, split-workspace, 4
-#bind = $mainMod, 5, split-workspace, 5
-#bind = $mainMod, 6, split-workspace, 6
-#bind = $mainMod, 7, split-workspace, 7
-#bind = $mainMod, 8, split-workspace, 8
-#bind = $mainMod, 9, split-workspace, 9
-# Move active window to a workspace with mainMod + SHIFT + [0-9]
-#bind = $mainMod SHIFT, 1, split-movetoworkspacesilent, 1
-#bind = $mainMod SHIFT, 2, split-movetoworkspacesilent, 2
-#bind = $mainMod SHIFT, 3, split-movetoworkspacesilent, 3
-#bind = $mainMod SHIFT, 4, split-movetoworkspacesilent, 4
-#bind = $mainMod SHIFT, 5, split-movetoworkspacesilent, 5
-#bind = $mainMod SHIFT, 6, split-movetoworkspacesilent, 6
-#bind = $mainMod SHIFT, 7, split-movetoworkspacesilent, 7
-#bind = $mainMod SHIFT, 8, split-movetoworkspacesilent, 8
-#bind = $mainMod SHIFT, 9, split-movetoworkspacesilent, 9
-#bind = $mainMod CONTROL SHIFT, 1, split-movetoworkspace, 1
-#bind = $mainMod CONTROL SHIFT, 2, split-movetoworkspace, 2
-#bind = $mainMod CONTROL SHIFT, 3, split-movetoworkspace, 3
-#bind = $mainMod CONTROL SHIFT, 4, split-movetoworkspace, 4
-#bind = $mainMod CONTROL SHIFT, 5, split-movetoworkspace, 5
-#bind = $mainMod CONTROL SHIFT, 6, split-movetoworkspace, 6
-#bind = $mainMod CONTROL SHIFT, 7, split-movetoworkspace, 7
-#bind = $mainMod CONTROL SHIFT, 8, split-movetoworkspace, 8
-#bind = $mainMod CONTROL SHIFT, 9, split-movetoworkspace, 9
-#bind = $mainMod, mouse_down, split-workspace, e+1
-#bind = $mainMod, mouse_up, split-workspace, e-1
-#bind = $mainMod, comma, split-changemonitor, +1
-#bind = $mainMod, period, split-changemonitor, -1
-#}}}
-
-#{{{ Workspace binds (not using split-monitor-workspaces plugin!)
-# Switch workspaces with mainMod + [0-9]
-bind = $mainMod, 1, workspace, 1
-bind = $mainMod, 2, workspace, 2
-bind = $mainMod, 3, workspace, 3
-bind = $mainMod, 4, workspace, 4
-bind = $mainMod, 5, workspace, 5
-bind = $mainMod, 6, workspace, 6
-bind = $mainMod, 7, workspace, 7
-bind = $mainMod, 8, workspace, 8
-bind = $mainMod, 9, workspace, 9
+bind = $mainMod, 1, split:workspace, 1
+bind = $mainMod, 2, split:workspace, 2
+bind = $mainMod, 3, split:workspace, 3
+bind = $mainMod, 4, split:workspace, 4
+bind = $mainMod, 5, split:workspace, 5
+bind = $mainMod, 6, split:workspace, 6
+bind = $mainMod, 7, split:workspace, 7
+bind = $mainMod, 8, split:workspace, 8
+bind = $mainMod, 9, split:workspace, 9
# Move active window to a workspace with mainMod + SHIFT + [0-9]
-bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
-bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
-bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
-bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
-bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
-bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
-bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
-bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
-bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
-bind = $mainMod CONTROL SHIFT, 1, movetoworkspace, 1
-bind = $mainMod CONTROL SHIFT, 2, movetoworkspace, 2
-bind = $mainMod CONTROL SHIFT, 3, movetoworkspace, 3
-bind = $mainMod CONTROL SHIFT, 4, movetoworkspace, 4
-bind = $mainMod CONTROL SHIFT, 5, movetoworkspace, 5
-bind = $mainMod CONTROL SHIFT, 6, movetoworkspace, 6
-bind = $mainMod CONTROL SHIFT, 7, movetoworkspace, 7
-bind = $mainMod CONTROL SHIFT, 8, movetoworkspace, 8
-bind = $mainMod CONTROL SHIFT, 9, movetoworkspace, 9
-bind = $mainMod, mouse_down, workspace, e+1
-bind = $mainMod, mouse_up, workspace, e-1
-#bind = $mainMod, comma, split-changemonitor, +1
-#bind = $mainMod, period, split-changemonitor, -1
+bind = $mainMod SHIFT, 1, split:movetoworkspacesilent, 1
+bind = $mainMod SHIFT, 2, split:movetoworkspacesilent, 2
+bind = $mainMod SHIFT, 3, split:movetoworkspacesilent, 3
+bind = $mainMod SHIFT, 4, split:movetoworkspacesilent, 4
+bind = $mainMod SHIFT, 5, split:movetoworkspacesilent, 5
+bind = $mainMod SHIFT, 6, split:movetoworkspacesilent, 6
+bind = $mainMod SHIFT, 7, split:movetoworkspacesilent, 7
+bind = $mainMod SHIFT, 8, split:movetoworkspacesilent, 8
+bind = $mainMod SHIFT, 9, split:movetoworkspacesilent, 9
+bind = $mainMod CONTROL SHIFT, 1, split:movetoworkspace, 1
+bind = $mainMod CONTROL SHIFT, 2, split:movetoworkspace, 2
+bind = $mainMod CONTROL SHIFT, 3, split:movetoworkspace, 3
+bind = $mainMod CONTROL SHIFT, 4, split:movetoworkspace, 4
+bind = $mainMod CONTROL SHIFT, 5, split:movetoworkspace, 5
+bind = $mainMod CONTROL SHIFT, 6, split:movetoworkspace, 6
+bind = $mainMod CONTROL SHIFT, 7, split:movetoworkspace, 7
+bind = $mainMod CONTROL SHIFT, 8, split:movetoworkspace, 8
+bind = $mainMod CONTROL SHIFT, 9, split:movetoworkspace, 9
+#bind = $mainMod, mouse_down, split:workspace, e+1
+#bind = $mainMod, mouse_up, split:workspace, e-1
+bind = $mainMod, G, split:grabroguewindows
+bind = $mainMod, comma, focusmonitor, -1
+bind = $mainMod, period, focusmonitor, +1
+bind = $mainMod SHIFT, comma, movewindow, mon:-1
+bind = $mainMod SHIFT, period, movewindow, mon:+1
#}}}
#{{{ Mouse binds
@@ -348,7 +337,7 @@ bind = $mainMod $secdMod, P, exec, passmenu
#{{{ Misc bindings
bind = $mainMod, Return, exec, kitty
bind = $mainMod $secdMod, F, exec, kitty -e lf
-bind = $mainMod, W, exec, t waybar
+bind = $mainMod, W, exec, pkill -USR1 waybar
bind = $mainMod, Q, exec, loginctl lock-session
bind = $mainMod $secdMod CONTROL, Q, exec, systemctl suspend
bind = $mainMod SHIFT, G, exec, get-app-id