Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
1ce7a904
Commit
1ce7a904
authored
Apr 01, 2016
by
Dylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wmtheme add support for more window managers
parent
d8f2dd22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
neofetch
neofetch
+31
-6
No files found.
neofetch
View file @
1ce7a904
...
@@ -814,6 +814,10 @@ getwmtheme () {
...
@@ -814,6 +814,10 @@ getwmtheme () {
case "
$wm
" in
case "
$wm
" in
'BudgieWM') wmtheme="
$(
gsettings get org.gnome.desktop.wm.preferences theme
)
" ;;
'BudgieWM') wmtheme="
$(
gsettings get org.gnome.desktop.wm.preferences theme
)
" ;;
'E16') wmtheme="
$(
awk
-F
"= "
'/theme.name/ {print $2}'
"
$HOME
/.e16/e_config--0.0.cfg"
)
";;
'Marco') wmtheme="
$(
gsettings get org.mate.Marco.general theme
)
" ;;
'Metacity') wmtheme="
$(
gconftool-2
-g
/apps/metacity/general/theme 2>/dev/null
)
" ;;
'Sawfish') wmtheme="
$(
awk
-F
")"
'/\(quote default-frame-style/ {print $2}'
"
$HOME
/.sawfish/custom"
)
" ;;
'Cinnamon' | 'Muffin')
'Cinnamon' | 'Muffin')
detheme="
$(
gsettings get org.cinnamon.theme name
)
"
detheme="
$(
gsettings get org.cinnamon.theme name
)
"
...
@@ -835,8 +839,6 @@ getwmtheme () {
...
@@ -835,8 +839,6 @@ getwmtheme () {
wmtheme="
$(
gsettings get com.deepin.wrap.gnome.desktop.wm.preferences theme
)
"
wmtheme="
$(
gsettings get com.deepin.wrap.gnome.desktop.wm.preferences theme
)
"
;;
;;
'E16') wmtheme="
$(
awk
-F
"= "
'/theme.name/ {print $2}'
"
$HOME
/.e16/e_config--0.0.cfg"
)
";;
'E17'|'Enlightenment')
'E17'|'Enlightenment')
# TODO: Reduce the size of this.
# TODO: Reduce the size of this.
if type -p eet >/dev/null 2>&1; then
if type -p eet >/dev/null 2>&1; then
...
@@ -846,6 +848,31 @@ getwmtheme () {
...
@@ -846,6 +848,31 @@ getwmtheme () {
fi
fi
;;
;;
'Fluxbox')
[ -f
$HOME
/.fluxbox/init ] &&
\
wmtheme="
$(
awk
-F
"/"
'/styleFile/ {print $NF}'
"
$HOME
/.fluxbox/init"
)
"
;;
'IceWM')
[ -f
$HOME
/.icewm/theme ] &&
\
wmtheme="
$(
awk
-F
"[
\"
,/]"
'!/#/ {print $2}'
"
$HOME
/.icewm/theme"
)
"
;;
'Openbox')
[ -f "
${
HOME
}
/.config/openbox/rc.xml
" ] &&
\
wmtheme="
$(
awk
-F
"[<,>]"
'/<theme/ {getline; print $3}'
"
$HOME
/.config/openbox/rc.xml"
)
";
;;
'PekWM')
[ -f
$HOME
/.pekwm/config ] &&
\
wmtheme="
$(
awk
-F
"/"
'/Theme/ {gsub(/\"/,""); print $NF}'
"
$HOME
/.pekwm/config"
)
"
;;
'Xfwm4')
[ -f "
${
HOME
}
/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
" ] &&
\
wmtheme="
$(
xfconf-query
-c
xfwm4
-p
/general/theme
)
"
;;
'Quartz Compositor')
'Quartz Compositor')
wmtheme=
$(
/usr/libexec/PlistBuddy
-c
"Print AppleAquaColorVariant"
~/Library/Preferences/.GlobalPreferences.plist
)
wmtheme=
$(
/usr/libexec/PlistBuddy
-c
"Print AppleAquaColorVariant"
~/Library/Preferences/.GlobalPreferences.plist
)
if [ -z "
$wmtheme
" ] || [ "
$wmtheme
" == "
1
" ]; then
if [ -z "
$wmtheme
" ] || [ "
$wmtheme
" == "
1
" ]; then
...
@@ -855,12 +882,10 @@ getwmtheme () {
...
@@ -855,12 +882,10 @@ getwmtheme () {
fi
fi
;;
;;
'Fluxbox')
[ -f
$HOME
/.fluxbox/init ] &&
\
wmtheme="
$(
awk
-F
"/"
'/styleFile/ {print $NF}'
"
$HOME
/.fluxbox/init"
)
"
;;
esac
esac
wmtheme="
${
wmtheme
//\
'}"
wmtheme="
${
wmtheme
//\
'}"
[ "$version" -ge 4 ] && wmtheme=${wmtheme^}
}
}
# }}}
# }}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment