Tmux 설정
This commit is contained in:
@@ -7,14 +7,14 @@ function node_monitor {
|
||||
xprop -id "$node" -f _PICOM_ROUNDED 32c -set _PICOM_ROUNDED 0
|
||||
else
|
||||
bspc query -N -d | while read -r node; do
|
||||
xprop -id "$node" -remove _PICOM_ROUNDED
|
||||
done
|
||||
xprop -id "$node" -remove _PICOM_ROUNDED
|
||||
done
|
||||
fi
|
||||
elif [ $1 = "remove" ];then
|
||||
if [ $num = "1" ];then
|
||||
bspc query -N -d | while read -r node; do
|
||||
xprop -id "$node" -f _PICOM_ROUNDED 32c -set _PICOM_ROUNDED 0
|
||||
done
|
||||
xprop -id "$node" -f _PICOM_ROUNDED 32c -set _PICOM_ROUNDED 0
|
||||
done
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -1,20 +1,25 @@
|
||||
#!/bin/bash
|
||||
function set-props {
|
||||
# Elan input setting
|
||||
xinput set-prop 'Elan Touchpad' 'libinput Tapping Enabled' 1
|
||||
xinput set-prop 'Elan Touchpad' 'libinput Natural Scrolling Enabled' 1
|
||||
xinput set-prop 'Elan TrackPoint' 'libinput Accel Speed' -0.3
|
||||
# Magic Trackpad 2
|
||||
xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Natural Scrolling Enabled' 1
|
||||
xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Accel Speed' 0.5
|
||||
# Macbook Pro Trackpad
|
||||
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
|
||||
xinput set-prop "bcm5974" "libinput Accel Speed" 0.5
|
||||
# Logitech G402
|
||||
xinput set-prop 'Logitech Gaming Mouse G402' 'libinput Accel Speed' -0.8
|
||||
# Logitech G102
|
||||
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1
|
||||
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Accel Speed' -0.5
|
||||
}
|
||||
|
||||
set-props
|
||||
udevadm monitor -u | while read -r _ _ tag _; do
|
||||
if [ "$tag" = "bind" ];then
|
||||
# Elan input setting
|
||||
xinput set-prop 'Elan Touchpad' 'libinput Tapping Enabled' 1
|
||||
xinput set-prop 'Elan Touchpad' 'libinput Natural Scrolling Enabled' 1
|
||||
xinput set-prop 'Elan TrackPoint' 'libinput Accel Speed' -0.3
|
||||
# Magic Trackpad 2
|
||||
xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Natural Scrolling Enabled' 1
|
||||
xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Accel Speed' 0.5
|
||||
# Macbook Pro Trackpad
|
||||
xinput set-prop "bcm5974" "libinput Natural Scrolling Enabled" 1
|
||||
xinput set-prop "bcm5974" "libinput Accel Speed" 0.5
|
||||
# Logitech G402
|
||||
xinput set-prop 'Logitech Gaming Mouse G402' 'libinput Accel Speed' -0.8
|
||||
# Logitech G102
|
||||
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Natural Scrolling Enabled' 1
|
||||
xinput set-prop 'Logitech G102 LIGHTSYNC Gaming Mouse' 'libinput Accel Speed' -0.5
|
||||
set-props
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user