петък, 18 януари 2019 г.

Create new keyboard shortcut

That's probably the dumbest keyboard shortcut one can create, but it's a fact. Since my touchpad is constantly freezing and I have to manually restart its drivers like every 30s at times, I decided to create a shortcut.
So after some digging, it turned out it's easy but not obvious. So on Sabayon, in order to reach the keyboards, you need to go to
SystemSettings->Shortcuts->Custom shortcuts (I'm translating this). Then New -> Name (Touch_Restart)  -> Keyboards (alt+.) -> Command in my case
#echo "sudo_pass" | sudo -S sh ~/scripts/touch_restart.sh
And f*ck you touchpad!
P.S. I don't know why the Custom shortcuts menu is not available form apps launcher. It's rather strange. But oh well.
P.S. For those who wonder, my touch_restart.sh looks like this:
#!/bin/bash
$sudo rmmod i2c_hid && $sudo modprobe i2c_hid
 

Няма коментари:

Публикуване на коментар