one round of waybar styling later
This commit is contained in:
14
scripts/hot-reload.sh
Normal file
14
scripts/hot-reload.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
pkill -9 waybar
|
||||
|
||||
hyprctl dispatch exec "GTK_THEME=Adwaita waybar -c ~/config/config/waybar/config -s ~/config/config/waybar/style.css" &
|
||||
hyprctl reload
|
||||
|
||||
ROBLOX_PID="$(pidof sober)"
|
||||
|
||||
echo ${#ROBLOX_PID}
|
||||
|
||||
if [ ${#ROBLOX_PID} -lt 1 ]; then
|
||||
rm /tmp/.regretevator_state
|
||||
fi
|
||||
16
scripts/waybar-music-status.sh
Normal file
16
scripts/waybar-music-status.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
function _sanitize {
|
||||
sed -r "s/(^[ ]*)|([ ]*$)//g" | sed -r 's/\&/\&/g' | sed -r 's/\"/\"/g' | sed -r "s/'/\'/g"
|
||||
}
|
||||
|
||||
# {{artist}} — {{title}}
|
||||
|
||||
SONGNAME="$( playerctl -s -p cider,OCbwoy3_s_iPhone metadata -f "{{artist}} — {{title}}" | _sanitize )"
|
||||
ALBUMNAME="$( playerctl -s -p cider,OCbwoy3_s_iPhone metadata album | _sanitize )"
|
||||
|
||||
if [ ${#SONGNAME} -gt 0 ] ; then
|
||||
printf "{\"text\": \" $SONGNAME\", \"tooltip\": \"$ALBUMNAME\", \"class\":\"music\" }"
|
||||
else
|
||||
printf "{\"text\": \"\", \"tooltip\": \" \", \"class\":\"invisible\" }"
|
||||
fi
|
||||
21
scripts/xdg.sh
Normal file
21
scripts/xdg.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
sleep 1
|
||||
|
||||
# kill all possible running xdg-desktop-portals
|
||||
kill -9 $(pidof xdg-desktop-portal-hyprland)
|
||||
kill -9 $(pidof xdg-desktop-portal-gnome)
|
||||
kill -9 $(pidof xdg-desktop-portal-kde)
|
||||
kill -9 $(pidof xdg-desktop-portal-lxqt)
|
||||
kill -9 $(pidof xdg-desktop-portal-wlr)
|
||||
kill -9 $(pidof xdg-desktop-portal-gtk)
|
||||
kill -9 $(pidof xdg-desktop-portal)
|
||||
sleep 1
|
||||
|
||||
# start xdg-desktop-portal-hyprland
|
||||
/usr/lib/xdg-desktop-portal-hyprland &
|
||||
sleep 2
|
||||
|
||||
# start xdg-desktop-portal
|
||||
/usr/lib/xdg-desktop-portal &
|
||||
sleep 1
|
||||
Reference in New Issue
Block a user