mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
local: changed and updated scripts
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
layout=$(setxkbmap -query | grep "layout" | awk '{print $NF}') #| grep -q 'ru$' && $(setxkbmap de ; notify-send -u low 'SXHKD' 'Set keymap to german') || $(setxkbmap de ru ; notify-send -u low 'SXHKD' 'Set keymap to russian')
|
||||
variant=$(setxkbmap -query | grep "variant" | awk '{print $NF}')
|
||||
echo $variant
|
||||
if [ "$layout" = "de" -a "$variant" = "nodeadkeys" ]
|
||||
then
|
||||
setxkbmap de && notify-send -u low 'SXHKD' 'Set keymap to german'
|
||||
elif [ "$layout" = "de" -a "$variant" = "" ]
|
||||
then
|
||||
setxkbmap de ru && notify-send -u low 'SXHKD' 'Set keymap to russian (german)'
|
||||
elif [ "$layout" = "de" -a "$variant" = "ru" ]
|
||||
then
|
||||
setxkbmap de nodeadkeys && notify-send -u low 'SXHKD' 'Set keymap to german (nodeadkeys)'
|
||||
fi
|
@@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# toggle external monitor
|
||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||
|
||||
intern=LVDS1
|
||||
extern=HDMI2
|
||||
(xrandr | grep "$extern disconnected")
|
||||
(xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit)
|
||||
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off
|
||||
setbg
|
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Toggle touchpad. Requires xf86-input-synaptics.
|
||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||
|
||||
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && notify-send "TouchPad reactivated." && exit
|
||||
synclient TouchpadOff=1 && notify-send "TouchPad deactivated."
|
Reference in New Issue
Block a user