feat: make tablet toggle a button that actually changes when clicked
This commit is contained in:
parent
553f58e5bb
commit
22ab0ff667
7 changed files with 12 additions and 4 deletions
|
@ -7,3 +7,4 @@
|
||||||
@import "actions/actions.scss";
|
@import "actions/actions.scss";
|
||||||
@import "powermenu/powermenu.scss";
|
@import "powermenu/powermenu.scss";
|
||||||
@import "dashboard/dashboard.scss";
|
@import "dashboard/dashboard.scss";
|
||||||
|
@import "traybuttons/traybuttons.scss";
|
||||||
|
|
|
@ -4,3 +4,4 @@
|
||||||
(include "powermenu/powermenu.yuck")
|
(include "powermenu/powermenu.yuck")
|
||||||
(include "dashboard/dashboard.yuck")
|
(include "dashboard/dashboard.yuck")
|
||||||
(include "closer/closer.yuck")
|
(include "closer/closer.yuck")
|
||||||
|
(include "traybuttons/traybuttons.yuck")
|
||||||
|
|
|
@ -10,8 +10,10 @@ do
|
||||||
array[i]=${array[i]%-reveal}
|
array[i]=${array[i]%-reveal}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Print the elements of the array
|
# Close every window except permanent ones
|
||||||
for element in "${array[@]}"
|
for element in "${array[@]}"
|
||||||
do
|
do
|
||||||
$HOME/.config/eww/scripts/close.sh "$element"
|
if [[ "$element" != "tablet-toggle" ]]; then
|
||||||
|
$HOME/.config/eww/scripts/close.sh "$element"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
eww update toggle-state=false
|
||||||
/usr/bin/setsysmode laptop
|
/usr/bin/setsysmode laptop
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
|
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
|
||||||
|
@ -8,3 +9,4 @@ brightnessctl -d tpacpi::kbd_backlight s 2
|
||||||
killall autorotate.sh
|
killall autorotate.sh
|
||||||
swaymsg output eDP-1 transform 0
|
swaymsg output eDP-1 transform 0
|
||||||
$HOME/.config/lisgd/config
|
$HOME/.config/lisgd/config
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
eww update toggle-state=true
|
||||||
setsysmode tablet
|
setsysmode tablet
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
|
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
|
||||||
|
@ -6,3 +7,4 @@ gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
|
||||||
brightnessctl -d tpacpi::kbd_backlight s 0
|
brightnessctl -d tpacpi::kbd_backlight s 0
|
||||||
|
|
||||||
$HOME/.config/sway/scripts/tablet/autorotate.sh
|
$HOME/.config/sway/scripts/tablet/autorotate.sh
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
|
|
||||||
"custom/tablet": {
|
"custom/tablet": {
|
||||||
"format":" ",
|
"format":" ",
|
||||||
"on-click": "$HOME/.config/sway/scripts/tablet/tablet-toggle.sh",
|
// "on-click": "$HOME/.config/sway/scripts/tablet/tablet-toggle.sh",
|
||||||
"restart-interval": 1,
|
"restart-interval": 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue