aboutsummaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorkj_sh6042025-11-10 08:37:05 -0500
committerkj_sh6042025-11-10 08:37:05 -0500
commit0812ea28c4add18ef4ee9d8f21fabcae84dd351f (patch)
treea9ed9470ac5f82098b7548cce4220114b6afa448 /.local/bin
parentac5e3fb377492af21ceb5234b5c7b5d3f12e0b6a (diff)
revert-to: 77949a068755ee72d7b5eaf5570cd2cd34a8d222 with changes
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/choose-xrandr-gui36
-rwxr-xr-x.local/bin/clear-dpms-state14
-rwxr-xr-x.local/bin/toggle-dunst-notifications9
-rwxr-xr-x.local/bin/toggle-lid-switch-handling26
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"