From d62bd902a063ef371ed63dcd017a6b8748d256f5 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Thu, 24 Nov 2022 09:20:05 +0100 Subject: [PATCH 1/2] [mail] feat: keymaps to next- or previous-new mail --- .config/neomutt/maps | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/neomutt/maps b/.config/neomutt/maps index 3df953c..7088d5d 100644 --- a/.config/neomutt/maps +++ b/.config/neomutt/maps @@ -13,6 +13,8 @@ macro index,pager im 'source $XDG_CONFIG_HOME/neomu # General rebindings bind index j next-entry bind index k previous-entry +bind index J next-new +bind index K previous-new bind attach view-mailcap bind attach l view-mailcap bind editor noop From 81e549834919a1c66124a475f6a975264302500f Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Fri, 25 Nov 2022 16:44:41 +0100 Subject: [PATCH 2/2] [system] feat: add external mode to displayselect in case of laptop, one may be interested in disconnecting the internal display, if you're docked for instance this mode allows to chose an internal display to be disabled, and then configure a setup as in default mode --- .local/bin/displayselect | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.local/bin/displayselect b/.local/bin/displayselect index a511af4..c2176cb 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -44,17 +44,28 @@ twoscreen() { # If multi-monitor is selected and there are two screens. } default() { - primary=$(echo "$allposs" | grep -w "connected primary" | awk '{printf $1}') + primary=$(echo "$allposs" | grep -w "connected primary" | awk '{ print $1 }') secondary=$(echo "$screens" | grep -v -w "$primary") direction="left" rotation="normal" setup } +external() { + internal=$(echo "$screens" | dmenu -i -p "Select internal display:") + screens=$(echo "$screens" | grep -v -w "eDP-1") + primary=$(echo "$screens" | dmenu -i -p "Select primary display:") + xrandr --output $primary --primary + + default +} + setup() { [ -z "$mode" ] && mode="auto" - xrandr --output "$primary" --auto --scale 1.0x1.0 \ + xrandr --output "$primary" --primary --auto --scale 1.0x1.0 \ --output "$secondary" --"$direction"-of "$primary" --$mode + + [ -n "$internal" ] && xrandr --output "$internal" --off } morescreen() { # If multi-monitor is selected and there are more than two screens. @@ -79,9 +90,10 @@ allposs=$(xrandr -q | grep -w "connected") screens=$(echo "$allposs" | awk '{print $1}') # Get user choice including multi-monitor and manual selection: -chosen=$(printf "default\\nmulti-monitor\\n%s\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") && +chosen=$(printf "default\\nexternal\\nmulti-monitor\\n%s\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") && case "$chosen" in "default") default ;; + "external") external ;; "manual selection") arandr ; exit ;; "multi-monitor") multimon ;; *) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;