From b5049bb9881bd91510f003e01202b14c8e391766 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 15 Feb 2022 20:06:04 +0100 Subject: [PATCH 1/6] [Qutebrowser] Tabs on top --- qutebrowser/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index e7a17b0..c2a526d 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -148,7 +148,7 @@ c.tabs.padding = {'bottom': 3, 'left': 5, 'right': 5, 'top': 3} # - bottom # - left # - right -c.tabs.position = 'left' +c.tabs.position = 'top' # Width (in pixels or as percentage of the window) of the tab bar if # it's vertical. From 6f74f799d5c0e94a50b3fce69aed4ad27d7d30b3 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 15 Feb 2022 20:07:13 +0100 Subject: [PATCH 2/6] [StumpWM] Add frame preference for Microsoft Teams --- stumpwm/stumpwmrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stumpwm/stumpwmrc b/stumpwm/stumpwmrc index ca72c41..994c48b 100644 --- a/stumpwm/stumpwmrc +++ b/stumpwm/stumpwmrc @@ -363,7 +363,8 @@ script." (define-frame-preference "winkel" (0 nil t :class "keepassxc") (0 nil t :class "Nextcloud") - (0 nil t :class "TelegramDesktop")) + (0 nil t :class "TelegramDesktop") + (0 nil t :class "Microsoft Teams - Preview")) (define-frame-preference "web" (0 nil t :class "Firefox")) From 12f76ca0dfb90c6c8a9294c40f9676386653a1ed Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 15 Feb 2022 20:07:29 +0100 Subject: [PATCH 3/6] [StumpWM] Add frame preference for Qutebrowser --- stumpwm/stumpwmrc | 1 + 1 file changed, 1 insertion(+) diff --git a/stumpwm/stumpwmrc b/stumpwm/stumpwmrc index 994c48b..930cb39 100644 --- a/stumpwm/stumpwmrc +++ b/stumpwm/stumpwmrc @@ -367,6 +367,7 @@ script." (0 nil t :class "Microsoft Teams - Preview")) (define-frame-preference "web" + (0 nil t :class "qutebrowser") (0 nil t :class "Firefox")) (define-frame-preference "music" From 45a0e0323fca35f6636743d55ceeb4f787b752dc Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 15 Feb 2022 20:08:13 +0100 Subject: [PATCH 4/6] [StumpWM] Remove autostart programs Were commented out over the last months anyway --- stumpwm/stumpwmrc | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/stumpwm/stumpwmrc b/stumpwm/stumpwmrc index 930cb39..82a9789 100644 --- a/stumpwm/stumpwmrc +++ b/stumpwm/stumpwmrc @@ -373,22 +373,8 @@ script." (define-frame-preference "music" (0 nil t :class "Spotify")) -;; autostart programs - -;; emacs -(run-shell-command "emacs") - -;; keepassxc -(run-shell-command "keepassxc-wrapper") - -;; owncloud -(run-shell-command "nextcloud") - -;; web browser -(run-shell-command *web-browser*) - -;; redshift -(run-shell-command "redshift") +;; Start NetworkManager systray applet +(run-shell-command "nm-applet") ;; last settings (stumptray:stumptray) From d043b0455c44176b78f0fbf30c9c71bb383955bb Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 15 Feb 2022 20:09:13 +0100 Subject: [PATCH 5/6] [StumpWM] Set the cursor to something actually usable --- stumpwm/stumpwmrc | 1 + 1 file changed, 1 insertion(+) diff --git a/stumpwm/stumpwmrc b/stumpwm/stumpwmrc index 82a9789..1062c5d 100644 --- a/stumpwm/stumpwmrc +++ b/stumpwm/stumpwmrc @@ -381,6 +381,7 @@ script." (switch-layout-to *key-layout*) +(run-shell-command "xsetroot -cursor_name left_ptr") (run-shell-command "xmodmap $HOME/.Xmodmap" t) ;; Local Variables: From 1423d33513af42e3f24456f47ee5bfc0472beb58 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 15 Feb 2022 20:16:30 +0100 Subject: [PATCH 6/6] [Qutebrowser] qute-keepassxc bindings according to host 'knuth' is my work machine --- qutebrowser/config.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qutebrowser/config.py b/qutebrowser/config.py index c2a526d..19aec59 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -1,3 +1,5 @@ +import os + # Autogenerated config.py # Documentation: # qute://help/configuring.html @@ -525,8 +527,12 @@ c.fonts.default_family = 'JetBrains Mono' 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') +if os.getenv('HOST') == 'knuth': + config.bind('', 'spawn --userscript qute-keepassxc --key CBE2FD999353DFA90822A2FAD61E7E81C796B99E', mode='insert') + config.bind('pw', 'spawn --userscript qute-keepassxc --key CBE2FD999353DFA90822A2FAD61E7E81C796B99E', mode='normal') +else: + 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}"]