From eb7b2deb01bcb3cbec7b244daa2afbdcf490021e Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 11 Sep 2021 16:23:45 +0200 Subject: [PATCH 1/4] fix: window class for floating windows --- .config/sxhkd/sxhkdrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 80850e7..b020890 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -54,13 +54,13 @@ super + shift + {h,j,k,l} player {prev,stop,toggle,next} super + shift + m - $TERMINAL -g 128x32 -c "float" -e ncmpc + $TERMINAL -g 128x32 -c "floating" -e ncmpc super + shift + n - $TERMINAL -g 128x32 -c "float" -e neomutt + $TERMINAL -g 128x32 -c "floating" -e neomutt super + shift + t - $TERMINAL -g 128x32 -c "float" -e tremc + $TERMINAL -g 128x32 -c "floating" -e tremc super + shift + b script="$(printf "bibinput\nbibshow" | dmenu -i -p "which script?")" && $script From 7903260119d92d58a7de36a7bca44debd5cc8624 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 11 Sep 2021 16:24:36 +0200 Subject: [PATCH 2/4] cleanup: remove debug lines --- .local/bin/player | 1 - 1 file changed, 1 deletion(-) diff --git a/.local/bin/player b/.local/bin/player index 443c0da..cd8dc4f 100755 --- a/.local/bin/player +++ b/.local/bin/player @@ -17,7 +17,6 @@ if [ -z "$out" ]; then exit else path="$(mpc --format %file% | head -n1 | awk -F '/' '{ printf "music/%s/%s/cover.jpg\n", $1,$2 }')" - echo $path dunstify -r 10010 -u "normal" -i "$HOME/$path" "MPD" "$out" fi From 6786c78444518ee8973230fcaf3bb3185e1a9b86 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 11 Sep 2021 16:25:01 +0200 Subject: [PATCH 3/4] feat: maps caps_lock to **CTRL** instead of SUPER --- .local/bin/remaps | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.local/bin/remaps b/.local/bin/remaps index d84df55..042a2a2 100755 --- a/.local/bin/remaps +++ b/.local/bin/remaps @@ -13,11 +13,11 @@ # This script is called on startup to remap keys. # Increase key speed via a rate change xset r rate 300 50 -# Map the caps lock key to super... -setxkbmap -option caps:super +# Map the caps lock key to ctrl... +setxkbmap -option ctrl:nocaps # But when it is pressed only once, treat it as escape. -killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' +killall xcape 2>/dev/null ; xcape -e 'Control_L=Escape' # Map the menu button to right super as well. -#xmodmap -e 'keycode 135 = Super_R' +xmodmap -e 'keycode 107 = Super_R' # Turn off the caps lock if on since there is no longer a key for it. #xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock From e47fc9eeb44b8ebac7166781609691b13a36bc79 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sat, 11 Sep 2021 16:26:17 +0200 Subject: [PATCH 4/4] cleanup: sb-mailbox notifications dunst already follows the mouse, no need to notify every display --- .local/bin/mailsync | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.local/bin/mailsync b/.local/bin/mailsync index af1cd60..475cc79 100755 --- a/.local/bin/mailsync +++ b/.local/bin/mailsync @@ -29,14 +29,12 @@ export GPG_TTY=$TTY # Config file location must be passed at execution, not as envrionment variable [ -n "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC" || MBSYNCRC="$HOME/.mbsyncrc" -displays="$(pgrep -a X\(org\|wayland\) | grep -wo "[0-9]*:[0-9]\+" | sort -u)" -notify() { for x in $displays; do +notify() { notify-send "neomutt" " $2 new mail(s) in \`$1\` account." -done ;} -messageinfo() { for x in $displays; do - export DISPLAY=$x +} +messageinfo() { notify-send " $from:" "$subject" -done ;} +} # Check account for new mail. Notify if there is new content. syncandnotify() {