Adding libinput and some various changes
This commit is contained in:
parent
f7c99edabb
commit
ed47a44b2b
14 changed files with 248 additions and 14 deletions
|
@ -2,4 +2,6 @@
|
|||
# awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \
|
||||
# <(rg 'cpu ' /proc/stat) <(sleep 1;rg 'cpu ' /proc/stat)
|
||||
# echo 100 - $(mpstat | rg all | cut -d \ -f43) | bc
|
||||
mpstat 1 1 | rg Average | awk '{print $3+$4+$5}' | sed 's/\(.*\)/\1%/g'
|
||||
cpu="$(mpstat 1 1 | rg Average | awk '{print $3+$4+$5}' | sed 's/\(.*\)/\1%/g')"
|
||||
|
||||
echo $cpu
|
||||
|
|
7
scripts/cpu-plasma
Executable file
7
scripts/cpu-plasma
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
# awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \
|
||||
# <(rg 'cpu ' /proc/stat) <(sleep 1;rg 'cpu ' /proc/stat)
|
||||
# echo 100 - $(mpstat | rg all | cut -d \ -f43) | bc
|
||||
cpu="$(mpstat 1 1 | rg Average | awk '{print $3+$4+$5}' | sed 's/\(.*\)/\1%/g')"
|
||||
|
||||
echo "$cpu | color=#ff0000"
|
1
scripts/launcher.sh
Symbolic link
1
scripts/launcher.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/chris/.dotfiles/rofi/launchers-git/launcher.sh
|
2
scripts/libinput-gestures
Executable file
2
scripts/libinput-gestures
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
libinput-gestures &
|
Loading…
Add table
Add a link
Reference in a new issue