diff options
| author | kj_sh604 | 2025-12-21 14:56:43 -0500 |
|---|---|---|
| committer | kj_sh604 | 2025-12-21 14:56:43 -0500 |
| commit | d0107cdf8b9c86f908e56ed4dd9e7a48a825f0d4 (patch) | |
| tree | 2f206f82734c99b61d53a81e78c00062905f517d | |
| parent | e9fc81a76562da406a67515dc5692425d120590b (diff) | |
feat: Xfwm4 compositor toggle script
| -rwxr-xr-x | .local/bin/toggle-xfwm4-compositor | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/toggle-xfwm4-compositor b/.local/bin/toggle-xfwm4-compositor new file mode 100755 index 0000000..3ef5e16 --- /dev/null +++ b/.local/bin/toggle-xfwm4-compositor | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | current=$(xfconf-query -c xfwm4 -p /general/use_compositing) | ||
| 4 | |||
| 5 | if [ "$current" = "true" ]; then | ||
| 6 | xfconf-query -c xfwm4 -p /general/use_compositing -s false | ||
| 7 | notify-send "Xfce Window Manager" "Compositor Disabled" || echo "xfwm4 compositor disabled" | ||
| 8 | else | ||
| 9 | xfconf-query -c xfwm4 -p /general/use_compositing -s true | ||
| 10 | notify-send "Xfce Window Manager" "Compositor Enabled" || echo "xfwm4 compositor Enabled" | ||
| 11 | fi \ No newline at end of file | ||
