feat: Add spotify_player to laptop config

This commit is contained in:
Fabio Lenherr 2023-03-08 12:08:15 +01:00
parent aac4d5c179
commit 29bd21e32d
2 changed files with 15 additions and 4 deletions

View 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