Add GTK config, set GTK font, fix background, make background customizable

This commit is contained in:
Johannes Loher 2020-09-19 13:11:50 +02:00
parent 598847ccef
commit aa517adf20
8 changed files with 55 additions and 20 deletions

View file

@ -1,5 +1,5 @@
[global] [global]
font = "Roboto Regular 14" font = "Roboto 14"
allow_markup = yes allow_markup = yes
format = "<b>%s %p</b>\n%b" format = "<b>%s %p</b>\n%b"
sort = yes sort = yes

View file

@ -0,0 +1,15 @@
[Settings]
gtk-theme-name=Arc-Darker
gtk-icon-theme-name=Moka
gtk-font-name=Roboto 14
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

View file

@ -17,7 +17,7 @@ set $color_yellow #ffd400
set $color_green #a8ff00 set $color_green #a8ff00
set $color_blue #5ac8fa set $color_blue #5ac8fa
set $font Roboto Regular 14 set $font Roboto 14
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Font # Font

View file

@ -1,4 +1,4 @@
font=Roboto Regular 14 font=Roboto 14
border-size=0 border-size=0
background-color=#2F343F background-color=#2F343F
text-color=#D3DAE3 text-color=#D3DAE3

View file

@ -2,7 +2,7 @@ configuration {
modi: "drun,run"; modi: "drun,run";
width: 25; width: 25;
lines: 7; lines: 7;
font: "Roboto Regular 14"; font: "Roboto 14";
bw: 0; bw: 0;
location: 0; location: 0;
padding: 7.5; padding: 7.5;

View file

@ -1,16 +1,3 @@
# ------------------------------------------------------------------------------
# Device specific include
# ------------------------------------------------------------------------------
# This needs to set the following variables:
# $primary_monitor_identifier - Identifier of the primary monitor
# $primary_monitor_resolution - Resolution for the primary monitor
# $primary_monitor_scale - Scale factor for thr primary monitor
# $secondary_monitor_x_offset - X offset for the secondary monitor
# $audio_out - Name of the audio drain to be controlled by shortcuts
# $audio_in - Name of the audio source to be controlled by shortcuts
include config.local
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Variables # Variables
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@ -24,7 +11,21 @@ set $color_indicator #4DADD4
set $color_warn #F27835 set $color_warn #F27835
set $color_error #FC4138 set $color_error #FC4138
set $font Roboto Regular 14 set $font Roboto 14
set $background $HOME/.backgrounds/mountain.jpg
# ------------------------------------------------------------------------------
# Device specific include
# ------------------------------------------------------------------------------
# This needs to set the following variables and additionally can override any of the above variables:
# $primary_monitor_identifier - Identifier of the primary monitor
# $primary_monitor_resolution - Resolution for the primary monitor
# $primary_monitor_scale - Scale factor for thr primary monitor
# $secondary_monitor_x_offset - X offset for the secondary monitor
# $audio_out - Name of the audio drain to be controlled by shortcuts
# $audio_in - Name of the audio source to be controlled by shortcuts
include config.local
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Inputs # Inputs
@ -48,7 +49,7 @@ input 9456:311:Metadot_-_Das_Keyboard_Das_Keyboard_Model_S xkb_model "pc105"
output $primary_monitor_identifier pos 0 0 res $primary_monitor_resolution scale $primary_monitor_scale output $primary_monitor_identifier pos 0 0 res $primary_monitor_resolution scale $primary_monitor_scale
output DP-3 pos $secondary_monitor_x_offset 0 res 1920x1200 output DP-3 pos $secondary_monitor_x_offset 0 res 1920x1200
output * bg $HOME/Bilder/backgrounds/mountain.jpg fill output * bg $background fill
bindswitch --reload --locked lid:on output $primary_monitor_identifier disable bindswitch --reload --locked lid:on output $primary_monitor_identifier disable
bindswitch --reload --locked lid:off output $primary_monitor_identifier enable bindswitch --reload --locked lid:off output $primary_monitor_identifier enable
@ -293,4 +294,5 @@ exec_always {
gsettings set $gnome-schema gtk-theme 'Arc-Darker' gsettings set $gnome-schema gtk-theme 'Arc-Darker'
gsettings set $gnome-schema icon-theme 'Moka' gsettings set $gnome-schema icon-theme 'Moka'
gsettings set $gnome-schema cursor-theme 'Adwaita' gsettings set $gnome-schema cursor-theme 'Adwaita'
gsettings set $gnome-schema font-name '$font'
} }

View file

@ -6,7 +6,7 @@ timestr=%H:%M
screenshots screenshots
hide-keyboard-layout hide-keyboard-layout
bs-hl-color=F27835FF bs-hl-color=F27835FF
font=Roboto=Regular font=Roboto
indicator-idle-visible indicator-idle-visible
indicator-radius=100 indicator-radius=100
indicator-thickness=10 indicator-thickness=10

18
.gtkrc-2.0 Normal file
View file

@ -0,0 +1,18 @@
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/johannesloher/.gtkrc-2.0.mine"
gtk-theme-name="Arc-Darker"
gtk-icon-theme-name="Moka"
gtk-font-name="Roboto 14"
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"