apply continous middle click actions

This commit is contained in:
koksnuss 2018-08-08 21:34:21 +02:00
parent 2905efa5aa
commit 83d2abae92
3 changed files with 12 additions and 6 deletions

View File

@ -21,6 +21,7 @@ module dependency
audio amixer
battery none, searches in /sys/class/power_supply/BAT...
cpu top, htop for click support
temp sensors
datetime date
ip curl
ram none, searches in /proc/meminfo, htop for click support
@ -44,6 +45,7 @@ One-Liner: Open up a terminal and paste: `bash <(curl -s https://will.kein.hk/gi
- [x] datetime
- [x] ram/swap
- [x] cpu
- [x] cpu temp
- [x] audio/mic
- [x] storage
- [x] ip
@ -54,9 +56,11 @@ One-Liner: Open up a terminal and paste: `bash <(curl -s https://will.kein.hk/gi
- [ ] ethernet bandwith
## Click interactions
- [x] datetime: left: show weekday, date, weeknumber and seconds
- [x] audio/mic: left: toggle mute
- [x] ram/cpu: left: open `top` in a terminal
- [x] general: left: toggle long preview
- [x] audio/mic: middle: open pavucontrol, right: toggle mute
- [x] ram/cpu/temp: middle: open htop
- [x] storage: middle: open ranger
- [x] ip: middle: open firefox
- [ ] external storage: mount it somewhere
## Signals

View File

@ -4,6 +4,8 @@
[[ "$BLOCK_BUTTON" == 1 ]] && LONG=true
[[ "$BLOCK_BUTTON" == 2 ]] && pavucontrol &
[[ "$BLOCK_BUTTON" == 3 ]] && amixer set $DEV toggle &> /dev/null
amixer get $DEV | gawk -v LONG="$LONG" '

View File

@ -3,7 +3,7 @@
[[ "$BLOCK_BUTTON" == 1 ]] && LONG=true
[[ "$BLOCK_BUTTON" == 3 ]] && i3-sensible-terminal -e ranger
[[ "$BLOCK_BUTTON" == 2 ]] && i3-sensible-terminal -e ranger
df | gawk -v LONG="$LONG" '
/\/$/ {