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:
parent
36366b74ab
commit
3275f28e19
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user