Skip to content

Instantly share code, notes, and snippets.

@abdulhalim-cu
Created November 5, 2017 09:43
Show Gist options
  • Save abdulhalim-cu/d78fc43c337c239e08bdb212090d3375 to your computer and use it in GitHub Desktop.
Save abdulhalim-cu/d78fc43c337c239e08bdb212090d3375 to your computer and use it in GitHub Desktop.
####################################
# SET UP NUMIX ON DEBIAN WITH XFCE #
####################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |------------------------------------|
# | OS | Test | Last test |
# |----------------|------|------------|
# | Debian 9.1 | OK | 4 Sep 2017 |
# 1. KEEP DEBIAN UP TO DATE
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
# 2. DOWNLOAD FONTS
cd /usr/local/share/fonts
# 2.1. Open Sans
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-Bold.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-BoldItalic.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-ExtraBold.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-ExtraBoldItalic.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-Italic.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-Light.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-LightItalic.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-Regular.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-SemiBold.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/opensans/OpenSans-SemiBoldItalic.ttf
# 2.2. Arimo
sudo wget https://github.com/google/fonts/raw/master/apache/arimo/Arimo-Bold.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/arimo/Arimo-BoldItalic.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/arimo/Arimo-Italic.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/arimo/Arimo-Regular.ttf
# 2.3. Cousine
sudo wget https://github.com/google/fonts/raw/master/apache/cousine/Cousine-Bold.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/cousine/Cousine-BoldItalic.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/cousine/Cousine-Italic.ttf
sudo wget https://github.com/google/fonts/raw/master/apache/cousine/Cousine-Regular.ttf
# 2.4. Fira Mono Regular
sudo wget https://github.com/mozilla/fira/raw/master/ttf/FiraMono-Bold.ttf
sudo wget https://github.com/mozilla/fira/raw/master/ttf/FiraMono-Medium.ttf
sudo wget https://github.com/mozilla/fira/raw/master/ttf/FiraMono-Regular.ttf
# 3. INSTALL NUMIX THEME AND NUMIX ICONS
sudo apt-get install -y numix-gtk-theme
sudo apt-get install -y numix-icon-theme
sudo apt-get install -y git
# 3.1. Install Numix Circle Icons
sudo mkdir -p /usr/local/share/icons
cd /usr/local/share/icons
sudo rm -rf numix-icon-theme-circle Numix-Circle
sudo git clone https://github.com/numixproject/numix-icon-theme-circle.git
sudo mv numix-icon-theme-circle/Numix-Circle .
sudo rm -rf numix-icon-theme-circle
sudo gtk-update-icon-cache /usr/local/share/icons/Numix-Circle
# 4. DOWNLOAD A DEBIAN DESKTOP BACKGROUND
sudo mkdir -p /usr/local/share/images
cd /usr/local/share/images
sudo wget http://wallpapercave.com/wp/uB1CL6W.png -O debian_bg.png
# 5. CONFIG NUMIX'S THEME, WM, AND ICONS IN XFCE
xfconf-query -c xsettings -p /Net/ThemeName -s 'Numix'
xfconf-query -c xfwm4 -p /general/theme -s 'Numix'
xfconf-query -c xsettings -p /Net/IconThemeName -s 'Numix-Circle'
xfconf-query -c xfwm4 -p /general/button_layout -s 'O|HMC'
xfconf-query -c xfwm4 -p /general/title_font -s 'Open Sans Semi-Bold 12'
xfconf-query -c xfwm4 -p /general/workspace_count -s 1
xfconf-query -c xsettings -p /Gtk/FontName -s 'Open Sans 12'
xfconf-query -n -c xsettings -p /Gtk/ColorScheme -t string -s 'selected_bg_color:#204a87;selected_fg_color:#eeeeee;'
xfconf-query -c xsettings -p /Xft/Antialias -s 1
xfconf-query -c xsettings -p /Xft/Hinting -s 1
xfconf-query -c xsettings -p /Xft/HintStyle -s 'hintfull'
xfconf-query -c xsettings -p /Xft/RGBA -s 'rgb'
xfconf-query -n -c xsettings -p /Xft/DPI -t int -s -1
# xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s '/usr/local/share/images/debian_bg.png'
# xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-show -s true
# xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/last-image -s '/usr/local/share/images/debian_bg.png'
# xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/last-single-image -s '/usr/local/share/images/debian_bg.png'
xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/image-style -s 5
xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/last-image -s '/usr/local/share/images/debian_bg.png'
# 6. CONFIG TERMINAL APPEARANCE
echo '[Configuration]' > ~/.config/xfce4/terminal/terminalrc
echo 'FontName=Fira Mono Regular 12' >> ~/.config/xfce4/terminal/terminalrc
echo 'ColorBackground=#002b36' >> ~/.config/xfce4/terminal/terminalrc
echo 'ColorForeground=#d4e1e2' >> ~/.config/xfce4/terminal/terminalrc
echo 'ColorCursor=#93a1a1' >> ~/.config/xfce4/terminal/terminalrc
echo 'TabActivityColor=#dc322f' >> ~/.config/xfce4/terminal/terminalrc
echo 'ColorPalette=#073642;#dc322f;#859900;#b58900;#268bd2;#d33682;#2aa198;#eee8d5;#002b36;#cb4b16;#586e75;#657b83;#5e858b;#6c71c4;#93a1a1;#fdf6e3' >> ~/.config/xfce4/terminal/terminalrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment