diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 312ada0..c96cd36 100755 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -4,8 +4,8 @@ # # See https://wiki.hyprland.org/Configuring/Monitors/ -monitor=eDP-1, 1920x1080@60, 2560x0, 1 -monitor=HDMI-A-2, 2560x1440@74.78, 0x0, 1 +#monitor=eDP-1,1920x1080@120, 0x0, 1 +monitor=HDMI-A-1,2560x1440@74.78, 1920x0, 1 #monitor=DP-1,2560x1440@60,1920x0, 1 @@ -18,7 +18,7 @@ debug { } # Source a file (multi-file configs) -# source = ~/.config/hypr/myColors.conf +#source = ~/.config/hypr/myColors.conf # Some default env vars. env = XCURSOR_SIZE,48 @@ -29,6 +29,9 @@ env = XDG_SESSION_DESKTOP=Hyprland env = XDG_SESSION_HOME=~ #auto start +exec-once=~/bin/startup.sh +exec-once=~/bin/suspend.sh + exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP @@ -139,10 +142,10 @@ master { #no_gaps_when_only=true } -gestures { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - #workspace_swipe = off -} +#gestures { +# # See https://wiki.hyprland.org/Configuring/Variables/ for more +# workspace_swipe = off +#} # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more @@ -166,7 +169,7 @@ bind = $mainMod SHIFT, Q, exec, alacritty bind = $mainMod, C, killactive, bind = $mainMod, W, killactive, bind = $mainMod, M, exit, -bind = $mainMod, E, exec, nemo +bind = $mainMod, E, exec, nautilus #nemo bind = $mainMod, Y, exec, copyq toggle bind = $mainMod, A, exec, swaync-client -t -sw bind = $mainMod, V, togglefloating, @@ -200,6 +203,11 @@ bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, preferred, # # trigger when the switch is turning on bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" +# Desktop zooming or magnifier +bindd = $mainMod ALT, mouse_down, zoom in, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor * 2.0}')" +bindd = $mainMod ALT, mouse_up, zoom out, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2; if (factor < 1) {factor = 1}; print factor / 2.0}')" + + # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r @@ -297,5 +305,33 @@ windowrule = stayfocused,class:(zoom),title:(^$) windowrulev2 = float,class:^(one.alynx.showmethekey)$ windowrulev2 = float,class:^(showmethekey-gtk)$ # make window floating windowrulev2 = pin,class:^(showmethekey-gtk)$ # pin window +windowrule = stayfocused, title:^(menu window)$, class:^(zoom)$ +windowrule = stayfocused, title:^(confirm window)$, class:^(zoom)$ +windowrulev2 = tile, class:^(com-zerenesystems-stacker-gui-MainFrame)$ +windowrule=tile,title:A Ren(.)Py Game + +#windowrule { +# name=float +# match:class = com.github.hluk.copyq +# match:class = clight-gui +# match:class = localsend +# match:class = blueman-manager +# +# float = on +#} +# +#windowrule { +# name = stay-focused +# match:class = (steam) +# match:class = ^(zoom)$ +# stayfocused = on +#} +# +#windowrule { +# name = tiled +# match:class = ^(com-zerenesystems-stacker-gui-MainFrame)$ +# match:title = (A Ren(.)Py Game) +# tiled = on +#} windowrule=tile,title:A Ren'Py Game