From 8050bf14af2e5b65d7bf817e088deb3ba66e3a58 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 6 Jun 2023 17:00:29 -0400 Subject: [PATCH] fix: make lockscreen appear instantly --- gtklock/config.ini | 2 +- hypr/hyprland.conf | 9 ++++----- lisgd/config | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gtklock/config.ini b/gtklock/config.ini index ac7c8424..d03270a4 100644 --- a/gtklock/config.ini +++ b/gtklock/config.ini @@ -1,2 +1,2 @@ [main] -modules=powerbar-module.so +modules=powerbar-module.so;playerctl-module.so;userinfo-module.so diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index b26efb43..d7b9c574 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -3,7 +3,6 @@ # See https://wiki.hyprland.org/Configuring/Monitors/ monitor=eDP-1,1920x1200@60,0x0,1 - $menu = "$HOME/.config/rofi/launcher.sh" $scripts = "$HOME/.config/hypr/scripts" @@ -19,7 +18,7 @@ exec-once = bash -c "sleep 7; galaxybudsclient /StartMinimized" exec-once = eww daemon exec-once = eww open tablet-toggle -#exec-once = sudo input-emulator start touch --x-max 1920 --y-max 1200 --slots 4 +exec-once = input-emulator start touch --x-max 1920 --y-max 1200 --slots 4 exec = $HOME/.config/lisgd/config exec-once = libinput-gestures-setup start @@ -29,7 +28,7 @@ exec-once = gnome-keyring-daemon --start --components=secrets exec-once = $menu exec-once = swww init exec-once = swww img "$HOME/Pictures/BG/bonzai.jpg" -exec-once = $scripts/lose-focus.sh +exec-once = $scripts/lose-focus.sh # make command output to /dev/null exec-once = waybar exec-once = mako @@ -39,7 +38,7 @@ exec-once = wl-paste --watch cliphist store # OSD window exec-once = swayosd - +exec-once = swayidle -w lock $HOME/.config/gtklock/scripts/lock.sh # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf @@ -152,6 +151,7 @@ windowrule = size 400 581,^(blueman-manager)$ # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER + bind = $mainMod, V, exec, cliphist list | ~/.config/rofi/dmenu.sh | cliphist decode | wl-copy # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more @@ -159,7 +159,6 @@ bind = $mainMod, Q, exec, alacritty bind = $mainMod, C, killactive, bind = $mainMod, L, exec, $HOME/.config/gtklock/scripts/lock.sh -bindl =, switch:on:Lid Switch, exec, $HOME/.config/gtklock/scripts/lock.sh bind = $mainMod SHIFT, E, exec, eww open closer && $HOME/.config/eww/scripts/open.sh powermenu bind = $mainMod SHIFT, SPACE, togglefloating, bind = $mainMod, D, exec, $menu diff --git a/lisgd/config b/lisgd/config index 1159bebc..6a033e31 100755 --- a/lisgd/config +++ b/lisgd/config @@ -6,9 +6,9 @@ function gestures { lisgd -d /dev/input/by-path/platform-AMDI0010\:00-event -o 0 -t 125 -r 25 -m 3200 \ -g "1,UD,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false'" \ - -g "1,DU,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true'" # \ -# -g "3,RL,N,*,R,$HOME/.config/sway/scripts/gestures.sh next touch" \ -# -g "3,LR,N,*,R,$HOME/.config/sway/scripts/gestures.sh prev touch" + -g "1,DU,B,*,R,bash -c 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true'" \ + -g "3,RL,N,*,R,$HOME/.config/hypr/scripts/gestures.sh next touch" \ + -g "3,LR,N,*,R,$HOME/.config/hypr/scripts/gestures.sh prev touch" }