mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-15 23:02:15 +03:00
15 lines
369 B
Bash
15 lines
369 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
modprobe usbhid
|
||
|
modprobe psmouse
|
||
|
|
||
|
|
||
|
#for ld in `who | grep $1 | egrep -o " \(:[0-9]+\)" | egrep -o ":[0-9]+"`; do
|
||
|
# export DISPLAY="$ld"
|
||
|
# for hid in `sudo -u $1 xinput --list | grep slave | grep -o 'id=[0-9]\+' | grep -o '[0-9]\+'`; do
|
||
|
# sudo -u $1 xinput set-int-prop $hid "Device Enabled" 8 1
|
||
|
# done
|
||
|
#done
|
||
|
|
||
|
echo "" > /etc/modprobe.d/blockusbhid.conf
|