nu11secur1ty

XFCE4.sh

Sep 7th, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 18.60 KB | None | 0 0
  1. #!/bin/bash
  2. # g0tmi1k
  3.  
  4. ##### (Cosmetic) Colour output
  5. RED="\033[01;31m"      # Issues/Errors
  6. GREEN="\033[01;32m"    # Success
  7. YELLOW="\033[01;33m"   # Warnings/Information
  8. BLUE="\033[01;34m"     # Heading
  9. BOLD="\033[01;01m"     # Highlight
  10. RESET="\033[00m"       # Normal
  11.  
  12. echo -e "\n ${GREEN}[+]${RESET} Installing ${GREEN}XFCE4${RESET}${RESET} ~ desktop environment"
  13. export DISPLAY=:0.0   #[[ -z $SSH_CONNECTION ]] || export DISPLAY=:0.0
  14. apt-get -y -qq install curl || echo -e ' '${RED}'[!] Issue with apt-get'${RESET} 1>&2
  15. apt-get -y -qq install xfce4 xfce4-places-plugin || echo -e ' '${RED}'[!] Issue with apt-get'${RESET}    #xfce4-goodies   xfce4-battery-plugin  xfce4-mount-plugin
  16. #--- Configuring XFCE
  17. mv -f /usr/bin/startx{,-gnome}
  18. ln -sf /usr/bin/startx{fce4,}
  19. mkdir -p /root/.config/xfce4/{desktop,menu,panel,xfconf,xfwm4}/
  20. mkdir -p /root/.config/xfce4/panel/launcher-{2,6,9}/
  21. mkdir -p /root/.config/xfce4/xfconf/xfce-perchannel-xml/
  22. cat <<EOF > /root/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
  23. <?xml version="1.0" encoding="UTF-8"?>
  24.  
  25. <channel name="xfce4-keyboard-shortcuts" version="1.0">
  26.   <property name="commands" type="empty">
  27.     <property name="custom" type="empty">
  28.       <property name="XF86Display" type="string" value="xfce4-display-settings --minimal"/>
  29.       <property name="&lt;Alt&gt;F2" type="string" value="xfrun4"/>
  30.       <property name="&lt;Primary&gt;&lt;Alt&gt;t" type="string" value="/usr/bin/exo-open --launch TerminalEmulator"/>
  31.       <property name="&lt;Primary&gt;&lt;Alt&gt;Delete" type="string" value="xflock4"/>
  32.       <property name="&lt;Primary&gt;Escape" type="string" value="xfdesktop --menu"/>
  33.       <property name="&lt;Super&gt;p" type="string" value="xfce4-display-settings --minimal"/>
  34.       <property name="override" type="bool" value="true"/>
  35.       <property name="&lt;Primary&gt;space" type="string" value="xfce4-appfinder"/>
  36.     </property>
  37.   </property>
  38.   <property name="xfwm4" type="empty">
  39.     <property name="custom" type="empty">
  40.       <property name="&lt;Alt&gt;&lt;Control&gt;End" type="string" value="move_window_next_workspace_key"/>
  41.       <property name="&lt;Alt&gt;&lt;Control&gt;Home" type="string" value="move_window_prev_workspace_key"/>
  42.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_1" type="string" value="move_window_workspace_1_key"/>
  43.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_2" type="string" value="move_window_workspace_2_key"/>
  44.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_3" type="string" value="move_window_workspace_3_key"/>
  45.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_4" type="string" value="move_window_workspace_4_key"/>
  46.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_5" type="string" value="move_window_workspace_5_key"/>
  47.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_6" type="string" value="move_window_workspace_6_key"/>
  48.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_7" type="string" value="move_window_workspace_7_key"/>
  49.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_8" type="string" value="move_window_workspace_8_key"/>
  50.       <property name="&lt;Alt&gt;&lt;Control&gt;KP_9" type="string" value="move_window_workspace_9_key"/>
  51.       <property name="&lt;Alt&gt;&lt;Shift&gt;Tab" type="string" value="cycle_reverse_windows_key"/>
  52.       <property name="&lt;Alt&gt;Delete" type="string" value="del_workspace_key"/>
  53.       <property name="&lt;Alt&gt;F10" type="string" value="maximize_window_key"/>
  54.       <property name="&lt;Alt&gt;F11" type="string" value="fullscreen_key"/>
  55.       <property name="&lt;Alt&gt;F12" type="string" value="above_key"/>
  56.       <property name="&lt;Alt&gt;F4" type="string" value="close_window_key"/>
  57.       <property name="&lt;Alt&gt;F6" type="string" value="stick_window_key"/>
  58.       <property name="&lt;Alt&gt;F7" type="string" value="move_window_key"/>
  59.       <property name="&lt;Alt&gt;F8" type="string" value="resize_window_key"/>
  60.       <property name="&lt;Alt&gt;F9" type="string" value="hide_window_key"/>
  61.       <property name="&lt;Alt&gt;Insert" type="string" value="add_workspace_key"/>
  62.       <property name="&lt;Alt&gt;space" type="string" value="popup_menu_key"/>
  63.       <property name="&lt;Alt&gt;Tab" type="string" value="cycle_windows_key"/>
  64.       <property name="&lt;Control&gt;&lt;Alt&gt;d" type="string" value="show_desktop_key"/>
  65.       <property name="&lt;Control&gt;&lt;Alt&gt;Down" type="string" value="down_workspace_key"/>
  66.       <property name="&lt;Control&gt;&lt;Alt&gt;Left" type="string" value="left_workspace_key"/>
  67.       <property name="&lt;Control&gt;&lt;Alt&gt;Right" type="string" value="right_workspace_key"/>
  68.       <property name="&lt;Control&gt;&lt;Alt&gt;Up" type="string" value="up_workspace_key"/>
  69.       <property name="&lt;Control&gt;&lt;Shift&gt;&lt;Alt&gt;Left" type="string" value="move_window_left_key"/>
  70.       <property name="&lt;Control&gt;&lt;Shift&gt;&lt;Alt&gt;Right" type="string" value="move_window_right_key"/>
  71.       <property name="&lt;Control&gt;&lt;Shift&gt;&lt;Alt&gt;Up" type="string" value="move_window_up_key"/>
  72.       <property name="&lt;Control&gt;F1" type="string" value="workspace_1_key"/>
  73.       <property name="&lt;Control&gt;F10" type="string" value="workspace_10_key"/>
  74.       <property name="&lt;Control&gt;F11" type="string" value="workspace_11_key"/>
  75.       <property name="&lt;Control&gt;F12" type="string" value="workspace_12_key"/>
  76.       <property name="&lt;Control&gt;F2" type="string" value="workspace_2_key"/>
  77.       <property name="&lt;Control&gt;F3" type="string" value="workspace_3_key"/>
  78.       <property name="&lt;Control&gt;F4" type="string" value="workspace_4_key"/>
  79.       <property name="&lt;Control&gt;F5" type="string" value="workspace_5_key"/>
  80.       <property name="&lt;Control&gt;F6" type="string" value="workspace_6_key"/>
  81.       <property name="&lt;Control&gt;F7" type="string" value="workspace_7_key"/>
  82.       <property name="&lt;Control&gt;F8" type="string" value="workspace_8_key"/>
  83.       <property name="&lt;Control&gt;F9" type="string" value="workspace_9_key"/>
  84.       <property name="&lt;Shift&gt;&lt;Alt&gt;Page_Down" type="string" value="lower_window_key"/>
  85.       <property name="&lt;Shift&gt;&lt;Alt&gt;Page_Up" type="string" value="raise_window_key"/>
  86.       <property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>
  87.       <property name="Down" type="string" value="down_key"/>
  88.       <property name="Escape" type="string" value="cancel_key"/>
  89.       <property name="Left" type="string" value="left_key"/>
  90.       <property name="Right" type="string" value="right_key"/>
  91.       <property name="Up" type="string" value="up_key"/>
  92.       <property name="override" type="bool" value="true"/>
  93.     </property>
  94.   </property>
  95.   <property name="providers" type="array">
  96.     <value type="string" value="xfwm4"/>
  97.     <value type="string" value="commands"/>
  98.   </property>
  99. </channel>
  100. EOF
  101. cat <<EOF > /root/.config/xfce4/panel/launcher-2/13684522758.desktop
  102. [Desktop Entry]
  103. Name=Terminal Emulator
  104. Encoding=UTF-8
  105. Exec=exo-open --launch TerminalEmulator
  106. Icon=utilities-terminal
  107. StartupNotify=false
  108. Terminal=false
  109. Comment=Use the command line
  110. Type=Application
  111. Categories=Utility;X-XFCE;X-Xfce-Toplevel;
  112. X-XFCE-Source=file:///usr/share/applications/exo-terminal-emulator.desktop
  113. EOF
  114. cat <<EOF > /root/.config/xfce4/panel/launcher-6/13684522587.desktop
  115. [Desktop Entry]
  116. Name=Iceweasel
  117. Encoding=UTF-8
  118. Exec=iceweasel %u
  119. Icon=iceweasel
  120. StartupNotify=true
  121. Terminal=false
  122. Comment=Browse the World Wide Web
  123. GenericName=Web Browser
  124. X-GNOME-FullName=Iceweasel Web Browser
  125. X-MultipleArgs=false
  126. Type=Application
  127. Categories=Network;WebBrowser;
  128. MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
  129. StartupWMClass=Iceweasel
  130. X-XFCE-Source=file:///usr/share/applications/iceweasel.desktop
  131. EOF
  132. cat <<EOF > /root/.config/xfce4/panel/launcher-9/136845425410.desktop
  133. [Desktop Entry]
  134. Name=Application Finder
  135. Exec=xfce4-appfinder
  136. Icon=xfce4-appfinder
  137. StartupNotify=true
  138. Terminal=false
  139. Type=Application
  140. Categories=X-XFCE;Utility;
  141. Comment=Find and launch applications installed on your system
  142. X-XFCE-Source=file:///usr/share/applications/xfce4-appfinder.desktop
  143. EOF
  144. xfconf-query -n -a -c xfce4-panel -p /panels -t int -s 0
  145. xfconf-query --create --channel xfce4-panel --property /panels/panel-0/plugin-ids \
  146.   -t int -s 1  -t int -s 2  -t int -s 4  -t int -s 6  -t int -s 8  -t int -s 9 \
  147.   -t int -s 10  -t int -s 11  -t int -s 13  -t int -s 15 -t int -s 16  -t int -s 17  -t int -s 19  -t int -s 20
  148. xfconf-query -n -c xfce4-panel -p /panels/panel-0/length -t int -s 100
  149. xfconf-query -n -c xfce4-panel -p /panels/panel-0/size -t int -s 30
  150. xfconf-query -n -c xfce4-panel -p /panels/panel-0/position -t string -s "p=6;x=0;y=0"
  151. xfconf-query -n -c xfce4-panel -p /panels/panel-0/position-locked -t bool -s true
  152. xfconf-query -n -c xfce4-panel -p /plugins/plugin-1 -t string -s applicationsmenu  # application menu
  153. xfconf-query -n -c xfce4-panel -p /plugins/plugin-2 -t string -s launcher          # terminal  ID: 13684522758
  154. xfconf-query -n -c xfce4-panel -p /plugins/plugin-4 -t string -s places            # places
  155. xfconf-query -n -c xfce4-panel -p /plugins/plugin-6 -t string -s launcher          # iceweasel ID: 13684522587
  156. xfconf-query -n -c xfce4-panel -p /plugins/plugin-9 -t string -s launcher          # search    ID: 136845425410
  157. xfconf-query -n -c xfce4-panel -p /plugins/plugin-10 -t string -s tasklist
  158. xfconf-query -n -c xfce4-panel -p /plugins/plugin-11 -t string -s separator
  159. xfconf-query -n -c xfce4-panel -p /plugins/plugin-13 -t string -s mixer            # audio
  160. xfconf-query -n -c xfce4-panel -p /plugins/plugin-15 -t string -s systray
  161. xfconf-query -n -c xfce4-panel -p /plugins/plugin-16 -t string -s actions
  162. xfconf-query -n -c xfce4-panel -p /plugins/plugin-17 -t string -s clock
  163. xfconf-query -n -c xfce4-panel -p /plugins/plugin-19 -t string -s pager
  164. xfconf-query -n -c xfce4-panel -p /plugins/plugin-20 -t string -s showdesktop
  165. # application menu
  166. xfconf-query -n -c xfce4-panel -p /plugins/plugin-1/show-tooltips -t bool -s true
  167. xfconf-query -n -c xfce4-panel -p /plugins/plugin-1/show-button-title -t bool -s false
  168. # terminal
  169. xfconf-query -n -c xfce4-panel -p /plugins/plugin-2/items -t string -s "13684522758.desktop" -a
  170. # places
  171. xfconf-query -n -c xfce4-panel -p /plugins/plugin-4/mount-open-volumes -t bool -s true
  172. # iceweasel
  173. xfconf-query -n -c xfce4-panel -p /plugins/plugin-6/items -t string -s "13684522587.desktop" -a
  174. # search
  175. xfconf-query -n -c xfce4-panel -p /plugins/plugin-9/items -t string -s "136845425410.desktop" -a
  176. # tasklist (& separator - required for padding)
  177. xfconf-query -n -c xfce4-panel -p /plugins/plugin-10/show-labels -t bool -s true
  178. xfconf-query -n -c xfce4-panel -p /plugins/plugin-10/show-handle -t bool -s false
  179. xfconf-query -n -c xfce4-panel -p /plugins/plugin-11/style -t int -s 0
  180. xfconf-query -n -c xfce4-panel -p /plugins/plugin-11/expand -t bool -s true
  181. # systray
  182. xfconf-query -n -c xfce4-panel -p /plugins/plugin-15/show-frame -t bool -s false
  183. # actions
  184. xfconf-query -n -c xfce4-panel -p /plugins/plugin-16/appearance -t int -s 1
  185. xfconf-query -n -c xfce4-panel -p /plugins/plugin-16/items -t string -s "+logout-dialog" -t string -s "-switch-user" -t string -s "-separator" -t string -s "-logout" -t string -s "+lock-screen" -t string -s "+hibernate" -t string -s "+suspend" -t string -s "+restart" -t string -s "+shutdown" -a
  186. # clock
  187. xfconf-query -n -c xfce4-panel -p /plugins/plugin-17/show-frame -t bool -s false
  188. xfconf-query -n -c xfce4-panel -p /plugins/plugin-17/mode -t int -s 2
  189. xfconf-query -n -c xfce4-panel -p /plugins/plugin-17/digital-format -t string -s "%R, %Y-%m-%d"
  190. # pager / workspace
  191. xfconf-query -n -c xfce4-panel -p /plugins/plugin-19/miniature-view -t bool -s true
  192. xfconf-query -n -c xfce4-panel -p /plugins/plugin-19/rows -t int -s 1
  193. xfconf-query -n -c xfwm4 -p /general/workspace_count -t int -s 3
  194. #--- Theme options
  195. xfconf-query -n -c xsettings -p /Net/ThemeName -s "Kali-X"
  196. xfconf-query -n -c xsettings -p /Net/IconThemeName -s "Vibrancy-Kali"
  197. xfconf-query -n -c xsettings -p /Gtk/MenuImages -t bool -s true
  198. xfconf-query -n -c xfce4-panel -p /plugins/plugin-1/button-icon -t string -s "kali-menu"
  199. #--- Window management
  200. xfconf-query -n -c xfwm4 -p /general/snap_to_border -t bool -s true
  201. xfconf-query -n -c xfwm4 -p /general/snap_to_windows -t bool -s true
  202. xfconf-query -n -c xfwm4 -p /general/wrap_windows -t bool -s false
  203. xfconf-query -n -c xfwm4 -p /general/wrap_workspaces -t bool -s false
  204. xfconf-query -n -c xfwm4 -p /general/click_to_focus -t bool -s false
  205. #--- TouchPad
  206. #xfconf-query -n -c pointers -p /SynPS2_Synaptics_TouchPad/Properties/Synaptics_Edge_Scrolling -t int -s 0 -t int -s 0 -t int -s 0
  207. #xfconf-query -n -c pointers -p /SynPS2_Synaptics_TouchPad/Properties/Synaptics_Tap_Action -t int -s 0 -t int -s 0 -t int -s 0 -t int -s 0 -t int -s 0 -t int -s 0 -t int -s 0
  208. #xfconf-query -n -c pointers -p /SynPS2_Synaptics_TouchPad/Properties/Synaptics_Two-Finger_Scrolling -t int -s 1 -t int -s 1
  209. xfconf-query -n -c xfwm4 -p /general/click_to_focus -t bool -s true
  210. #--- Hide icons
  211. xfconf-query -n -c xfce4-desktop -p /desktop-icons/file-icons/show-filesystem -t bool -s false
  212. xfconf-query -n -c xfce4-desktop -p /desktop-icons/file-icons/show-home -t bool -s false
  213. xfconf-query -n -c xfce4-desktop -p /desktop-icons/file-icons/show-trash -t bool -s false
  214. xfconf-query -n -c xfce4-desktop -p /desktop-icons/file-icons/show-removable -t bool -s false
  215. #--- Start and exit values
  216. xfconf-query -n -c xfce4-session -p /splash/Engine -t string -s ""
  217. xfconf-query -n -c xfce4-session -p /shutdown/LockScreen -t bool -s true
  218. xfconf-query -n -c xfce4-session -p /general/SaveOnExit -t bool -s false
  219. #--- Power options
  220. #xfconf-query -n -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-ac -t int -s 1
  221. #xfconf-query -n -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-battery -t int -s 1
  222. #--- App Finder
  223. xfconf-query -n -c xfce4-appfinder -p /last/pane-position -t int -s 248
  224. xfconf-query -n -c xfce4-appfinder -p /last/window-height -t int -s 742
  225. xfconf-query -n -c xfce4-appfinder -p /last/window-width -t int -s 648
  226. #--- Enable compositing
  227. xfconf-query -n -c xfwm4 -p /general/use_compositing -t bool -s true
  228. xfconf-query -n -c xfwm4 -p /general/frame_opacity -t int -s 85
  229.  
  230.  
  231. ##### Configure XFCE4
  232. echo -e "\n ${GREEN}[+]${RESET} Configuring ${GREEN}XFCE4${RESET}${RESET} ~ desktop environment"
  233. #--- XFCE fixes for default applications
  234. mkdir -p /root/.local/share/applications/
  235. file=/root/.local/share/applications/mimeapps.list; [ -e "${file}" ] && cp -n $file{,.bkup}
  236. [ ! -e "${file}" ] && echo '[Added Associations]' > "${file}"
  237. ([[ -e "${file}" && "$(tail -c 1 $file)" != "" ]]) && echo >> "${file}"
  238. for VALUE in file trash; do
  239.   sed -i 's#x-scheme-handler/'${VALUE}'=.*#x-scheme-handler/'${VALUE}'=exo-file-manager.desktop#' "${file}"
  240.   grep -q '^x-scheme-handler/'${VALUE}'=' "${file}" 2>/dev/null || echo 'x-scheme-handler/'${VALUE}'=exo-file-manager.desktop' >> "${file}"
  241. done
  242. for VALUE in http https; do
  243.   sed -i 's#^x-scheme-handler/'${VALUE}'=.*#x-scheme-handler/'${VALUE}'=exo-web-browser.desktop#' "${file}"
  244.   grep -q '^x-scheme-handler/'${VALUE}'=' "${file}" 2>/dev/null || echo 'x-scheme-handler/'${VALUE}'=exo-web-browser.desktop' >> "${file}"
  245. done
  246. [[ $(tail -n 1 "${file}") != "" ]] && echo >> "${file}"
  247. file=/root/.config/xfce4/helpers.rc; [ -e "${file}" ] && cp -n $file{,.bkup}    #exo-preferred-applications   #xdg-mime default
  248. sed -i 's#^FileManager=.*#FileManager=Thunar#' "${file}" 2>/dev/null
  249. grep -q '^FileManager=Thunar' "${file}" 2>/dev/null || echo 'FileManager=Thunar' >> "${file}"
  250. #--- Configure file browser - Thunar (need to re-login for effect)
  251. mkdir -p /root/.config/Thunar/
  252. file=/root/.config/Thunar/thunarrc; [ -e "${file}" ] && cp -n $file{,.bkup}
  253. ([[ -e "${file}" && "$(tail -c 1 $file)" != "" ]]) && echo >> "${file}"
  254. sed -i 's/LastShowHidden=.*/LastShowHidden=TRUE/' "${file}" 2>/dev/null || echo -e "[Configuration]\nLastShowHidden=TRUE" > /root/.config/Thunar/thunarrc;
  255. #--- XFCE fixes for Iceweasel
  256. file=/root/.config/xfce4/helpers.rc; [ -e "${file}" ] && cp -n $file{,.bkup}    #exo-preferred-applications   #xdg-mime default
  257. sed -i 's#^WebBrowser=.*#WebBrowser=iceweasel#' "${file}"
  258. grep -q '^WebBrowser=iceweasel' "${file}" 2>/dev/null || echo 'WebBrowser=iceweasel' >> "${file}"
  259. #--- Fix GNOME keyring issue
  260. file=/etc/xdg/autostart/gnome-keyring-pkcs11.desktop;   #[ -e "${file}" ] && cp -n $file{,.bkup}
  261. grep -q "XFCE" "${file}" || sed -i 's/^OnlyShowIn=*/OnlyShowIn=XFCE;/' "${file}"
  262. #--- Disable tracker (issue is, enables it in GNOME)
  263. tracker-control -r
  264. mkdir -p ~/.config/autostart/
  265. rm -f ~/.config/autostart/tracker-*.desktop
  266. rm -f /etc/xdg/autostart/tracker-*.desktop
  267. #--- Add keyboard shortcut (CTRL+SPACE) to open Application Finder
  268. file=/root/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml   #; [ -e "${file}" ] && cp -n $file{,.bkup}
  269. grep -q '<property name="&lt;Primary&gt;space" type="string" value="xfce4-appfinder"/>' "${file}" || sed -i 's#<property name="\&lt;Alt\&gt;F2" type="string" value="xfrun4"/>#<property name="\&lt;Alt\&gt;F2" type="string" value="xfrun4"/>\n      <property name="\&lt;Primary\&gt;space" type="string" value="xfce4-appfinder"/>#' "${file}"
  270. #--- Add keyboard shortcut (CTRL+ALT+t) to start a terminal window
  271. file=/root/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml   #; [ -e "${file}" ] && cp -n $file{,.bkup}
  272. grep -q '<property name="&lt;Primary&gt;&lt;Alt&gt;t" type="string" value="/usr/bin/exo-open --launch TerminalEmulator"/>' "${file}" || sed -i 's#<property name="\&lt;Alt\&gt;F2" type="string" value="xfrun4"/>#<property name="\&lt;Alt\&gt;F2" type="string" value="xfrun4"/>\n      <property name="\&lt;Primary\&gt;\&lt;Alt\&gt;t" type="string" value="/usr/bin/exo-open --launch TerminalEmulator"/>#' "${file}"
  273. #--- Remove any old sessions
  274. rm -f /root/.cache/sessions/*
  275. #--- Reload XFCE
  276. #/usr/bin/xfdesktop --reload
  277.  
  278. ##### Cosmetics (themes & wallpapers)
  279. echo -e "\n ${GREEN}[+]${RESET} ${GREEN}Cosmetics${RESET}${RESET} ~ XFCE Theme"
  280. mkdir -p /root/.themes/
  281. export DISPLAY=:0.0   #[[ -z $SSH_CONNECTION ]] || export DISPLAY=:0.0
  282. #--- axiom / axiomd (May 18 2010) XFCE4 theme
  283. curl --progress -k -L -f "http://xfce-look.org/CONTENT/content-files/90145-axiom.tar.gz" > /tmp/axiom.tar.gz || echo -e ' '${RED}'[!]'${RESET}" Issue downloading axiom.tar.gz" 1>&2    #***!!! hardcoded path!
  284. tar -zxf /tmp/axiom.tar.gz -C /root/.themes/
  285. xfconf-query -n -c xsettings -p /Net/ThemeName -s "axiomd"
  286. xfconf-query -n -c xsettings -p /Net/IconThemeName -s "Vibrancy-Kali-Dark"
  287. #--- Remove old temp files
  288. rm -f /tmp/axiom.tar*
Add Comment
Please, Sign In to add comment