refactor(repo): most of these scripts are outdated, refactored desec
All checks were successful
/ test (push) Successful in 23s
All checks were successful
/ test (push) Successful in 23s
This commit is contained in:
parent
5b03adaaa9
commit
6682679493
18 changed files with 154 additions and 133 deletions
15
archived/notifs/info
Executable file
15
archived/notifs/info
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Enter scripts directory
|
||||
cd ~/.scripts/notifs || exit
|
||||
|
||||
# Constants
|
||||
CURRENT_VOL=$(./volume keybind | grep -o '^[^ ]*')
|
||||
CURRENT_MIC_VOL=$(./volume keybind | awk '{ print $2 }')
|
||||
BRIGHTNESS=$(./brightness keybind)
|
||||
|
||||
# Variables for display, basically multiplies floats to integers
|
||||
DISPLAY_VOL=$(awk '{ print $1 * $2 }' <<<"${CURRENT_VOL} 100")
|
||||
DISPLAY_MIC_VOL=$(awk '{ print $1 * $2 }' <<<"${CURRENT_MIC_VOL} 100")
|
||||
|
||||
dunstify "All other info:" "Brightness: $BRIGHTNESS%\nCurrent Volume: $DISPLAY_VOL%\nCurrent Mic. Volume: $DISPLAY_MIC_VOL%"
|
||||
Loading…
Add table
Add a link
Reference in a new issue