summaryrefslogtreecommitdiff
path: root/hosts/iroha/gentoo/patches/app-misc/neofetch/neofetch_sway_version.diff
blob: 9d414b5066675a27c9f756e207dc37955b3418b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/neofetch	2026-04-21 10:38:18.495596158 -0400
+++ b/neofetch	2026-04-25 10:42:58.968282990 -0400
@@ -1751,6 +1751,7 @@
         *mate*)   de=MATE ;;
         *GNOME*)  de=GNOME ;;
         *MUFFIN*) de=Cinnamon ;;
+        *sway*)   unset de ;;
     esac
 
     ((${KDE_SESSION_VERSION:-0} >= 4)) && de=${de/KDE/Plasma}
@@ -1822,6 +1823,9 @@
                            -e westeros \
                            -e westford \
                            -e weston)
+        case $wm in
+            *sway*)   wm="Sway $(sway --version | awk -F ' ' '{ print $3 }')" ;;
+        esac
 
     elif [[ $DISPLAY && $os != "Mac OS X" && $os != "macOS" && $os != FreeMiNT ]]; then
         type -p xprop &>/dev/null && {