Commit ed82d4cbbede
Changed files (1)
nix
packages
my
scripts
bin
nix/packages/my/scripts/bin/redhat-vpn
@@ -5,10 +5,12 @@
set -e
GRAPHICS=1
-if ! command -v xset &> /dev/null; then
- GRAPHICS=0
-elif ! timeout 1s xset q &>/dev/null; then
- GRAPHICS=0
+if ! [ "${XDG_CURRENT_DESKTOP}" == "sway" ]; then
+ if ! command -v xset &> /dev/null; then
+ GRAPHICS=0
+ elif ! timeout 1s xset q &>/dev/null; then
+ GRAPHICS=0
+ fi
fi
if [[ GRAPHICS -eq 0 ]]; then