mirror of
https://github.com/rywng/dotfiles.git
synced 2024-10-30 07:31:50 +08:00
add sway rules
This commit is contained in:
parent
36366b74ab
commit
3275f28e19
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user