Skip to content

Instantly share code, notes, and snippets.

@mezcel
Last active May 6, 2019 10:45
Show Gist options
  • Select an option

  • Save mezcel/b512f676f6b159c1d11a3bf338bf676b to your computer and use it in GitHub Desktop.

Select an option

Save mezcel/b512f676f6b159c1d11a3bf338bf676b to your computer and use it in GitHub Desktop.
Basic themes for Xfce

Xfce Themes

Themes for my ubuntu xfce desktop

## generic theme file paths

/usr/share/themes

~/.thems
~/.icons
#!/bin/bash
## add user to sudo
usermod -aG sudo mezcel
## allow the nmcli connection you have made to connect to wifi router
echo "[device]" >> /etc/NetworkManager/NetworkManager.conf
echo "wifi.scan-rand-mac-address=no" >> /etc/NetworkManager/NetworkManager.conf
apt install build-essential
#!/bin/bash
## xfce4 themes
sudo apt install htop git geany geany-plugins pinta
sudo apt install git gnome-themes-standard gtk2-engines-murrine
cd ~/Downloads/
git clone https://github.com/p0ngbr/xfce-themes.git
git clone https://github.com/grassmunk/Chicago95.git
git clone https://github.com/codebrainz/geany-themes.git
#!/bin/bash
## Linuxmint 18.3 Xfce, RDP on a fixed known machine
## For use after all OS partitions are installed and in place
## kill bluetooth
sudo rfkill block bluetooth
echo "
10s pause ...
"
sleep 10s
## Install dependancies
sudo apt-get update
sudo apt-get install openssh-server
sudo apt-get install xrdp
sudo apt-get install tightvncserver
sleep 5s
## NetworkManager
sudo systemctl enable NetworkManager
sleep 5s
sudo systemctl enable sshd
sleep 5s
## Wifi Host
mySsidName=kangaroo-wifi
myModeType=wifi
myIfname=wlp1s0
myAutoState=yes
myIpMethod=shared
## Defile new ssid WIFI
echo ""
read -p "Set a password for kangaroo-wifi: " myWifiPw
echo ""
sudo nmcli con add type $myModeType ifname $myIfname con-name $mySsidName autoconnect $myAutoState ssid $mySsidName
sleep 3s
sudo nmcli con modify $mySsidName 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method $myIpMethod
sleep 3s
sudo nmcli con modify $mySsidName wifi-sec.key-mgmt wpa-psk
sleep 3s
sudo nmcli con modify $mySsidName wifi-sec.psk $myWifiPw
sleep 10s
echo "
10s pause ...
"
## Defile new ssid ETHERNET
mySsidName=kangaroo-ethernet
myModeType=ethernet
myIfname=enx300ed5e804d9
myAutoState=yes
myIpMethod=shared
myIp4Addr=192.168.0.100/24
myIp4Gateway=192.168.0.1
## Defile new ssid
sudo nmcli con add type $myModeType ifname $myIfname con-name $mySsidName autoconnect $myAutoState
sleep 3s
sudo nmcli con modify $mySsidName ipv4.method $myIpMethod
sleep 3s
sudo nmcli con modify $mySsidName ipv4.addresses $myIp4Addr
sleep 3s
sudo nmcli con modify $mySsidName ipv4.gateway $myIp4Gateway
sleep 10s
echo "
10s pause ...
"
## Configure GRUB for 2 OS's Mint=0, Arch=2
# echo "GRUB_DEFAULT=2" >> /etc/default/grub
# sleep 1s
# echo "GRUB_TIMEOUT=20" >> /etc/default/grub
# sleep 1s
echo "xfce4-session" > ~/.xsession
sleep 1s
## Launch Desktop Sharing
vino-preferences
#!/bin/bash
## After Xfce is installed, these are some general purpose theme that feel good to my eyes
function themesFromGithub {
## /McOS-MJV-XFCE-Edition
myDownloads=~/Downloads/
giturl="https://github.com/paullinuxthemer/McOS-MJV-XFCE-Edition.git"
git clone $giturl $myDownloads/McOS-MJV-XFCE-Edition
sudo cp -rf $myDownloads/McOS-MJV-XFCE-Edition/* /usr/share/themes/
giturl="https://github.com/paullinuxthemer/McOS-MJV-Dark-XFCE-Edition.git"
git clone $giturl $myDownloads/McOS-MJV-Dark-XFCE-Edition
sudo cp -rf $myDownloads/McOS-MJV-Dark-XFCE-Edition/* /usr/share/themes/
echo "
Installed themes from Github
"
}
function themesFromXfceLook {
## https://www.xfce-look.org
myDownloads=~/Downloads
zipUrl="https://www.xfce-look.org/p/1255374/startdownload?file_id=1536244428&file_name=Arctodon-Xfwm.tar.gz&file_type=application/x-gzip&file_size=49178"
wget -P $myDownloads/ $zipUrl
unzip "$myDownloads/Arctodon-Xfwm.tar.gz" -d $myDownloads/
sudo cp -rf $myDownloads/Arctodon-Xfwm/* /usr/share/themes/
zipUrl="https://www.xfce-look.org/p/1149875/startdownload?file_id=1470015356&file_name=Win10-dark\(small\).tar.gz&file_type=application/x-gzip&file_size=3432"
wget -P $myDownloads/ $zipUrl
unzip "$myDownloads/Win10-dark(small).tar.gz" -d $myDownloads/
sudo cp -rf "$myDownloads/Win10-dark(small).tar.gz/*" /usr/share/themes/
echo "
Installed themes from xfce-look.org
"
}
function wallpapers {
# wget -P ~/Pictures/ "./misc-wallpapers.tar.gz"
# unzip misc-wallpapers.zip -d ~/Pictures/
echo "
-
"
}
function macbuntuTheme {
sudo add-apt-repository ppa:noobslab/macbuntu
## Macbuntu Wallpapers
wget -P ~/Pictures/ "http://drive.noobslab.com/data/Mac/MacBuntu-Wallpapers.zip"
unzip ~/Pictures/MacBuntu-Wallpapers.zip -d ~/Pictures/
## MacBuntu OS Y Theme, Icons and cursors:
sudo apt-get update
sudo apt-get install macbuntu-os-icons-v1804
sudo apt-get install macbuntu-os-ithemes-v1804
## Uninstall icons and themes
# sudo apt-get remove macbuntu-os-icons-v1804 macbuntu-os-ithemes-v1804
sudo apt-get update
# sudo apt-get install slingscold ## Slingscold (Alternative to Launchpad)
# sudo apt-get install albert ## Albert Spotlight (Alternative to Mac Spotlight)
sudo apt-get install macbuntu-os-plank-theme-v1804 ## Plank Dock
## killall xfce4-panel
## Uninstall plank
# sudo apt-get autoremove plank macbuntu-os-plank-theme-v1804
## Tweak Tools to change Themes & Icons:
# sudo apt-get install gnome-tweak-tool
# sudo apt-get install libreoffice-style-sifr
## (Optional) Mac fonts:
wget -O mac-fonts.zip http://drive.noobslab.com/data/Mac/macfonts.zip
sudo unzip mac-fonts.zip -d /usr/share/fonts; rm mac-fonts.zip
sudo fc-cache -f -v
echo "
Installed themes from noobslab
"
debugVar=$debugVar" macbuntuTheme"
}
function generalSoftware {
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install git gcc xterm geany geany-plugins tree nano mc
## Geany themes
git clone https://github.com/codebrainz/geany-themes.git ~/Downloads/geany-themes
sh ~/Downloads/geany-themes/install.sh
## Nano themes
# sudo cp /etc/nanorc ~/
# mv ~/nanorc ~/.nanorc
# sudo chmod +x ~/.nanorc
echo "include /usr/share/nano/*" >> ~/.nanorc
echo "
Installed general software
"
debugVar=$debugVar" generalSoftware"
}
function githubUser {
## Define Github user
## clear
echo "
Enter your Github user profile.
You need this in order to commit/push to Github
---------------------------------------------------
"
echo "# git config --global user.name
"
read -p " github user name: " githubusername
echo ""
echo "# git config --global user.email
"
read -p " github user email: " githubuseremail
echo "---"
git config --global user.name $githubusername
git config --global user.email $githubuseremail
echo "
Done.
# git config --global user.name $githubusername
# git config --global user.email $githubuseremail
"
}
function installThemes {
themesFromGithub; sleep 1s
themesFromXfceLook; sleep 1s
# macbuntuTheme
# wallpapers
generalSoftware; sleep 1s
githubUser
echo "
$debugVar
Done.
"
}
## Run
# sudo apt-get update
installThemes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment