From 342d4973a30d48c38756bb03406cd75690ec10d8 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Thu, 3 Nov 2022 18:11:00 +0100 Subject: [PATCH 1/3] [mail] feat: add forge subfolder to univ-nantes --- .../neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc b/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc index 2970bb4..8f24f9d 100644 --- a/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc +++ b/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc @@ -24,7 +24,7 @@ set signature="$XDG_CONFIG_HOME/neomutt/accounts/nantes.signature" unmacro index o macro index o "mailsync" "run mbsync to sync david.julien@univ-nantes.fr" -mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" "=admin" "=login" "=publications" "=teaching" "=teaching/X11I020" "=teaching/X11I040" +mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" "=publications" "=teaching" "=teaching/X11I020" "=teaching/X11I040" "=forge" "=admin" "=login" set record = "+Sent" macro index,pager gs "=Sent" "go to sent" macro index,pager Ms ";=Sent" "move mail to sent" @@ -44,6 +44,9 @@ set spoolfile = "+INBOX" macro index,pager gT "=thesis" "go to thesis" macro index,pager MT ";=thesis" "move mail to thesis" macro index,pager CT ";=thesis" "copy mail to thesis" +macro index,pager gf "=forge" "go to forge" +macro index,pager Mf ";=forge" "move mail to forge" +macro index,pager Cf ";=forge" "copy mail to forge" macro index,pager ga "=admin" "go to admin" macro index,pager Ma ";=admin" "move mail to admin" macro index,pager Ca ";=admin" "copy mail to admin" From 541e28595f6c667259a8f9f2a6a47e02a7b016fe Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Fri, 4 Nov 2022 10:06:07 +0100 Subject: [PATCH 2/3] [scripts] feat: automatic cursor setup --- .local/bin/cursor_setup | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 .local/bin/cursor_setup diff --git a/.local/bin/cursor_setup b/.local/bin/cursor_setup new file mode 100755 index 0000000..13b5e81 --- /dev/null +++ b/.local/bin/cursor_setup @@ -0,0 +1,31 @@ +#!/usr/bin/env sh + +###################################################################### +# @author : swytch (adapted from Luke Smith - lukesmith.xyz) +# @file : cursor_setup +# @license : GPLv3 +# @created : Friday Nov 04, 2022 10:02:12 CET +# +# @description : handles cursor setup in cas `xinput` lists the same +# device several times +###################################################################### + + +if [ "$1" = "" ]; then + exit 1 +fi + +ids=$(xinput --list | awk -v search="$1" \ + '$0 ~ search {match($0, /id=[0-9]+/);\ + if (RSTART) \ + print substr($0, RSTART+3, RLENGTH-3)\ + }'\ + ) + +for i in $ids +do + [ "trackpad" = "$2" ] && xinput set-prop $i 'libinput Tapping Enabled' 1 & + xinput set-prop $i 'libinput Natural Scrolling Enabled' 1 & + xinput set-prop $i 'libinput Accel Speed' 0.4 & +done + From a3af37de8ca4a316366dcafb7b6400a574b81802 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Fri, 4 Nov 2022 10:08:13 +0100 Subject: [PATCH 3/3] [mail] feat: add velo subfolder to univ-nantes --- .../neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc b/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc index 8f24f9d..0efc2d5 100644 --- a/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc +++ b/.config/neomutt/accounts/2-david.julien@univ-nantes.fr.muttrc @@ -24,7 +24,7 @@ set signature="$XDG_CONFIG_HOME/neomutt/accounts/nantes.signature" unmacro index o macro index o "mailsync" "run mbsync to sync david.julien@univ-nantes.fr" -mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" "=publications" "=teaching" "=teaching/X11I020" "=teaching/X11I040" "=forge" "=admin" "=login" +mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX" "=thesis" "=publications" "=teaching" "=teaching/X11I020" "=teaching/X11I040" "=forge" "=velo" "=admin" "=login" set record = "+Sent" macro index,pager gs "=Sent" "go to sent" macro index,pager Ms ";=Sent" "move mail to sent" @@ -47,6 +47,9 @@ macro index,pager CT ";=thesis" "copy mail to thesis" macro index,pager gf "=forge" "go to forge" macro index,pager Mf ";=forge" "move mail to forge" macro index,pager Cf ";=forge" "copy mail to forge" +macro index,pager gv "=velo" "go to velo" +macro index,pager Mv ";=velo" "move mail to velo" +macro index,pager Cv ";=velo" "copy mail to velo" macro index,pager ga "=admin" "go to admin" macro index,pager Ma ";=admin" "move mail to admin" macro index,pager Ca ";=admin" "copy mail to admin"