nixos-configs/sway/scripts/tablet/tablet-toggle.sh

8 lines
221 B
Bash
Raw Normal View History

#!/bin/bash
if [[ $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled) == true ]]; then
$HOME/.config/sway/scripts/tablet/laptop-mode.sh
else
$HOME/.config/sway/scripts/tablet/tablet-mode.sh
fi