apply continous middle click actions
This commit is contained in:
parent
2905efa5aa
commit
83d2abae92
14
README.md
14
README.md
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
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
|
# 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.
|
- 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
|
audio amixer
|
||||||
battery none, searches in /sys/class/power_supply/BAT...
|
battery none, searches in /sys/class/power_supply/BAT...
|
||||||
cpu top, htop for click support
|
cpu top, htop for click support
|
||||||
|
temp sensors
|
||||||
datetime date
|
datetime date
|
||||||
ip curl
|
ip curl
|
||||||
ram none, searches in /proc/meminfo, htop for click support
|
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] datetime
|
||||||
- [x] ram/swap
|
- [x] ram/swap
|
||||||
- [x] cpu
|
- [x] cpu
|
||||||
|
- [x] cpu temp
|
||||||
- [x] audio/mic
|
- [x] audio/mic
|
||||||
- [x] storage
|
- [x] storage
|
||||||
- [x] ip
|
- [x] ip
|
||||||
- [x] battery
|
- [x] battery
|
||||||
- [x] backlight
|
- [x] backlight
|
||||||
- [ ] wifi/ethernet/bluetooth
|
- [ ] wifi/ethernet/bluetooth
|
||||||
- [ ] external storage
|
- [ ] external storage
|
||||||
- [ ] ethernet bandwith
|
- [ ] ethernet bandwith
|
||||||
|
|
||||||
## Click interactions
|
## Click interactions
|
||||||
- [x] datetime: left: show weekday, date, weeknumber and seconds
|
- [x] general: left: toggle long preview
|
||||||
- [x] audio/mic: left: toggle mute
|
- [x] audio/mic: middle: open pavucontrol, right: toggle mute
|
||||||
- [x] ram/cpu: left: open `top` in a terminal
|
- [x] ram/cpu/temp: middle: open htop
|
||||||
|
- [x] storage: middle: open ranger
|
||||||
|
- [x] ip: middle: open firefox
|
||||||
- [ ] external storage: mount it somewhere
|
- [ ] external storage: mount it somewhere
|
||||||
|
|
||||||
## Signals
|
## Signals
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
[[ "$BLOCK_BUTTON" == 1 ]] && LONG=true
|
[[ "$BLOCK_BUTTON" == 1 ]] && LONG=true
|
||||||
|
|
||||||
|
[[ "$BLOCK_BUTTON" == 2 ]] && pavucontrol &
|
||||||
|
|
||||||
[[ "$BLOCK_BUTTON" == 3 ]] && amixer set $DEV toggle &> /dev/null
|
[[ "$BLOCK_BUTTON" == 3 ]] && amixer set $DEV toggle &> /dev/null
|
||||||
|
|
||||||
amixer get $DEV | gawk -v LONG="$LONG" '
|
amixer get $DEV | gawk -v LONG="$LONG" '
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
[[ "$BLOCK_BUTTON" == 1 ]] && LONG=true
|
[[ "$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" '
|
df | gawk -v LONG="$LONG" '
|
||||||
/\/$/ {
|
/\/$/ {
|
||||||
|
Reference in New Issue
Block a user