fix: fixed lid config
parent
11f4ef5beb
commit
b5bb61b431
|
|
@ -48,7 +48,7 @@ profile Nomad {
|
||||||
output $INTERNAL enable
|
output $INTERNAL enable
|
||||||
exec ~/.config/kanshi/lid.sh
|
exec ~/.config/kanshi/lid.sh
|
||||||
|
|
||||||
exec tuned-adm profile balanced
|
exec tuned-adm profile balanced-battery
|
||||||
}
|
}
|
||||||
|
|
||||||
profile Home {
|
profile Home {
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,18 @@
|
||||||
LAPTOP_OUTPUT="eDP-1"
|
LAPTOP_OUTPUT="eDP-1"
|
||||||
LID_STATE_FILE="/proc/acpi/button/lid/LID0/state"
|
LID_STATE_FILE="/proc/acpi/button/lid/LID0/state"
|
||||||
|
|
||||||
|
# Resume previous state
|
||||||
read -r LS < "$LID_STATE_FILE"
|
read -r LS < "$LID_STATE_FILE"
|
||||||
|
|
||||||
case "$LS" in
|
case "$LS" in
|
||||||
*open) swaymsg output "$LAPTOP_OUTPUT" enable ;;
|
*open)
|
||||||
*closed) swaymsg output "$LAPTOP_OUTPUT" disable ;;
|
swaymsg output "$LAPTOP_OUTPUT" enable
|
||||||
*) echo "Could not get lid state" >&2 ; exit 1 ;;
|
;;
|
||||||
|
*closed)
|
||||||
|
swaymsg output "$LAPTOP_OUTPUT" disable
|
||||||
|
systemctl suspend
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Could not get lid state" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,10 @@ output * bg ~/Images/Perso/Wallpapers/wave.jpg fill
|
||||||
|
|
||||||
# -> Managed by Kanshi (~/.config/kanshi/config)
|
# -> Managed by Kanshi (~/.config/kanshi/config)
|
||||||
|
|
||||||
|
# Watch lid changes
|
||||||
|
bindswitch --reload --locked lid:on output eDP-1 disable
|
||||||
|
bindswitch --reload --locked lid:off output eDP-1 enable
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
|
|
||||||
# -> Managed by swayidle (/usr/share/sway/config.d/90-swayidle.conf)
|
# -> Managed by swayidle (/usr/share/sway/config.d/90-swayidle.conf)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# thunderbird reminders
|
# thunderbird reminders
|
||||||
for_window [app_id="org.mozilla.Thunderbird" title="[0-9]+ rappels?"] {
|
for_window [app_id="org.mozilla.Thunderbird" title="[0-9]+ rappels?"] {
|
||||||
floating enable
|
floating enable
|
||||||
resize width 960 px height 540 px
|
resize set 960 540
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
for_window [app_id="xdg-desktop-portal-gtk" title="Open (File|Folder)"] {
|
||||||
|
floating enable
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
for_window [app_id="Zoom Workplace"] {
|
||||||
|
floating enable
|
||||||
|
}
|
||||||
|
|
||||||
|
for_window [app_id="Zoom Workplace" title="Zoom Workplace - Free Account"] {
|
||||||
|
floating disable
|
||||||
|
}
|
||||||
|
|
||||||
|
for_window [app_id="Zoom Workplace" title="Meeting"] {
|
||||||
|
floating disable
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue