nixos-configs/hypr/scripts/tablet/tablet-mode.sh

13 lines
322 B
Bash
Executable file

#!/bin/bash
eww update toggle-state=true
setsysmode tablet
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
brightnessctl -d tpacpi::kbd_backlight s 0
iio-hyprland &
$HOME/.config/hypr/scripts/tablet/autorotate.sh &
killall autorotate.sh
$HOME/.config/hypr/scripts/tablet/autorotate.sh &