diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-29 17:49:41 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-29 17:49:41 -0500 |
| commit | 94d8698934337b54b52af8b10733e2ee97b64013 (patch) | |
| tree | 1d92d0d04296ea6f7ea38b93959f62ac65e939a6 /dotfiles/system/.local | |
| parent | 30ed5fe8da3520fe9b0f34579520084ce5041a47 (diff) | |
removing dwmstatus as it was replaced by conky
Diffstat (limited to 'dotfiles/system/.local')
| -rwxr-xr-x | dotfiles/system/.local/bin/audioselect | 6 | ||||
| -rwxr-xr-x | dotfiles/system/.local/bin/dwmstatus | 79 | ||||
| -rwxr-xr-x | dotfiles/system/.local/bin/exitmenu | 1 | ||||
| -rwxr-xr-x | dotfiles/system/.local/bin/timezone-set | 1 |
4 files changed, 2 insertions, 85 deletions
diff --git a/dotfiles/system/.local/bin/audioselect b/dotfiles/system/.local/bin/audioselect index 13ffc36..6c40d47 100755 --- a/dotfiles/system/.local/bin/audioselect +++ b/dotfiles/system/.local/bin/audioselect @@ -27,12 +27,10 @@ CHOSEN=$(echo -e "$CHOICES" | dmenu -l 10) case "$CHOSEN" in "Toggle Mute Speaker") pactl set-sink-mute 0 toggle - dwmstatus - ;; + ;; "Toggle Mute Mic") pactl set-source-mute 0 toggle - dwmstatus - ;; + ;; "Marshall Headset & Jabra Mic") bluetooth power on bluetoothctl connect $marshall_headset_device diff --git a/dotfiles/system/.local/bin/dwmstatus b/dotfiles/system/.local/bin/dwmstatus deleted file mode 100755 index d0cff02..0000000 --- a/dotfiles/system/.local/bin/dwmstatus +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh -# displays status of microphone, camera, wifi, free home disk space, and date/time -# uses icons found in nerd fonts here: https://github.com/ryanoasis/nerd-fonts.git - -export DISPLAY=:0 -unset status - -########################################################################## -# MIC # -########################################################################## - -# micsymbol_on="" -# micsymbol_off="" - -# amixer get Capture | grep '\[off\]' && mic="$micsymbol_off" || mic="$micsymbol_on" -# status="$mic " - - -########################################################################## -# VOLUME # -########################################################################## - -speakersymbol="" -if grep -q "yes" <<< $(pactl get-sink-mute $(pactl get-default-sink)) ; then - speakersymbol="" - vol="" -else - vol=$(echo $(pactl get-sink-volume $(pactl get-default-sink)) | cut -d"/" -f2 | xargs) -fi -status+="$speakersymbol $vol " - - -########################################################################## -# WIFI # -########################################################################## - -wifisymbol_on="" -wifisymbol_off="" -# note: assumes we're using network-manager -ssid="$(nmcli -t -f active,ssid dev wifi | grep -E '^yes' | cut -d: -f2)" -wifi="$wifisymbol_off" -if [ "$ssid" != "" ]; then wifi="$wifisymbol_on $ssid"; fi -status+="$wifi " - - -########################################################################## -# BATTERY # -########################################################################## - -# desktops don't typically have batteries. if no batteries are found, skip this section -if [[ -n $(find /sys/class/power_supply/ -name "BAT?") ]]; then - - # however, laptops may have multiple batteries, so list them individually - for battery in /sys/class/power_supply/BAT?; do - batstat=$(sed "s/[Dd]ischarging//;s/[Nn]ot charging//;s/[Cc]harging//;s/[Uu]nknown//;s/[Ff]ull//" "$battery"/status) - battery_level=$(cat "$battery"/capacity 2>/dev/null) - status+="${batstat} ${battery_level}% " - done -fi - - -########################################################################## -# /HOME DISK # -########################################################################## - -# disksymbol="" -# disk=$(df -hl | awk '{ if ($6 == "/home") print $4 " free" }') -# status+="$disksymbol $disk " - - -########################################################################## -# DATE / TIME # -########################################################################## - -# Format Example: Thu Mar 25 03:37 PM CDT -calendarsymbol="" -status+="$calendarsymbol $(/bin/date +'%a %b %d %I:%M %p %Z')" - -xsetroot -name "$status" diff --git a/dotfiles/system/.local/bin/exitmenu b/dotfiles/system/.local/bin/exitmenu index 2c55b34..54028a7 100755 --- a/dotfiles/system/.local/bin/exitmenu +++ b/dotfiles/system/.local/bin/exitmenu @@ -13,4 +13,3 @@ case $CHOSEN in "Toggle Powersave Mode") lowpowertoggle && notify-send "Battery Status" "$(acpi -b)" ;; esac -dwmstatus diff --git a/dotfiles/system/.local/bin/timezone-set b/dotfiles/system/.local/bin/timezone-set index 8f48729..1fe7370 100755 --- a/dotfiles/system/.local/bin/timezone-set +++ b/dotfiles/system/.local/bin/timezone-set @@ -14,4 +14,3 @@ if ping -q -c 1 -W 1 google.com >/dev/null; then else notify-send "No network connection detected. Cannot set timezone automatically." fi -dwmstatus |
