[sxhkd] Add sxhkdrc parsing to mode script

Can now parse the usual sxhkdrc file in looking for mode chain
combinations. Will prefer explicit configuration files if they exist.
Read the -h to learn more.
This commit is contained in:
Marty Oehme 2020-05-26 14:55:06 +02:00
parent 1c789a9e72
commit 7be23bb4b8
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
3 changed files with 58 additions and 21 deletions

View file

@ -1,7 +1,7 @@
# for sxhkd-chain-labels script
# media manipulation mode: playing, pausing, skipping,..
media:super + alt + m
media:alt + m
# academia mode: opening bibtex readings, annotating,..
academia:super + alt + a
academia:alt + a

View file

@ -44,7 +44,7 @@ super + q
## modes
# media control mode
# mode:media:alt + m
# seek +/- 5 seconds
alt + m : {h,l}
playerctl position {5-,5+}
@ -61,7 +61,7 @@ alt + m : shift + {j,k}
alt + m : {_,shift} + p
playerctl {play-pause,stop}
# academia mode
# mode:academia:alt + a
# due papers this week
alt + a : {F1,F2}
rofi-bib-due -p{1,3} -u $(date --date='fri this week' +%Y-%m-%d)