Advertisement
yakar

Kali 2 Xfce

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