From 8acab2706df1409f38e588c863eec646651ce8b8 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 20:30:57 +0200 Subject: [PATCH 01/16] [alacritty] Use JetBrains Mono font --- alacritty/alacritty.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml index be4ba2e..0c7639b 100644 --- a/alacritty/alacritty.yml +++ b/alacritty/alacritty.yml @@ -100,7 +100,7 @@ font: # - (macOS) Menlo # - (Linux/BSD) monospace # - (Windows) Consolas - family: Iosevka + family: JetBrains Mono # The `style` can be specified to pick a specific face. style: Regular From de7c25f91c9ec4b39e0aea646c21b79bc04e48ae Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 20:31:12 +0200 Subject: [PATCH 02/16] [dunst] Use JetBrains Mono font --- dunst/dunstrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunst/dunstrc b/dunst/dunstrc index d1a985a..14118ca 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -86,7 +86,7 @@ ### Text ### - font = Iosevka 10 + font = JetBrains Mono 10 # The spacing between lines. If the height is smaller than the # font height, it will get raised to the font height. From 8c56875d897302cad309bd19355316bb4e08e07b Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 20:31:21 +0200 Subject: [PATCH 03/16] [dunst] don't follow mouse --- dunst/dunstrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunst/dunstrc b/dunst/dunstrc index 14118ca..392e371 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -15,7 +15,7 @@ # # If this option is set to mouse or keyboard, the monitor option # will be ignored. - follow = mouse + follow = none # The geometry of the window: # [{width}]x{height}[+/-{x}+/-{y}] From e5eee8cb93e8556fbdbcebdf3cb016693eca0c22 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 20:34:25 +0200 Subject: [PATCH 04/16] [fish] set QT_QPA_PLATFORMTHEME to use qt5ct --- shells/fish/conf.d/00-env.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shells/fish/conf.d/00-env.fish b/shells/fish/conf.d/00-env.fish index 2deb557..1a18907 100644 --- a/shells/fish/conf.d/00-env.fish +++ b/shells/fish/conf.d/00-env.fish @@ -46,3 +46,7 @@ end if test -z "$XDG_CURRENT_DESKTOP" set -Ux XDG_CURRENT_DESKTOP GNOME end + +if test -z "$QT_QPA_PLATFORMTHEME" + set -Ux QT_QPA_PLATFORMTHEME qt5ct +end From 23c68c5b401453401ee78b01af3e89ec2b930bd7 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 20:35:03 +0200 Subject: [PATCH 05/16] [redshift] rework configuration --- redshift/redshift | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/redshift/redshift b/redshift/redshift index dd924b3..42b517f 100644 --- a/redshift/redshift +++ b/redshift/redshift @@ -1,6 +1,15 @@ [redshift] location-provider=manual +temp-day=5700 +temp-night=3500 + +transition=1 + +gamma-day=1.0 +gamma-night=0.8:0.8:0.7 + +adjustment-method=randr [manual] -lat=48 -lon=010 +lat=48.39 +lon=9.99 From c17e1f13e0d8ec520ccf5ed90f31ebafb39ccb42 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 20:38:36 +0200 Subject: [PATCH 06/16] [qutebrowser] load autoconfig.yml --- qutebrowser/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index dc314f4..9428467 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -4,7 +4,7 @@ # qute://help/settings.html # Uncomment this to still load settings configured via autoconfig.yml -# config.load_autoconfig() +config.load_autoconfig() # Require a confirmation before quitting the application. # Type: ConfirmQuit From 95c69f0a0120a42d2e2a74c2897465874bdc2cfe Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 20:39:29 +0200 Subject: [PATCH 07/16] [qutebrowser] add german as accepted_language --- qutebrowser/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 9428467..b9b1411 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -35,7 +35,7 @@ c.content.geolocation = False # Value to send in the `Accept-Language` header. Note that the value # read from JavaScript is always the global value. # Type: String -c.content.headers.accept_language = 'en-US,en;q=0.9' +c.content.headers.accept_language = 'en-US,en,de,de-DE;q=0.9' # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: From 391240bc7199938a4b5c41e43ac4a040981fe93a Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:06:36 +0200 Subject: [PATCH 08/16] [qutebrowser] Don't enable PDF.js since not available --- qutebrowser/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index b9b1411..2d8aaee 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -121,7 +121,7 @@ config.set('content.javascript.enabled', True, 'qute://*/*') # still be downloaded by clicking the download button in the pdf.js # viewer. # Type: Bool -c.content.pdfjs = True +c.content.pdfjs = False # Height (in pixels or as percentage of the window) of the completion. # Type: PercOrInt From 923b9fbd9e43252923fd163e9502f4307484d48f Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:08:33 +0200 Subject: [PATCH 09/16] [qutebrowser] Set tab bar width just little smaller --- qutebrowser/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 2d8aaee..a243f8f 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -153,7 +153,7 @@ c.tabs.position = 'left' # Width (in pixels or as percentage of the window) of the tab bar if # it's vertical. # Type: PercOrInt -c.tabs.width = '12%' +c.tabs.width = '14%' # Text color of the completion widget. May be a single color to use for # all columns or a list of three colors, one for each column. From 5485f3c7b45dfd2be6ab0a3cf0643fbbc6769a91 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:08:58 +0200 Subject: [PATCH 10/16] [qutebrowser] Change font to JetBrains Mono --- qutebrowser/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index a243f8f..2317386 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -515,7 +515,7 @@ c.colors.tabs.pinned.selected.even.bg = '#ebdbb2' # font setting, it's replaced with the fonts listed here. If set to an # empty value, a system-specific monospace default is used. # Type: List of Font, or Font -c.fonts.default_family = 'Hermit' +c.fonts.default_family = 'JetBrains Mono' # Default font size to use. Whenever "default_size" is used in a font # setting, it's replaced with the size listed here. Valid values are From ec09f35166105a1cd293a955289db9b32929e70d Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:09:28 +0200 Subject: [PATCH 11/16] [qutebrowser] Increase font size by two point --- qutebrowser/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 2317386..7f10448 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -522,4 +522,4 @@ c.fonts.default_family = 'JetBrains Mono' # either a float value with a "pt" suffix, or an integer value with a # "px" suffix. # Type: String -c.fonts.default_size = '10pt' +c.fonts.default_size = '12pt' From 277a9c5daacc9e7c70a568d3028e3d6ea8f91640 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:10:10 +0200 Subject: [PATCH 12/16] [qutebrowser] Setup KeePassXC connection --- qutebrowser/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 7f10448..7c48cdb 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -523,3 +523,8 @@ c.fonts.default_family = 'JetBrains Mono' # "px" suffix. # Type: String c.fonts.default_size = '12pt' + +# Setup for KeePassXC connection. +config.bind('', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='insert') +config.bind('pw', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='normal') + From 192106b9eb779f5c008dc750eaf29bd62e0fc59e Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:10:45 +0200 Subject: [PATCH 13/16] [qutebrowser] Set editor to use Emacsclient --- qutebrowser/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 7c48cdb..f5775f5 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -528,3 +528,5 @@ c.fonts.default_size = '12pt' config.bind('', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='insert') config.bind('pw', 'spawn --userscript qute-keepassxc --key 9FE01C39F74551D434116394CADE6F0C09F21B09', mode='normal') +# Set Emacs as editor +c.editor.command = ["es", "+{line}:{column0}", "{file}"] From 93d3b106b2fba1aaf1375d0b2e6b5c6dbe448981 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:11:03 +0200 Subject: [PATCH 14/16] [polybar] add aqua color --- polybar/config | 1 + 1 file changed, 1 insertion(+) diff --git a/polybar/config b/polybar/config index 6df34fd..c4365ed 100644 --- a/polybar/config +++ b/polybar/config @@ -47,6 +47,7 @@ yellow = ${colors/gruvbox-dark.yellow} blue = ${colors/gruvbox-dark.blue} green = ${colors/gruvbox-dark.green} purple = ${colors/gruvbox-dark.purple} +aqua = ${colors/gruvbox-dark.aqua} ; ######################################################### ; ########## Main Bar ########## From b84cba11b57d98e120e4012294dd029c6323ee5a Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:11:47 +0200 Subject: [PATCH 15/16] [polybar] Fix JetBrains Mono load --- polybar/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polybar/config b/polybar/config index c4365ed..6ac440e 100644 --- a/polybar/config +++ b/polybar/config @@ -68,7 +68,7 @@ foreground = ${colors.foreground} padding-left = 0 padding-right = 1 -font-0 = "JetBrainsMono:size=11;2" +font-0 = "JetBrains Mono:size=11;2" font-1 = "FontAwesome:size=10;2" font-2 = "FontAwesome:size=30;7" From f78f4737d0555253845d7ac0f7393b669f153492 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sun, 9 May 2021 21:12:34 +0200 Subject: [PATCH 16/16] [qutebrowser] Add unread mail indicator --- polybar/config | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/polybar/config b/polybar/config index 6ac440e..a269c68 100644 --- a/polybar/config +++ b/polybar/config @@ -77,7 +77,7 @@ override-redirect = true modules-left = ewmh ewmh-arrow xwindow xwindow-arrow modules-center = -modules-right = backlight-arrow backlight pulseaudio-arrow pulseaudio battery-arrow battery date-arrow date tray-arrow +modules-right = backlight-arrow backlight unread-mail-arrow unread-mail pulseaudio-arrow pulseaudio battery-arrow battery date-arrow date tray-arrow tray-position = right tray-padding = 2 @@ -145,7 +145,7 @@ label = %date% %time% type = custom/text content = "%{T3}%{T-}" content-foreground = ${colors.blue} -content-background = ${colors.yellow} +content-background = ${colors.aqua} [module/pulseaudio] type = internal/pulseaudio @@ -218,6 +218,21 @@ content = "%{T3}%{T-}" content-foreground = ${colors.background} content-background = ${colors.gray} +[module/unread-mail] +type = custom/script +format-background = ${colors.aqua} +format-foreground = ${colors.background} +format-padding = 1 +format-prefix = "%{T2}  %{T-}" +exec = mu find flag:unread | wc -l +interval = 60 + +[module/unread-mail-arrow] +type = custom/text +content = "%{T3}%{T-}" +content-foreground = ${colors.aqua} +content-background = ${colors.yellow} + ; ######################################################### ; ########## Settings ########## ; #########################################################