From 7531611cf5af0a08f42d213e983d9263ac4e003d Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 29 May 2023 13:55:08 -0400 Subject: [PATCH] / --- sway/config | 4 +++- sway/scripts/gestures.sh | 2 +- sway/scripts/lose-focus.sh | 12 ++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/sway/config b/sway/config index b36ffc1a..c07d1602 100755 --- a/sway/config +++ b/sway/config @@ -255,8 +255,10 @@ dim_inactive_colors.urgent #900000FF # Floating windows for_window [app_id="org.gnome.Calculator"] floating enable for_window [app_id="org.kde.polkit-kde-authentication-agent-1"] floating enable + for_window [title="Open File"] floating enable, resize set width 1231 px height 950 + for_window [title="Open Folder"] floating enable, resize set width 1231 px height 950 for_window [app_id="nm-tray"] floating enable, sticky enable, move position cursor, move down 35 - for_window [app_id="blueman-manager"] floating enable, sticky enable, resize set width 200 px height 581px, move position cursor, move down 35 + for_window [app_id="blueman-manager"] floating enable, sticky enable, resize set width 200 px height 581px, move position cursor, move down 30 # You can "split" the current object of your focus with # $mod+b or $mod+v, for horizontal and vertical splits diff --git a/sway/scripts/gestures.sh b/sway/scripts/gestures.sh index f82d0b44..3f0eb0f0 100755 --- a/sway/scripts/gestures.sh +++ b/sway/scripts/gestures.sh @@ -32,5 +32,5 @@ elif [[ $SIDE == "prev" ]]; then elif [[ $SIDE == "next" ]]; then swaymsg workspace $[$current_workspace + 1] fi -sleep 0.5 +sleep 0.2 sudo input-emulator touch tap 1280 720 diff --git a/sway/scripts/lose-focus.sh b/sway/scripts/lose-focus.sh index f5c35260..bfb743d7 100755 --- a/sway/scripts/lose-focus.sh +++ b/sway/scripts/lose-focus.sh @@ -1,16 +1,16 @@ #!/bin/bash -appid="$1" - while true do while killall -0 blueman-manager do - if [[ $(swaymsg -t get_tree | grep -B 39 blueman | grep "focused.: false") != "" ]]; then - killall blueman-manager - break + if [[ $(bluetoothctl show | grep Powered | grep yes) ]]; then + if [[ $(swaymsg -t get_tree | grep -B 39 blueman | grep "focused.: false") != "" ]]; then + killall blueman-manager + break + fi + sleep 0.1 fi - sleep 0.1 done sleep 0.1 done