Added Bspwm support

This commit is contained in:
CapCreeperGR 2024-05-12 16:58:32 +03:00
parent 01b23277fd
commit 1fc9a9ea79

View File

@ -65,6 +65,8 @@ get_de_wm() {
echo "LXDE" echo "LXDE"
elif ps -e | grep "sway" &> /dev/null ; then elif ps -e | grep "sway" &> /dev/null ; then
echo "Sway $(sway --version | awk '{print $2}')" echo "Sway $(sway --version | awk '{print $2}')"
elif ps -e | grep "bspwm" &> /dev/null ; then
echo "Bspwm $(bspwm -v)"
elif ps -e | grep "icewm-session" &> /dev/null ; then elif ps -e | grep "icewm-session" &> /dev/null ; then
echo "IceWM $(icewm --version | awk '{print $2}' | sed 's/,//g')" echo "IceWM $(icewm --version | awk '{print $2}' | sed 's/,//g')"
elif [ ! -z $DESKTOP_SESSION ]; then elif [ ! -z $DESKTOP_SESSION ]; then