-
Notifications
You must be signed in to change notification settings - Fork 3
/
dark_config
executable file
·40 lines (35 loc) · 1.32 KB
/
dark_config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Change to dark configuration for the following interfaces:
# * xfce4-terminal
# * tmux
# * vim
# * gtk
#
# Where the files are
DOTS=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Warning to other users here: This is not portable. There doesn't seem to be a nice
# way to check which desktop environment (if any) is running reliably. This works for
# my machines and I'm happy enough with it.
if [ "$DESKTOP_SESSION" == "gnome-xorg" ]; then
: gsettings set org.gnome.desktop.interface gtk-theme "Arc-Grey-Darker"
gsettings reset org.gnome.shell.extensions.user-theme "Arc-Grey-Darker"
elif [ "$DESKTOP_SESSION" == "gnome" ]; then
gsettings set org.gnome.desktop.interface gtk-theme "Arc-Grey-Darker"
gsettings reset org.gnome.shell.extensions.user-theme "Arc-Grey-Darker"
elif [ "$DESKTOP_SESSION" == "xfce" ]; then
xfconf-query -c xsettings -p /Net/ThemeName -s "Arc-Grey-Darker"
fi
# Move all of the files into their respective places
mkdir -p ~/.config
mkdir -p ~/.scripts
cp $DOTS/bashrc ~/.bashrc
cp $DOTS/vim/vimrc ~/.vimrc
cp $DOTS/tmux.conf ~/.tmux.conf
cp $DOTS/tmuxline ~/.tmuxline
cp $DOTS/spacemacs ~/.spacemacs
cp $DOTS/inputrc ~/.inputrc
cp -r $DOTS/scripts/* ~/.scripts/
cp -r $DOTS/i3 ~/.config/
cp -r $DOTS/polybar ~/.config/
cp -r $DOTS/nvim ~/.config/
cp -r $DOTS/base16-shell ~/.config/
source ~/.bashrc