Swithed from IlanCosman to plttn version of tide
This commit is contained in:
parent
0ed893ecd0
commit
292c618236
39 changed files with 693 additions and 201 deletions
12
.config/fish/functions/redetect_mouse.fish
Normal file
12
.config/fish/functions/redetect_mouse.fish
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
function redetect_mouse
|
||||
set -l time_taken 30
|
||||
while test $time_taken -gt 20
|
||||
echo "Reloading usbhid module..."
|
||||
set -l start_time (date +%s)
|
||||
sudo rmmod usbhid
|
||||
sudo modprobe usbhid
|
||||
set -l end_time (date +%s)
|
||||
set time_taken (math $end_time - $start_time)
|
||||
end
|
||||
kitten notify "Mouse should be working!"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue