Merge branch 'dev' into thesis

mail: add velo and forge subfolder
scripts: automatic cursor setup
This commit is contained in:
David JULIEN 2022-11-04 10:09:06 +01:00
commit 2cf29ae929
2 changed files with 38 additions and 1 deletions

View File

@ -24,7 +24,7 @@ set signature="$XDG_CONFIG_HOME/neomutt/accounts/nantes.signature"
unmacro index o
macro index o "<shell-escape>mailsync<enter>" "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" "=velo" "=admin" "=login"
set record = "+Sent"
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
@ -44,6 +44,12 @@ set spoolfile = "+INBOX"
macro index,pager gT "<change-folder>=thesis<enter>" "go to thesis"
macro index,pager MT ";<save-message>=thesis<enter>" "move mail to thesis"
macro index,pager CT ";<copy-message>=thesis<enter>" "copy mail to thesis"
macro index,pager gf "<change-folder>=forge<enter>" "go to forge"
macro index,pager Mf ";<save-message>=forge<enter>" "move mail to forge"
macro index,pager Cf ";<copy-message>=forge<enter>" "copy mail to forge"
macro index,pager gv "<change-folder>=velo<enter>" "go to velo"
macro index,pager Mv ";<save-message>=velo<enter>" "move mail to velo"
macro index,pager Cv ";<copy-message>=velo<enter>" "copy mail to velo"
macro index,pager ga "<change-folder>=admin<enter>" "go to admin"
macro index,pager Ma ";<save-message>=admin<enter>" "move mail to admin"
macro index,pager Ca ";<copy-message>=admin<enter>" "copy mail to admin"

31
.local/bin/cursor_setup Executable file
View File

@ -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