Skip to content

Commit

Permalink
ubuntu & gnome de/wm strip
Browse files Browse the repository at this point in the history
  • Loading branch information
wick3dr0se committed Nov 24, 2021
1 parent 579d217 commit 81b102e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/de-wm_theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# // DE/WM // if file exist print 'DesktopNames'
echo -ne "${YELLOW}de/wm${NC} ~ "
if [[ -e /usr/share/xsessions/ ]] ; then
head /usr/share/xsessions/* | grep -im1 'names=' | sed 's/DesktopNames=//' | tr -d '\n'
head /usr/share/xsessions/* | grep -im1 'names=' | sed 's/DesktopNames=//;s/CLASSIC//;s/Ubuntu//;s/ubuntu//;s/Classic//;s/GNOME//2g' | tr -d '\n'
elif [[ -e /usr/share/wayland-sessions/ ]] ; then
head /usr/share/wayland-sessions/* | grep -im1 'name=' | sed 's/name=//gi' | sort -u | sed ':a;N;$!ba;s/\n/, /gi' | tr -d '\n'
elif [[ $(command -v xprop) ]] ; [[ ! -z $DISPLAY ]] ; then
Expand Down

0 comments on commit 81b102e

Please sign in to comment.