1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-22 02:41:50 +08:00

add sway rules

This commit is contained in:
Ryan 2024-05-27 08:13:32 +08:00
parent 36366b74ab
commit 3275f28e19
2 changed files with 3 additions and 10 deletions

View File

@ -1,15 +1,14 @@
# vim: ft=swayconfig # vim: ft=swayconfig
# TODO: Clean this up
#set the variables
set { set {
$popup floating enable; sticky enable; $sticky floating enable; sticky enable;
$float floating enable; $float floating enable;
} }
for_window { for_window {
[app_id="librewolf" title="^Picture-in-Picture$"] $popup [app_id="librewolf" title="^Picture-in-Picture$"] $sticky
[app_id="exe$"] $float # Wayland wine app [app_id="exe$"] $float # Wayland wine app
[class="exe$"] $float # XWayland wine app [class="exe$"] $float # XWayland wine app
[instance="java-lang-Thread"] $float
[instance="steamwebhelper"] $float [instance="steamwebhelper"] $float
[title="Extension:*"] $float # Bitwarden passkey etc. [title="Extension:*"] $float # Bitwarden passkey etc.
[window_role="pop-up,task_dialog,About"] $float [window_role="pop-up,task_dialog,About"] $float

View File

@ -12,12 +12,6 @@ choices=("suspend" "poweroff" "reboot" "lock")
choice=$(printf "%s\n" "${choices[@]}" | fuzzel -d --prompt "🔌: ") choice=$(printf "%s\n" "${choices[@]}" | fuzzel -d --prompt "🔌: ")
if test "$choice" = lock; then if test "$choice" = lock; then
# sleep less when power on
if acpi -a | grep -q on; then
sleep_time=3600
else
sleep_time=10
fi
sleep 0.3 sleep 0.3
# playerctl stop # playerctl stop