From a4d4c15a91dc342adae811068761f7448caa9e65 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 7 Jun 2023 15:27:51 -0400 Subject: [PATCH] fix: redirect lose-focus output to /dev/null --- dolphinrc | 1 + hypr/hyprland.conf | 8 +++++--- hypr/scripts/lose-focus.sh | 2 +- lisgd/config | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/dolphinrc b/dolphinrc index 349b1d41..bddca252 100644 --- a/dolphinrc +++ b/dolphinrc @@ -15,6 +15,7 @@ Places Icons Static Size=22 [KPropertiesDialog] 1920x1200 screen: Height=567 1920x1200 screen: Width=604 +1920x1200 screen: Window-Maximized=true [MainWindow] MenuBar=Disabled diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index d7b9c574..c08749ab 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -18,8 +18,8 @@ exec-once = bash -c "sleep 7; galaxybudsclient /StartMinimized" exec-once = eww daemon exec-once = eww open tablet-toggle -exec-once = input-emulator start touch --x-max 1920 --y-max 1200 --slots 4 -exec = $HOME/.config/lisgd/config +#exec-once = sudo input-emulator start touch --x-max 1920 --y-max 1200 --slots 4 +#exec = $HOME/.config/lisgd/config exec-once = libinput-gestures-setup start exec-once = dbus-update-activation-environment --all @@ -28,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 # make command output to /dev/null +exec-once = $scripts/lose-focus.sh exec-once = waybar exec-once = mako @@ -38,6 +38,8 @@ exec-once = wl-paste --watch cliphist store # OSD window exec-once = swayosd + +# Change HandleLidSwitch to lock in logind.conf exec-once = swayidle -w lock $HOME/.config/gtklock/scripts/lock.sh # Source a file (multi-file configs) diff --git a/hypr/scripts/lose-focus.sh b/hypr/scripts/lose-focus.sh index d116440b..c2667765 100755 --- a/hypr/scripts/lose-focus.sh +++ b/hypr/scripts/lose-focus.sh @@ -2,7 +2,7 @@ while true do - while killall -0 blueman-manager + while killall -0 blueman-manager > /dev/null 2>&1 do if [[ $(bluetoothctl show | grep Powered | grep yes) ]]; then if [[ $(hyprctl activewindow | grep blueman-manager) == "" && $(hyprctl clients | grep blueman-manager) != "" ]]; then diff --git a/lisgd/config b/lisgd/config index 6a033e31..01c25413 100755 --- a/lisgd/config +++ b/lisgd/config @@ -7,8 +7,8 @@ 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/hypr/scripts/gestures.sh next touch" \ - -g "3,LR,N,*,R,$HOME/.config/hypr/scripts/gestures.sh prev touch" + -g "3,RL,N,*,R,$HOME/.config/hypr/scripts/gestures.sh next" \ + -g "3,LR,N,*,R,$HOME/.config/hypr/scripts/gestures.sh prev" }