From 00f3ab948b01938eb2817f544a3903b7a31d8034 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Tue, 13 Aug 2019 00:28:15 +0200 Subject: Add customisations from neptun --- dot.config-i3-config | 3 ++- dot.config-polybar-config | 14 ++++++++------ dot.emacs.d/init.el | 6 +++--- dot.hgrc | 2 +- dot.local-bin-sm | 2 +- dot.xprofile | 12 ++++++------ dot.zprofile | 2 ++ 7 files changed, 23 insertions(+), 18 deletions(-) diff --git a/dot.config-i3-config b/dot.config-i3-config index aa76aa3..8434292 100644 --- a/dot.config-i3-config +++ b/dot.config-i3-config @@ -4,7 +4,7 @@ set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:Source Code Pro Medium 8 +font pango:Source Code Pro Medium 11 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). @@ -153,6 +153,7 @@ bindsym XF86MonBrightnessUp exec xbacklight -inc 10 bindsym XF86MonBrightnessDown exec xbacklight -dec 10 bindsym $mod+Escape exec $lockcommand bindsym XF86Sleep exec systemctl suspend +bindsym $mod+Print exec systemctl suspend bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% diff --git a/dot.config-polybar-config b/dot.config-polybar-config index 5b40172..53d85ec 100644 --- a/dot.config-polybar-config +++ b/dot.config-polybar-config @@ -9,10 +9,12 @@ alert = #bd2c40 [bar/top] width = 100% -height = 30 -radius = 6.0 +height = 20 +radius = 3.0 fixed-center = false +monitor = HDMI-0 + dpi = -1 background = ${colors.background} @@ -30,13 +32,13 @@ padding-right = 2 module-margin-left = 0 module-margin-right = 1 -font-0 = "Source Code Pro Medium:size=8;1" +font-0 = "Source Code Pro Medium:size=11;1" font-1 = "Wuncon Siji:size=8;1" font-2 = "Noto Emoji:size=8;0" modules-left = i3 modules-center = mpd -modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth backlight-acpi battery temperature date +modules-right = pulseaudio xkeyboard memory cpu eth temperature date tray-position = right tray-padding = 0 @@ -100,7 +102,7 @@ label-unfocused-padding = 1 ; visible = Active workspace on unfocused monitor label-visible = %index% label-visible-background = ${self.label-focused-background} -label-visible-underline = ${self.label-focused-underline} +label-visible-underline = ${colors.secondary} label-visible-padding = ${self.label-focused-padding} ; urgent = Workspace with urgency hint set @@ -163,7 +165,7 @@ ramp-signal-foreground = ${colors.foreground-alt} [module/eth] type = internal/network -interface = enp0s31f6 +interface = enp6s0 interval = 3.0 format-connected-underline = #55aa55 diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 98f4275..7d4ff3d 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -305,10 +305,10 @@ (nntp-open-connection-function nntp-open-ssl-stream) (nntp-port-number 563)) gnus-secondary-select-methods '((nnmaildir "mail" - (directory "~/.nnmaildir") + (directory "~/.maildir") (nnir-search-engine notmuch))) - nnir-notmuch-program "/home/qsx/.local/bin/notmuch-gnus" - nnir-notmuch-remove-prefix (concat (getenv "HOME") "/.nnmaildir/")) + ;; nnir-notmuch-program "/home/qsx/.local/bin/notmuch-gnus" + nnir-notmuch-remove-prefix (concat (getenv "HOME") "/.maildir/")) (add-hook 'message-setup-hook (defun qsx-message-add-my-headers () (message-add-header "Openpgp: id=E384009D3B54DCD321BF953295EE94A432583DB1; url=https://pgp.mit.edu/pks/lookup?op=get&search=0x95EE94A432583DB1; preference=signencrypt")))) diff --git a/dot.hgrc b/dot.hgrc index 25e0a4e..0f3c49f 100644 --- a/dot.hgrc +++ b/dot.hgrc @@ -2,7 +2,7 @@ %include ~/.hgrc.local [ui] -username = Thomas Schneider +username = Thomas Schneider [email] method = sendmail diff --git a/dot.local-bin-sm b/dot.local-bin-sm index cdea8e4..af0edde 100755 --- a/dot.local-bin-sm +++ b/dot.local-bin-sm @@ -8,5 +8,5 @@ new=$(notmuch search --output=messages tag:new | xargs) afew -tnvv export MAILSEQ="${MBLAZE:-$HOME/.mblaze}/seq.sm" export MBLAZE_PAGER="" -msearch -- --exclude=false $new | mthread | mseq -S | mscan -f '%u%r %3n %10d %17f %8F %t %i%S' +msearch -- --exclude=false $new | mthread | mseq -S | mscan -f '%u%r %3n %10d %17f %20F %t %i%S' type mu 2> /dev/null && mu index || true diff --git a/dot.xprofile b/dot.xprofile index 7126d49..58b5d6a 100644 --- a/dot.xprofile +++ b/dot.xprofile @@ -1,13 +1,13 @@ if [ "$XPROFILE_RUN" != "yes" ]; then export XPROFILE_RUN=yes - export GDK_SCALE=2 - xrandr --dpi 192 + #export GDK_SCALE=2 + #xrandr --dpi 192 export TERMINAL=qterminal [ -f ~/.fehbg ] && ~/.fehbg - xss-lock -- physlock -p "Locked by: $USER" -s -m & - nm-applet & - redshift-gtk & - compton --backend=glx --glx-swap-method=buffer-age -b + xss-lock -- i3lock -c 555555 -f + owncloud & + #nm-applet & (while ! pidof i3; do sleep 1; done; exec polybar -r top) & fi export XPROFILE_RUN=yes +systemctl --user start compton diff --git a/dot.zprofile b/dot.zprofile index 2246b70..6682141 100644 --- a/dot.zprofile +++ b/dot.zprofile @@ -1 +1,3 @@ [ -f /etc/gentoo-release ] && source ~/.zshenv + +export PATH="$HOME/.cargo/bin:$PATH" -- cgit v1.2.3 From 7f6494656830de52e997fc4d8e3f8ba465fca6eb Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sun, 26 Jan 2020 12:57:28 +0100 Subject: Use kitty as terminal --- dot.xprofile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot.xprofile b/dot.xprofile index 58b5d6a..0f46d27 100644 --- a/dot.xprofile +++ b/dot.xprofile @@ -2,9 +2,9 @@ if [ "$XPROFILE_RUN" != "yes" ]; then export XPROFILE_RUN=yes #export GDK_SCALE=2 #xrandr --dpi 192 - export TERMINAL=qterminal + export TERMINAL=kitty-1 [ -f ~/.fehbg ] && ~/.fehbg - xss-lock -- i3lock -c 555555 -f + xss-lock -- i3lock -c 555555 -f & owncloud & #nm-applet & (while ! pidof i3; do sleep 1; done; exec polybar -r top) & -- cgit v1.2.3 From b70cd547a7a41f29e83b6e49bfbeaebf4cb9a452 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Wed, 5 May 2021 22:31:25 +0200 Subject: Emacs: Configure Gnus maildir dynamically --- dot.emacs.d/init.el | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 102bbe0..c758232 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -297,11 +297,22 @@ gnus-select-method '(nntp "news.cis.dfn.de" (nntp-open-connection-function nntp-open-ssl-stream) (nntp-port-number 563)) - gnus-secondary-select-methods '((nnmaildir "mail" - (directory "~/.maildir") - (nnir-search-engine notmuch))) - ;; nnir-notmuch-program "/home/qsx/.local/bin/notmuch-gnus" - nnir-notmuch-remove-prefix (concat (getenv "HOME") "/.maildir/")) + nnir-notmuch-program (let ((notmuch-gnus "/home/qsx/.local/bin/notmuch-gnus")) + (if (file-executable-p notmuch-gnus) + notmuch-gnus + "notmuch"))) + (let ((maildir (cl-find-if #'file-directory-p + (mapcar (lambda (x) (concat (getenv "HOME") x)) + '("/.nnmaildir" + "/.maildir" + "/Maildir"))))) + (setq + gnus-secondary-select-methods `((nnmaildir + "mail" + (directory ,maildir) + (nnir-search-engine notmuch))) + nnir-notmuch-remove-prefix (concat maildir "/"))) + (add-hook 'message-setup-hook (defun qsx-message-add-my-headers () (message-add-header "Openpgp: id=E384009D3B54DCD321BF953295EE94A432583DB1; url=https://pgp.mit.edu/pks/lookup?op=get&search=0x95EE94A432583DB1; preference=signencrypt")))) -- cgit v1.2.3 From b817515621178f72be4e5c5017bd65b66e7aaa4d Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Fri, 18 Feb 2022 18:12:58 +0100 Subject: Emacs/Gnus: Dynamic notmuch path configuration --- dot.emacs.d/init.el | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index c758232..441b922 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -296,25 +296,27 @@ smime-CA-directory "/etc/ssl/certs" gnus-select-method '(nntp "news.cis.dfn.de" (nntp-open-connection-function nntp-open-ssl-stream) - (nntp-port-number 563)) - nnir-notmuch-program (let ((notmuch-gnus "/home/qsx/.local/bin/notmuch-gnus")) - (if (file-executable-p notmuch-gnus) - notmuch-gnus - "notmuch"))) + (nntp-port-number 563))) (let ((maildir (cl-find-if #'file-directory-p (mapcar (lambda (x) (concat (getenv "HOME") x)) '("/.nnmaildir" "/.maildir" - "/Maildir"))))) + "/Maildir")))) + (notmuch (let ((notmuch-gnus (concat (getenv "HOME") "/.local/bin/notmuch-gnus"))) + (if (file-executable-p notmuch-gnus) + notmuch-gnus + "notmuch"))) + (notmuch-database-path (car (process-lines "notmuch" "config" "get" "database.path")))) (setq - gnus-secondary-select-methods `((nnmaildir - "mail" - (directory ,maildir) - (nnir-search-engine notmuch))) - nnir-notmuch-remove-prefix (concat maildir "/"))) - + gnus-secondary-select-methods + `((nnmaildir + "mail" + (directory ,maildir) + (gnus-search-engine gnus-search-notmuch + (program ,notmuch) + (remove-prefix ,(concat notmuch-database-path "/"))))))) (add-hook 'message-setup-hook (defun qsx-message-add-my-headers () - (message-add-header "Openpgp: id=E384009D3B54DCD321BF953295EE94A432583DB1; url=https://pgp.mit.edu/pks/lookup?op=get&search=0x95EE94A432583DB1; preference=signencrypt")))) + (message-add-header "Openpgp: id=E384009D3B54DCD321BF953295EE94A432583DB1; url=https://pgp.mit.edu/pks/lookup?op=get&search=0x95EE94A432583DB1; preference=signencrypt")))) (use-package gnus-alias :ensure t -- cgit v1.2.3