diff --git a/dots/gtk/3/gtk.css b/dots/gtk/3/gtk.css deleted file mode 100644 index 66bae57..0000000 --- a/dots/gtk/3/gtk.css +++ /dev/null @@ -1,16 +0,0 @@ -headerbar entry, -headerbar spinbutton, -headerbar button, -headerbar separator { - margin-top: 0px; - margin-bottom: 0px; - min-height: 10px; -} - -headerbar { - min-height: 16px; - padding-left: 2px; - padding-right: 2px; - margin: 0px; - padding: 0px; -} diff --git a/dots/gtk/3/gtktemplate.css b/dots/gtk/3/gtktemplate.css new file mode 100644 index 0000000..3ad2102 --- /dev/null +++ b/dots/gtk/3/gtktemplate.css @@ -0,0 +1,47 @@ +headerbar entry, +headerbar spinbutton, +headerbar button, +headerbar separator { + margin-top: 0px; + margin-bottom: 0px; + min-height: 10px; +} + +headerbar { + min-height: 16px; + padding-left: 2px; + padding-right: 2px; + margin: 0px; + padding: 0px; +} + +@define-color decoration_border_color COLOUR; + +/* focused window */ +decoration { + border: 5px solid @decoration_border_color; + background: @decoration_border_color; +} + +/* unfocused window */ +decoration:backdrop { + border-color: @decoration_border_color; + background-color: @decoration_border_color; +} + +/* focused window (server-side rendering hack) */ +.ssd .titlebar { + border: 5px solid @decoration_border_color; + border-bottom: none; +} + +/* unfocused window (server-side rendering hack) */ +.ssd .titlebar:backdrop { + border-color: @decoration_border_color; +} + +/* remove borders of maximized windows */ +.maximized decoration, +.ssd.maximized .titlebar { + border: none +} diff --git a/dots/openbox/autostart b/dots/openbox/autostart index ec172e8..9b96df1 100644 --- a/dots/openbox/autostart +++ b/dots/openbox/autostart @@ -1,5 +1,7 @@ +synclient MaxTapTime=0 & xcompmgr & wal --vte -R & +plank & pnmixer & conky & tint2 & diff --git a/scripts/bordergen.sh b/scripts/bordergen.sh index 4a121a8..38c85f2 100755 --- a/scripts/bordergen.sh +++ b/scripts/bordergen.sh @@ -16,3 +16,9 @@ cp ~/.linux/dots/conkytemplate ~/conkyplac sed -i "s/COLOURTEMPLATE/${csub}/g" ~/conkyplac rm -f ~/.conkyrc mv ~/conkyplac ~/.conkyrc + +# Create new gtk css +cp ~/.linux/dots/gtk/3/gtktemplate.css ~/.config/gtk-3.0/gtkplac.css +sed -i "s/COLOUR/${csub}/g" ~/.config/gtk-3.0/gtkplac.css +rm -f ~/.config/gtk-3.0/gtk.css +mv ~/.config/gtk-3.0/gtkplac.css ~/.config/gtk-3.0/gtk.css diff --git a/scripts/dotset.sh b/scripts/dotset.sh index e57c930..16e3e69 100755 --- a/scripts/dotset.sh +++ b/scripts/dotset.sh @@ -12,7 +12,6 @@ rm -f ~/.oh-my-zsh/custom/aliases rm -f ~/.config/openbox/* rm -f ~/.config/rofi/config.rasi rm -f ~/.config/gtk-3.0/settings.ini -rm -f ~/.config/gtk-3.0/gtk.css rm -f ~/.config/gtk-4.0/settings.ini rm -f ~/.config/fontconfig/fonts.conf @@ -31,7 +30,6 @@ mkdir -p ~/.config/rofi ln -s ~/.linux/dots/rofi/config.rasi ~/.config/rofi mkdir -p ~/.config/gtk-3.0 ln -s ~/.linux/dots/gtk/3/settings.ini ~/.config/gtk-3.0 -ln -s ~/.linux/dots/gtk/3/gtk.css ~/.config/gtk-3.0 mkdir -p ~/.config/gtk-4.0 ln -s ~/.linux/dots/gtk/4/settings.ini ~/.config/gtk-4.0 mkdir -p ~/.config/fontconfig