This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## copy or attach this file to /etc/X11/xorg.conf.d/10-libinput.conf | |
Section "InputClass" | |
Identifier "" | |
MatchProduct "ELECOM ELECOM TrackBall Mouse" | |
Driver "libinput" | |
# remap button 7 and 8 to middle-click | |
Option "ButtonMapping" "1 2 3 4 5 6 7 2 2" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
failLog='/opt/vpnfail.log' | |
sleep 60 | |
while [ 1 ]; do | |
if curl -k https://127.0.0.1/ > /dev/null;then | |
date | |
echo 'vpnserver fine' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DEFAULT="LVDS1" | |
moniters=`xrandr | grep connected | sed 's/ted.*/ted/g' | sed 's/ /-/g'` | |
for monit in $moniters; do | |
if grep $DEFAULT <<< $monit > /dev/null; then | |
if grep "disconnected" <<< $monit > /dev/null; then | |
echo "LVDS not connect, big problem, skip setting" >> /tmp/dm.log | |
exit 0 |
NewerOlder