feat: Add spotify_player to laptop config
This commit is contained in:
parent
aac4d5c179
commit
29bd21e32d
2 changed files with 15 additions and 4 deletions
11
eww_laptop/scripts/bar_toggle.sh
Executable file
11
eww_laptop/scripts/bar_toggle.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#! /bin/bash
|
||||
|
||||
ISOPEN=$(eww windows | grep "*bar" | tr -d '*')
|
||||
|
||||
|
||||
if [ "$ISOPEN" = "" ]; then
|
||||
MONITOR=$(hyprctl monitors | grep -B 10 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
|
||||
eww open bar
|
||||
else
|
||||
eww close "$ISOPEN"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue