1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +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
# TODO: Clean this up
#set the variables
set {
$popup floating enable; sticky enable;
$sticky floating enable; sticky enable;
$float floating enable;
}
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
[class="exe$"] $float # XWayland wine app
[instance="java-lang-Thread"] $float
[instance="steamwebhelper"] $float
[title="Extension:*"] $float # Bitwarden passkey etc.
[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 "🔌: ")
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
# playerctl stop