add base setup with dotter
This commit is contained in:
parent
6b0da868bb
commit
42e6595b60
177 changed files with 1062 additions and 70 deletions
13
config/sway/executable_sway-bar.sh
Normal file
13
config/sway/executable_sway-bar.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Date
|
||||
date=$(date "+%a %F %R")
|
||||
|
||||
# Battery
|
||||
battery=$(cat /sys/class/power_supply/BAT*/capacity)
|
||||
|
||||
# Alsa master volume
|
||||
volume=$(amixer get Master | grep "Right:" | cut -f 7,8 -d " ")
|
||||
|
||||
# Status bar
|
||||
echo "Vol: $volume | Bat: ${battery}% | $date"
|
||||
Loading…
Add table
Add a link
Reference in a new issue