diff --git a/README.md b/README.md index 5ee1976..f31352b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![demo1](https://will.kein.hk/git/koksnuss/simple-i3blocks/raw/master/demo-full-1.png) -This is a simple collection of i3blocks-modules accompagnied by a config file with the aim to display only important information in favor of not spilling lots of numbers into the status bar. +This is a simple collection of i3blocks-modules accompagnied by a config file with the aim to display only important information in favor of not spilling lots of numbers into the status bar. # Usage - module *datetime*: A left click will toggle long and short displays. The short version is displayed in the format `HH:MM`. The long version also shows the day of the week, weeknumber, date and seconds. @@ -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,19 +45,22 @@ 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 - [x] battery - [x] backlight - [ ] wifi/ethernet/bluetooth -- [ ] external storage +- [ ] external storage - [ ] 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 diff --git a/modules/audio b/modules/audio index d55b1f0..37be3f6 100755 --- a/modules/audio +++ b/modules/audio @@ -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" ' diff --git a/modules/storage b/modules/storage index 9c9d261..daa9b0e 100755 --- a/modules/storage +++ b/modules/storage @@ -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" ' /\/$/ {