Summary Files Commits Branches @commit @diff @stats
path: root / .scripts / toggle-desktop
diff options
context:
space:
mode:
Commitdce4fccf08255afaaa218e2e21e53e45e7e1c582 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-03-28 19:44:31 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-03-28 19:44:31 +0200
Files8514b9290d3c44b728b287f574b64116a111b1ca /.scripts/toggle-desktop
.files-dce4fccf08255afaaa218e2e21e53e45e7e1c582.tar
.files-dce4fccf08255afaaa218e2e21e53e45e7e1c582.tar.gz
.files-dce4fccf08255afaaa218e2e21e53e45e7e1c582.zip
Parent6b71263670e0924294610b537f0ac17292ce2f19 (diff)
feat: Add scripts
1 files changed, 7 insertions, 0 deletions
-rwxr-xr-x.scripts/toggle-desktop7
diff --git a/.scripts/toggle-desktop b/.scripts/toggle-desktop
new file mode 100755
index 0000000..b5906bc
--- /dev/null
+++ b/.scripts/toggle-desktop
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if xprop -root _NET_SHOWING_DESKTOP | egrep '= 1' > /dev/null; then
+ wmctrl -k off
+else
+ wmctrl -k on
+fi