diff --git a/.config/bootstrap/config_common b/.config/bootstrap/config_common index 8c44887..66d29ee 100644 --- a/.config/bootstrap/config_common +++ b/.config/bootstrap/config_common @@ -63,6 +63,7 @@ xclip xdg-user-dirs xdotool xorg-server +xorg-xev xorg-xinit xorg-xrandr xsel diff --git a/.config/i3/config.d/laptop b/.config/i3/config.d/laptop index bbbdb2f..6ec46da 100644 --- a/.config/i3/config.d/laptop +++ b/.config/i3/config.d/laptop @@ -2,16 +2,16 @@ # STARTING CONFIGURATION ################################## -# ALSA keybinding +# ALSA keybinding (won't work with some keyboards... scroll in polybar in that case) bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D hw:PCH -M sset Master 5%+ bindsym XF86AudioLowerVolume exec --no-startup-id aimxer -D hw:PCH -M sset Master 5%- bindsym XF86AudioMute exec --no-startup-id amixer -D hw:PCH -M sset 'Master' toggle -# Luminosity on laptop (not xorg-xbacklight but the compatible and working acpilight) -bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10 -steps 200 -bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10 -steps 200 -bindsym XF86KbdBrightnessDown exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -dec 30 -bindsym XF86KbdBrightnessUp exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -inc 30 +# Luminosity on laptop +bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set +10% +bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set 10%- +bindsym XF86KbdBrightnessDown exec --no-startup-id brightnessctl -d asus::kbd_backlight set +10% +bindsym XF86KbdBrightnessUp exec --no-startup-id brightnessctl -d asus::kbd_backlight set 10%- # Only dunst seems to care about this setting exec xrandr --dpi 90 @@ -20,10 +20,12 @@ exec xrandr --dpi 90 # PROGRAMS STARTED AUTOMATICALLY ################################## -# set mouse acceleration +# set mouse acceleration for various types of devices so it works on multiple laptops exec --no-startup-id xinput set-prop 'FocalTechPS/2 FocalTech Touchpad' 'libinput Accel Speed' 0.8 exec --no-startup-id xinput set-prop 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)' 'libinput Accel Speed' 0.8 - +exec --no-startup-id xinput set-prop "Asus TouchPad" "libinput Accel Speed" 0.5 +# That one supports tapping but is disabled by default! +exec --no-startup-id xinput set-prop "Asus TouchPad" "libinput Tapping Enabled" 1 ################################## # BINDINGS FOR STARTING PROGRAMS ################################## diff --git a/.config/polybar/config_common b/.config/polybar/config_common index 5655393..51aa1f5 100644 --- a/.config/polybar/config_common +++ b/.config/polybar/config_common @@ -286,6 +286,7 @@ bar-width = 10 bar-indicator = | bar-fill = ─ bar-empty = ─ +enable-scroll = true [module/pulseaudio] type = internal/pulseaudio diff --git a/.config/udev/backlight.rules.laptop b/.config/udev/backlight.rules.laptop new file mode 100644 index 0000000..5440ae6 --- /dev/null +++ b/.config/udev/backlight.rules.laptop @@ -0,0 +1 @@ +ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video $sys$devpath/brightness", RUN+="/bin/chmod g+w $sys$devpath/brightness" diff --git a/.config/udev/dest b/.config/udev/dest new file mode 100644 index 0000000..69e686a --- /dev/null +++ b/.config/udev/dest @@ -0,0 +1 @@ +/etc/udev/rules.d diff --git a/.init_config.sh b/.init_config.sh index e6e1c46..11a630d 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -88,7 +88,6 @@ CONFIG=${XDG_CONFIG_HOME:-$HOME/.config} ENV=${1} for m in ${MERGE_DIRS}; do - echo ${m} if [ -f "${CONFIG}/${m}/${MERGE_CONFIG_FOLDER}/above" ]; then merge_config $m ${ENV} true else @@ -125,6 +124,8 @@ if [ ! -z "$INIT" ]; then # Basic directory structure echo -e "* Create base home directories..." mkdir -p ~/documents ~/images/screenshots ~/videos ~/downloads + echo -e "* Allow user to control brightness..." + sudo usermod $(whoami) -aG video fi if [ ! -z ${ENV} ]; then