power menu, redshift, polybar
This commit is contained in:
@@ -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 &
|
||||
|
6
.config/bspwm/scripts/launch-polybar.sh
Executable file
6
.config/bspwm/scripts/launch-polybar.sh
Executable 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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user