dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit cee595d5b4f16be325b25845a06763225edff37a
parent e80b631352f9b90c05e95af878f808751c8f351e
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu, 30 Sep 2021 00:36:58 +0200

set-theme: set GTK themes

Diffstat:
Mdot.map | 3+++
Agtk-2.0/dark | 3+++
Agtk-2.0/gtkrc | 13+++++++++++++
Agtk-2.0/light | 3+++
Agtk-3.0/dark.ini | 16++++++++++++++++
Agtk-3.0/light.ini | 16++++++++++++++++
Agtk-3.0/settings.ini | 16++++++++++++++++
Mscripts/set-theme | 13+++++++++++--
8 files changed, 81 insertions(+), 2 deletions(-)

diff --git a/dot.map b/dot.map @@ -69,6 +69,9 @@ xinitrc: ~/.xinitrc xprofile: ~/.xprofile Xresources: ~/.Xresources +# Config: GTK +gtk-2.0/gtkrc: ~/.gtkrc-2.0 + # Config: Emacs emacs: - config.org: ~/.emacs.d/config.org diff --git a/gtk-2.0/dark b/gtk-2.0/dark @@ -0,0 +1,3 @@ +gtk-theme-name="Breeze-Dark" +gtk-icon-theme-name="Adwaita" +gtk-cursor-theme-name="Adwaita" diff --git a/gtk-2.0/gtkrc b/gtk-2.0/gtkrc @@ -0,0 +1,13 @@ +include "/home/alex/.config/gtk-2.0/theme" +gtk-font-name="Cantarell 11" +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=1 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle="hintfull" +gtk-xft-rgba="rgb" diff --git a/gtk-2.0/light b/gtk-2.0/light @@ -0,0 +1,3 @@ +gtk-theme-name="Breeze" +gtk-icon-theme-name="Adwaita" +gtk-cursor-theme-name="Adwaita" diff --git a/gtk-3.0/dark.ini b/gtk-3.0/dark.ini @@ -0,0 +1,16 @@ +[Settings] +gtk-icon-theme-name=Adwaita +gtk-theme-name=Breeze-Dark +gtk-font-name=Cantarell 11 +gtk-cursor-theme-name=Adwaita +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=1 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintfull +gtk-xft-rgba=rgb diff --git a/gtk-3.0/light.ini b/gtk-3.0/light.ini @@ -0,0 +1,16 @@ +[Settings] +gtk-icon-theme-name=Adwaita +gtk-theme-name=Breeze +gtk-font-name=Cantarell 11 +gtk-cursor-theme-name=Adwaita +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=1 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintfull +gtk-xft-rgba=rgb diff --git a/gtk-3.0/settings.ini b/gtk-3.0/settings.ini @@ -0,0 +1,16 @@ +[Settings] +gtk-icon-theme-name=Adwaita +gtk-theme-name=Breeze-Dark +gtk-font-name=Cantarell 11 +gtk-cursor-theme-name=Adwaita +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=1 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintfull +gtk-xft-rgba=rgb diff --git a/scripts/set-theme b/scripts/set-theme @@ -44,6 +44,12 @@ except Exception as exception: EOF } +set_gtk() { + mkdir -p ~/.config/gtk-2.0 ~/.config/gtk-3.0 + [ -f ~/.dotfiles/gtk-2.0/"$1" ] && ln -sf ~/.dotfiles/gtk-2.0/"$1" ~/.config/gtk-2.0/theme + [ -f ~/.dotfiles/gtk-3.0/"$1".ini ] && ln -sf ~/.dotfiles/gtk-3.0/"$1".ini ~/.config/gtk-3.0/settings.ini +} + # Change the 'colors' setting in the Alacritty config alacritty_change_theme() { # Look up the config file @@ -66,9 +72,9 @@ colors: *${1}" "$CFG" > "$tmpfile" \ set_terminal_and_wallpaper() { if [ "$1" = "light" ]; then - /Users/alex/.local/bin/wal --saturate 0.8 -i "$(realpath ~/Pictures/Backgrounds/light.jpg)" -l; + wal --saturate 0.8 -i "$(realpath ~/Pictures/Backgrounds/light.jpg)" -l; else - /Users/alex/.local/bin/wal -i "$(realpath ~/Pictures/Backgrounds/dark.jpg)"; + wal -i "$(realpath ~/Pictures/Backgrounds/dark.jpg)"; fi } @@ -106,6 +112,9 @@ case "$os" in # set_iterm2 "$theme" alacritty_change_theme "$theme" ;; + linux*) + set_gtk "$theme" + ;; esac set_p10k "$theme"