diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-08 19:17:09 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-08 19:17:09 +0100 |
| commit | c6d550560eabce057affdb91d9d1d8fe16bcc1cb (patch) | |
| tree | d4692b48a1e40e8385277cadb8694ebdda5137f0 /roles/waybar/templates | |
| parent | ed2a500b3061b027bf346018dbd36f06416e07f0 (diff) | |
Refactor waybar scripts to use copy instead of template
Diffstat (limited to 'roles/waybar/templates')
| -rw-r--r-- | roles/waybar/templates/waybar/scripts/launch-tui | 3 | ||||
| -rw-r--r-- | roles/waybar/templates/waybar/scripts/toggle-bt | 11 | ||||
| -rw-r--r-- | roles/waybar/templates/waybar/scripts/toggle-wifi | 11 |
3 files changed, 0 insertions, 25 deletions
diff --git a/roles/waybar/templates/waybar/scripts/launch-tui b/roles/waybar/templates/waybar/scripts/launch-tui deleted file mode 100644 index 16efba9b..00000000 --- a/roles/waybar/templates/waybar/scripts/launch-tui +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -exec setsid uwsm-app -- alacritty --class="work.kartoffln.$(basename "$1")" -e "$@" diff --git a/roles/waybar/templates/waybar/scripts/toggle-bt b/roles/waybar/templates/waybar/scripts/toggle-bt deleted file mode 100644 index 1b9d4374..00000000 --- a/roles/waybar/templates/waybar/scripts/toggle-bt +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Ensure bluetooth is unblocked -rfkill unblock bluetooth - -# Better UI than rfkill toggle bluetooth -if bluetoothctl show | grep -q "Powered: yes"; then - bluetoothctl power off -else - bluetoothctl power on -fi diff --git a/roles/waybar/templates/waybar/scripts/toggle-wifi b/roles/waybar/templates/waybar/scripts/toggle-wifi deleted file mode 100644 index 78e0699f..00000000 --- a/roles/waybar/templates/waybar/scripts/toggle-wifi +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Ensure wifi is unblocked -rfkill unblock wifi - -# Better UI than rfkill toggle wif -if nmcli radio wifi | grep -q "enabled"; then - nmcli radio wifi off -else - nmcli radio wifi on -fi |
