diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2017-11-05 15:05:46 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2017-11-05 15:05:46 -0700 |
commit | ebf4ee38c12ccad1e3e03b46e5e95cbb4b588e7f (patch) | |
tree | ea00eb4e4e5fbafba5b96fbd9a7059ec2872cd6c /bin/i3-startup-always | |
parent | 429ae957157b263fe74b813ad2c328844fed6e8a (diff) | |
download | dotfiles-ebf4ee38c12ccad1e3e03b46e5e95cbb4b588e7f.tar.gz |
exception to script enabling numlock
Diffstat (limited to 'bin/i3-startup-always')
-rwxr-xr-x | bin/i3-startup-always | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/i3-startup-always b/bin/i3-startup-always index 2f4f1c79..db420c41 100755 --- a/bin/i3-startup-always +++ b/bin/i3-startup-always @@ -14,8 +14,10 @@ xset r rate 380 25 setxkbmap -option ctrl:nocaps xmodmap ~/.xmodmaprc -# enable numlock if using USB keyboard -. /etc/X11/Xsession.d/55numlockx +# enable numlock if using USB keyboard, with an exception +if ! lsusb | grep -q "SiGma Micro Keyboard TRACER Gamma Ivory"; then + . /etc/X11/Xsession.d/55numlockx +fi # disable caps lock if I accidently hit it before running this script if xset -q | grep "Caps Lock: *on" >/dev/null; then |