personal dotfiles: my Hyprland config
Diffstat (limited to '.config/hypr/hyprland.conf')
-rw-r--r--.config/hypr/hyprland.conf47
1 files changed, 35 insertions, 12 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index ea559cc..361635e 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -1,38 +1,41 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
-monitor=,preferred,auto,auto
+#monitor=,preferred,auto,auto
monitor=DSI-1,preferred,auto,2.66666
misc:disable_hyprland_qtutils_check = true
render {
- explicit_sync = 0
- explicit_sync_kms = 0
direct_scanout = false
}
# gnome 47 vulkan segfaults
env = GSK_RENDERER,ngl
+# tell firefox/gtk apps to use phosh picker
+env = GTK_USE_PORTAL,1
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
+exec-once = /usr/libexec/pipewire-launcher
# exec-once = waybar & hyprpaper & firefox
exec-once = swaybg -i ~/Pictures/background.jpg -m center
exec-once = sleep 2 && waybar
+# ashell sometimes eats CPU
+# exec-once = sleep 1 && ashell
exec-once = swaync
# config ~~mako~~ swaync notifications with switch
exec-once = switch.sh
-exec-once = sysshell
+#exec-once = sysshell
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
+env = MOZ_ENABLE_WAYLAND,1
+exec-once = sysmenu
# Set programs that you use
-env = SXMO_TERMINAL,vte-2.91 -T 30 --whole-window-transparent -n 300 --use-theme-colors --
-env = TERMINAL,sxmo_terminal.sh
-$terminal = vte-2.91
-$terminal_opts = -T 30 --whole-window-transparent -n 300 --use-theme-colors
+$terminal = xdg-terminal-exec
+$terminal_opts =
exec-once = $terminal $terminal_opts
$fileManager = dev.tchx84.Portfolio
# $menu = bemenu-run -s -n -w -c -l8 -M 40 -H 20
@@ -40,7 +43,8 @@ $dmenu = bemenu --scrollbar autohide -s -n -w -c -l12 -M 40 -H 20 #--cb 22222288
#$menu = rofi -show drun
#$menu = exec $(j4-dmenu-desktop --no-generic --dmenu="$dmenu" --term="$terminal" --no-exec |sed 's/ -e/ --/g')
# $menu = nwggrid -s 70
-$menu = pkill -10 sysshell
+# $menu = pkill -10 sysshell
+$menu = pkill -RTMIN sysmenu
$keyboard = wvkbd-mobintl
$keyboard_args = -l simple,specialpad -H 160 -O --bg 22222288 | swipeB
# starting the keyboard is bad because of a wvkbd bug where it burns CPU?
@@ -56,6 +60,8 @@ env = QT_QPA_SYSTEM_ICON_THEME,breeze
# Some default env vars.
env = XCURSOR_SIZE,24
+exec-once = openrc --user
+
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
#kb_layout = us
@@ -143,6 +149,12 @@ misc {
force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
}
+layerrule = blur, syslock
+
+# ashell blur
+layerrule = ignorealpha 0.5, ashell-main-layer
+layerrule = blur, ashell-main-layer
+
# Swaync Blur
layerrule = blur, swaync-control-center
layerrule = blur, swaync-notification-window
@@ -153,6 +165,15 @@ layerrule = ignorezero, swaync-notification-window
layerrule = ignorealpha 0.5, swaync-control-center
layerrule = ignorealpha 0.5, swaync-notification-window
+layerrule = blur, sysmenu
+layerrule = ignorealpha 0.5, sysmenu
+
+
+layerrule = abovelock true, wvkbd
+
+layerrule = abovelock false, ashell-main-layer
+
+
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
@@ -209,12 +230,14 @@ bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
bindi = , XF86AudioRaiseVolume, exec, $menu
+bindi = , XF86AudioRaiseVolume, exec, pgrep sysmenu || sysmenu
+
# need a lock screen to avoid triggering this when screen is off.
#bindi = , XF86AudioRaiseVolume, exec, hyprctl dispatch submap menu; $menu; hyprctl dispatch submap reset
-bindi = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f suggpicker
-bindi = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f wvkbd-mobintl
+bindli = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f suggpicker
+bindli = , XF86AudioLowerVolume, exec, pkill -SIGRTMIN -f wvkbd-mobintl
# if someone killed the keyboard, restart it
-bindi =, XF86AudioLowerVolume, execr, pgrep $keyboard || $keyboard $keyboard_args
+bindli =, XF86AudioLowerVolume, execr, pgrep $keyboard || $keyboard $keyboard_args
# toggle screen on/off
bindli = , XF86PowerOff, exec, hyprctl dispatch dpms $(hyprctl -j monitors | jq -r 'first|.dpmsStatus|if . then "off" else "on" end')