From c442e9169b3dfbbaba7fa2f13a590a383706c7f7 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Wed, 8 Jul 2020 14:04:20 +0200 Subject: Emacs/calc: Use keypad comma as decimal separator --- dot.emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 9f370ce..94cf1e3 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -268,6 +268,9 @@ (add-hook 'text-mode-hook #'turn-on-auto-fill) +;; Use keypad comma as decimal separator +(define-key calc-digit-map (kbd ") ".") + ;;; Mail (use-package gnus :config -- cgit v1.2.3 From 9d39d9eb27aba7b60451c59a21d947c129edc461 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sun, 26 Jul 2020 18:57:47 +0200 Subject: Emacs: Fix calc-digit-map handling --- dot.emacs.d/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 94cf1e3..1db31ca 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -269,7 +269,9 @@ (add-hook 'text-mode-hook #'turn-on-auto-fill) ;; Use keypad comma as decimal separator -(define-key calc-digit-map (kbd ") ".") +(use-package calc + :config + (define-key calc-digit-map (kbd "") ".")) ;;; Mail (use-package gnus -- cgit v1.2.3 From 9482030c489149b9d2a7fa4d54f05b13f954eacc Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sun, 26 Jul 2020 18:59:17 +0200 Subject: Emacs: Refactor RefTeX/AUCTeX config --- dot.emacs.d/init.el | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 1db31ca..1279a02 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -217,11 +217,12 @@ (add-hook 'mail-mode-hook #'turn-on-auto-fill) (add-hook 'mail-mode-hook #'mail-text) +(defun qsx-enable-TeX-fold-mode () + (TeX-fold-mode 1)) + (use-package tex :if (display-graphic-p) :ensure auctex - :init - (setq reftex-plug-into-AUCTeX t) :config (setq TeX-auto-save nil TeX-parse-self t @@ -229,7 +230,16 @@ font-latex-fontify-sectioning 'color font-latex-fontify-script 'multi-level fill-column 80) - (add-hook 'TeX-mode-hook #'turn-on-auto-fill)) + (dolist (f '(qsx-enable-TeX-fold-mode + turn-on-auto-fill + prettify-symbols-mode)) + (add-hook 'TeX-mode-hook f))) + +(use-package reftex + :if (display-graphic-p) + :config + (setq reftex-plug-into-AUCTeX t) + (add-hook 'TeX-mode-hook #'reftex-mode)) (use-package auctex-latexmk :if (display-graphic-p) -- cgit v1.2.3 From 18ad8837e1a5475a2db1d1ea1f02034fedbf043b Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sun, 26 Jul 2020 19:20:26 +0200 Subject: Emacs: Add some packages and config --- dot.emacs.d/init.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index 1279a02..526f728 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -278,6 +278,21 @@ (add-hook 'text-mode-hook #'turn-on-auto-fill) +(use-package json-mode) + +(use-package adoc-mode) + +(use-package dpkg-dev-el + ;; In Debian, it’s provided by a debian package, no need to install from MELPA + :if (not (file-exists-p "/etc/debian_version"))) + +(use-package haskell-mode) + +(use-package ledger-mode + :config + (setq ledger-default-date-format "%Y-%m-%d" + ledger-use-iso-dates t)) + ;; Use keypad comma as decimal separator (use-package calc :config -- cgit v1.2.3 From 37b7ca9391e335cb609bcebd9cc17936b5b9a5be Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sun, 26 Jul 2020 19:21:36 +0200 Subject: zsh: Add ~/.local/… to MANPATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot.zshenv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dot.zshenv b/dot.zshenv index cd65fe8..a762c42 100644 --- a/dot.zshenv +++ b/dot.zshenv @@ -19,7 +19,11 @@ path=( /sbin(/N) $path ) -typeset -xU path +manpath=( + ~/.local/share/man(/N) + $manpath +) +typeset -xU path manpath [ -S ~/.gnupg/S.gpg-agent.ssh ] && export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh [ -S /run/user/$EUID/gnupg/S.gpg-agent.ssh ] && export SSH_AUTH_SOCK=/run/user/$EUID/gnupg/S.gpg-agent.ssh (( $+commands[rbenv] )) && eval "$(rbenv init -)" -- cgit v1.2.3 From b74122b5a732a8d02de0d1b550bc7f49baa21a7b Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sun, 26 Jul 2020 19:22:09 +0200 Subject: sm: Allow gmi to fail --- dot.local-bin-sm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot.local-bin-sm b/dot.local-bin-sm index c519299..63101ae 100755 --- a/dot.local-bin-sm +++ b/dot.local-bin-sm @@ -3,7 +3,7 @@ set -e set -x mbsync -a || true notmuch new -[ -d ~/.maildir/GMail ] && (cd ~/.maildir/GMail && gmi sync) +[ -d ~/.maildir/GMail ] && (cd ~/.maildir/GMail && gmi sync || true) new=$(notmuch search --output=messages tag:new | xargs) [ -z "$new" ] && exit notmuch config set query.new "$new" -- cgit v1.2.3 From 58c8954c5be370c3638c1087aa64b2ddb919934b Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sun, 26 Jul 2020 19:22:59 +0200 Subject: Add i3lock-wrapper --- dot.local-bin-i3lock--wrapper | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 dot.local-bin-i3lock--wrapper diff --git a/dot.local-bin-i3lock--wrapper b/dot.local-bin-i3lock--wrapper new file mode 100755 index 0000000..e5532ad --- /dev/null +++ b/dot.local-bin-i3lock--wrapper @@ -0,0 +1,6 @@ +#!/bin/sh +set -x +pkill -USR1 -u `id -u` dunst +/usr/bin/i3lock -n -i ~/.i3lock.png & +trap "kill $!; pkill -USR2 -u `id -u` dunst" EXIT +wait $! -- cgit v1.2.3 From 80bc516bea1ab0d4443383c7be19191f9dabe105 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Sat, 20 Feb 2021 18:35:39 +0100 Subject: polybar: Siji → FontAwesome, some other config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot.config-polybar-config | 152 +++++++++++++++++----------------------------- 1 file changed, 57 insertions(+), 95 deletions(-) diff --git a/dot.config-polybar-config b/dot.config-polybar-config index 0135a3f..ba7f89d 100644 --- a/dot.config-polybar-config +++ b/dot.config-polybar-config @@ -3,8 +3,7 @@ background = #222 background-alt = #444 foreground = #dfdfdf -#foreground-alt = #555 -foreground-alt = #00ff00 +green = #00ff00 primary = #ffb52a secondary = #e60053 alert = #bd2c40 @@ -34,12 +33,12 @@ module-margin-left = 0 module-margin-right = 1 font-0 = "Source Code Pro Medium:size=8;1" -font-1 = "Wuncon Siji:size=8;1" -font-2 = "Noto Emoji:size=8;0" +font-1 = "Font Awesome 5 Free:size=8;2" +font-2 = "Font Awesome 5 Free Solid:size=8;2" modules-left = i3 -modules-center = mpd -modules-right = pulseaudio xkeyboard memory cpu wlan eth backlight-acpi battery temperature date +modules-center = +modules-right = pulseaudio xkeyboard filesystem memory cpu loadavg wlan eth backlight-acpi battery temperature date tray-position = right tray-padding = 0 @@ -53,19 +52,26 @@ scroll-down = i3wm-wsprev cursor-click = pointer cursor-scroll = ns-resize +[module/loadavg] +type = custom/script +exec = cut -d' ' -f-3 /proc/loadavg + +format-prefix = " " +format-underline = #ffb52a + [module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lock -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} +format = + +format-prefix = " " format-prefix-underline = ${colors.secondary} label-layout = %name% label-layout-underline = ${colors.secondary} -label-indicator-background = ${colors.secondary} -label-indicator-underline = ${colors.secondary} +label-indicator-background = ${colors.alert} [module/filesystem] type = internal/fs @@ -73,9 +79,9 @@ interval = 25 mount-0 = / -label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground-alt} +label-mounted = %free% +format-mounted-underline = #0a81f5 +format-mounted-prefix = " " [module/i3] type = internal/i3 @@ -111,38 +117,23 @@ label-urgent = %index% label-urgent-background = ${colors.alert} label-urgent-padding = 1 -[module/mpd] -type = internal/mpd -format-online = - -icon-prev =  -icon-stop =  -icon-play =  -icon-pause =  -icon-next =  - -label-song = %title% (%artist%) -label-song-maxlen = 25 -label-song-ellipsis = true - [module/backlight-acpi] type = internal/backlight card = intel_backlight -format-underline = #9f78e1 +format-prefix = " " +format-underline = #4bffdc [module/cpu] type = internal/cpu interval = 2 -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #f90000 +format-prefix = " " +format-underline = ${colors.secondary} label = %percentage:2%% [module/memory] type = internal/memory interval = 2 -format-prefix = " " -format-prefix-foreground = ${colors.foreground-alt} +format-prefix = " " format-underline = #4bffdc label = %gb_used% @@ -151,18 +142,13 @@ type = internal/network interface = wlp3s0 interval = 3.0 -format-connected = +format-connected = format-connected-underline = #9f78e1 -label-connected = %essid% %signal%% +label-connected = " %essid% %signal%%" -format-disconnected = - -ramp-signal-0 =  -ramp-signal-1 =  -ramp-signal-2 =  -ramp-signal-3 =  -ramp-signal-4 =  -ramp-signal-foreground = ${colors.foreground-alt} +label-disconnected = "" +format-disconnected-foreground = #666 +format-disconnected-underline = #9f78e1 [module/eth] type = internal/network @@ -170,8 +156,7 @@ interface = enp0s31f6 interval = 3.0 format-connected-underline = #55aa55 -format-connected-prefix = " " -format-connected-prefix-foreground = ${colors.foreground-alt} +format-connected-prefix = " " label-connected = %local_ip% format-disconnected = @@ -180,14 +165,13 @@ format-disconnected = type = internal/date interval = 1 -date-alt = -date = " %Y-%m-%d" +date-alt = "" +date = " %a %Y-%m-%d" time-alt = %H:%M time = %H:%M:%S -format-prefix =  -format-prefix-foreground = ${colors.foreground-alt} +format-prefix =  format-underline = #0a6cf5 label = %date% %time% @@ -195,36 +179,19 @@ label = %date% %time% [module/pulseaudio] type = internal/pulseaudio -format-volume = -label-volume = VOL %percentage%% -label-volume-foreground = ${root.foreground} +format-volume = +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +label-volume = %percentage%% -;label-muted = 🔇 muted -; FIXME -label-muted = muted +label-muted =  label-muted-foreground = #666 -bar-volume-width = 10 -bar-volume-foreground-0 = #55aa55 -bar-volume-foreground-1 = #55aa55 -bar-volume-foreground-2 = #55aa55 -bar-volume-foreground-3 = #55aa55 -bar-volume-foreground-4 = #55aa55 -bar-volume-foreground-5 = #f5a70a -bar-volume-foreground-6 = #ff5555 -bar-volume-gradient = false -bar-volume-indicator = | -;bar-volume-indicator-font = 2 -bar-volume-fill = ─ -;bar-volume-fill-font = 2 -bar-volume-empty = ─ -;bar-volume-empty-font = 2 -bar-volume-empty-foreground = ${colors.foreground-alt} +click-right = pavucontrol [module/battery] type = internal/battery -battery = BAT0 -adapter = AC full-at = 98 format-charging = @@ -233,26 +200,20 @@ format-charging-underline = #ffb52a format-discharging = format-discharging-underline = ${self.format-charging-underline} -format-full-prefix = " " -format-full-prefix-foreground = ${colors.foreground-alt} +format-full-prefix = " " +format-full-prefix-foreground = ${colors.green} format-full-underline = ${self.format-charging-underline} -ramp-capacity-0 =  -ramp-capacity-1 =  -ramp-capacity-2 =  -ramp-capacity-foreground = ${colors.foreground-alt} - -animation-charging-0 =  -animation-charging-1 =  -animation-charging-2 =  -animation-charging-foreground = ${colors.foreground-alt} -animation-charging-framerate = 750 +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-foreground = ${colors.green} +animation-charging-framerate = 1000 -animation-discharging-0 =  -animation-discharging-1 =  -animation-discharging-2 =  -animation-discharging-foreground = ${colors.foreground-alt} -animation-discharging-framerate = 750 +animation-discharging-0 =  +animation-discharging-1 =  +animation-discharging-2 =  +animation-discharging-framerate = 1000 label-full = %percentage%% %consumption%W label-charging = %percentage%% %consumption%W %time% @@ -263,7 +224,7 @@ time-format = %H:%M [module/temperature] type = internal/temperature thermal-zone = 0 -warn-temperature = 60 +base-temperature = 20 format =