diff options
| author | kj_sh604 | 2025-11-09 17:18:00 -0500 |
|---|---|---|
| committer | kj_sh604 | 2025-11-09 17:18:00 -0500 |
| commit | 0e89adbd440b04e5432eb00614f654c9fed93687 (patch) | |
| tree | a9ed9470ac5f82098b7548cce4220114b6afa448 /.local/bin | |
| parent | a6675719f73a332f92c30ff5c4948cda26c0e6e3 (diff) | |
revert-to: 77949a068755ee72d7b5eaf5570cd2cd34a8d222
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/choose-xrandr-gui | 36 | ||||
| -rwxr-xr-x | .local/bin/clear-dpms-state | 14 | ||||
| -rwxr-xr-x | .local/bin/toggle-dunst-notifications | 9 | ||||
| -rwxr-xr-x | .local/bin/toggle-lid-switch-handling | 26 |
4 files changed, 0 insertions, 85 deletions
diff --git a/.local/bin/choose-xrandr-gui b/.local/bin/choose-xrandr-gui deleted file mode 100755 index 826b05f..0000000 --- a/.local/bin/choose-xrandr-gui +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -choice=$(printf "arandr (ARandR)\nlxrandr (LXDE Monitor \ -Settings)\nawesome-xrandr (reset screen layout)" | ~/.local/bin/dmenu-dunst -p \ -"choose xrandr gui:" -l 3 -i) - -case "$choice" in - "lxrandr (LXDE Monitor Settings)") - if command -v lxrandr > /dev/null; then - lxrandr - else - notify-send "choose-xrandr-gui" "lxrandr is not installed" - fi - ;; - "arandr (ARandR)") - if command -v arandr > /dev/null; then - arandr - else - notify-send "choose-xrandr-gui" "arandr is not installed" - fi - ;; - "awesome-xrandr (reset screen layout)") - if command -v ~/.local/bin/awesome-xrandr > /dev/null; then - ~/.local/bin/awesome-xrandr - else - notify-send "choose-xrandr-gui" "awesome-xrandr script is not found" - fi - ;; - "") - echo "no xrandr gui selected" - ;; - *) - echo "invalid option: $choice" - notify-send "choose-xrandr-gui" "invalid option: $choice" - ;; -esac diff --git a/.local/bin/clear-dpms-state b/.local/bin/clear-dpms-state deleted file mode 100755 index ce6c99a..0000000 --- a/.local/bin/clear-dpms-state +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -# Check if xset is available -if command -v xset > /dev/null; then - # Place all DPMS settings that you want - # to run on awesome-wm startup below: - xset s noblank - xset s noexpose - xset s off off - xset dpms 0 0 0 - xset -dpms -else - notify-send "error: xset binary not found." -fi diff --git a/.local/bin/toggle-dunst-notifications b/.local/bin/toggle-dunst-notifications deleted file mode 100755 index 12ad4ab..0000000 --- a/.local/bin/toggle-dunst-notifications +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -current_state=$(dunstctl is-paused) - -if [ "$current_state" = "false" ]; then - dunstctl set-paused true -else - dunstctl set-paused false -fi diff --git a/.local/bin/toggle-lid-switch-handling b/.local/bin/toggle-lid-switch-handling deleted file mode 100755 index 00eb45b..0000000 --- a/.local/bin/toggle-lid-switch-handling +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -CONFIG_FILE="/etc/systemd/logind.conf" - -if [ ! -f "$CONFIG_FILE" ]; then - echo "Error: $CONFIG_FILE not found" - exit 1 -fi - -CURRENT_VALUE=$(grep "^HandleLidSwitch=" "$CONFIG_FILE" | cut -d "=" -f 2-) - -if [ -z "$CURRENT_VALUE" ]; then - sudo sed -i "s/#HandleLidSwitch=suspend/HandleLidSwitch=suspend/" "$CONFIG_FILE" - echo "HandleLidSwitch set to suspend" - exit 0 -fi - -if [ "$CURRENT_VALUE" = "suspend" ]; then - NEW_VALUE="ignore" -else - NEW_VALUE="suspend" -fi - -sudo sed -i "s/^HandleLidSwitch=.*/HandleLidSwitch=$NEW_VALUE/" "$CONFIG_FILE" - -sudo systemctl restart systemd-logind && echo "HandleLidSwitch toggled to $NEW_VALUE" |
