refactor: new system basics
This commit is contained in:
1 parent
f4ea18dc1a
commit
c0ca42d166
92 files changed
+190009
-12
No files matched your search
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Author by : Daniel Heras
|
||||
# Mail : dani.heras@hotmail.com
|
||||
|
||||
id=$(xinput list | grep Touchpad | awk '{print $6}' | grep -o '[0-9]\+')
|
||||
prop=$(xinput list-props $id | grep "Device Enabled (" | awk '{print $3}' | grep -o '[0-9]\+')
|
||||
val=$(xinput list-props $id | grep "Device Enabled (" | awk '{print $4}' | grep -o '[0-9]\+')
|
||||
if [ $val = 0 ]; then
|
||||
echo "%{F#ce4257}"
|
||||
else
|
||||
echo "%{F#40916c}"
|
||||
fi
|
||||
Reference in new issue
Block a user