Compare commits
3 Commits
07cc51a5cc
...
a0f7773998
| Author | SHA1 | Date | |
|---|---|---|---|
| a0f7773998 | |||
| 6ccdb395cd | |||
| b48dbbeee1 |
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# 2025-11-10 Hyperling
|
||||||
|
|
||||||
function battery {
|
function battery {
|
||||||
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage | grep -o "[0-9.%]*"
|
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage | grep -o "[0-9.%]*"
|
||||||
|
|||||||
@@ -35,8 +35,23 @@ xsetroot -solid "$purple"
|
|||||||
#exec slstatus &
|
#exec slstatus &
|
||||||
|
|
||||||
# Custom #
|
# Custom #
|
||||||
|
source `which volume.function`
|
||||||
|
source `which battery.function`
|
||||||
|
source `which storage.function`
|
||||||
|
if [[ "`storage-root`" == "`storage-home`" ]]; then
|
||||||
|
storage_cmd=echo 'Storage: `storage-root-dwm`)"'
|
||||||
|
else
|
||||||
|
storage_cmd=echo '"Storage(Root:`storage-root-dwm` Home:`storage-home-dwm`)'
|
||||||
|
fi
|
||||||
while true; do
|
while true; do
|
||||||
xsetroot -name "`whoami`@`hostname` `date +"%Y-%m-%d %H:%M:%S"`"
|
readout="$readout Battery: `battery-display`"
|
||||||
|
readout="$readout | `storage_cmd`"
|
||||||
|
readout="$readout | `volume-display`"
|
||||||
|
readout="$readout | `whoami`@`hostname`"
|
||||||
|
readout="$readout `date +"%Y-%m-%d %H:%M:%S"`"
|
||||||
|
xsetroot -name "$readout"
|
||||||
|
readout=""
|
||||||
|
sleep 0.75
|
||||||
done &
|
done &
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
# 2025-11-10 Hyperling
|
||||||
|
|
||||||
function storage {
|
function storage {
|
||||||
location="$1"
|
location="$1"
|
||||||
|
|||||||
@@ -78,3 +78,14 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: "{{ root_group }}"
|
group: "{{ root_group }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
|
||||||
|
## Helper Functions for Status Bar ##
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | DWM | Status Bar Functions
|
||||||
|
copy:
|
||||||
|
src: dwm/*.functions
|
||||||
|
dest: "{{ global_bin }}"
|
||||||
|
owner: root
|
||||||
|
group: "{{ root_group }}"
|
||||||
|
mode: 0644
|
||||||
|
|||||||
Reference in New Issue
Block a user