power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -17,8 +17,10 @@ bspc rule -a Nvidia-settings state=floating
bspc rule -a openrgb state=floating
bspc rule -a Sxiv state=floating
dunst &
pgrep -x dunst > /dev/null || dunst &
~/.config/bspwm/scripts/notify.sh &
pgrep -x notify.sh > /dev/null || ~/.config/bspwm/scripts/notify.sh &
picom &
~/.config/bspwm/scripts/launch-polybar.sh &
pgrep -x picom > /dev/null || picom &

View File

@@ -0,0 +1,6 @@
#!/bin/bash
killall -q polybar
polybar primary 2>&1 | tee -a /tmp/polybar.log & disown
polybar secondary 2>&1 | tee -a /tmp/polybar.log & disown

View File

@@ -10,12 +10,12 @@ while true; do
continue
fi
current_track=$(playerctl -p Feishin metadata --format '{{ title }}\n{{ artist }}\n{{ album }}')
current_track=$(playerctl -p Feishin metadata --format '<i>{{ title }}</i>\n{{ artist }}\n{{ album }}')
album_art_url=$(playerctl -p Feishin metadata mpris:artUrl)
album_art_file="/tmp/album_art.jpg"
wget -q -O $album_art_file $album_art_url
if [[ "$current_track" != "$previous_track" ]]; then
notify-send "Now Playing" "$current_track" -i $album_art_file
notify-send "now playing" "$current_track" -i $album_art_file
previous_track="$current_track"
fi
sleep 1