Skip to content

Instantly share code, notes, and snippets.

@flamencist
Last active June 26, 2018 14:53
Show Gist options
  • Save flamencist/a805d2e538fa03973987b6696315ebe9 to your computer and use it in GitHub Desktop.
Save flamencist/a805d2e538fa03973987b6696315ebe9 to your computer and use it in GitHub Desktop.
#!/bin/bash
readonly THEME_NAME="Windos-10-Light"
readonly CURSOR_THEME_NAME="Win8"
readonly ICON_THEME_NAME="Windows 10"
function set_theme(){
local theme=$1
local cursor=$2
local icon=$3
gsettings set org.gnome.metacity theme "${theme}"
gsettings set org.gnome.desktop.background picture-options none
gsettings set org.gnome.desktop.interface cursor-theme "${cursor}"
if [! -d ~/.config/gtk-3.0 ]
then
mkdir -p ~/.config/gtk-3.0
fi
cat <<EOF >~/.config/gtk-3.0/settings.ini
[Settings]
gtk-application-prefer-dark-theme = false
gtk-theme-name = ${theme}
gtk-icon-theme-name = ${icon}
gtk-cursor-theme-name = ${cursor}
gtk-icon-sizes = panel-menu-bar=24,24
EOF
cat <<EOF >~/.icawm
#!/bin/bash
export WM=/usr/bin/metacity
EOF
}
if [ ! -z "${CITRIX_DISPLAY}" ]
then
set_theme "${THEME_NAME}" "${CURSOR_THEME_NAME}" "${ICON_THEME_NAME}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment