dotfiles/.config/i3/config.d/laptop

49 lines
2.0 KiB
Plaintext
Raw Normal View History

##################################
# STARTING CONFIGURATION
##################################
# 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
2023-11-05 00:07:28 +01:00
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%
2023-11-01 19:15:08 +01:00
bindsym XF86KbdBrightnessDown exec --no-startup-id brightnessctl -d asus::kbd_backlight set +5%
bindsym XF86KbdBrightnessUp exec --no-startup-id brightnessctl -d asus::kbd_backlight set 5%-
2023-10-29 16:09:32 +01:00
# Get chosen DPI from Xresources, default 120
set_from_resource $dpi i3wm.dpi 120
# Only dunst seems to care about this setting
2023-10-29 16:09:32 +01:00
exec xrandr --dpi $dpi
##################################
# PROGRAMS STARTED AUTOMATICALLY
##################################
# 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
2023-11-05 00:12:21 +01:00
exec --no-startup-id xinput set-prop "Asus TouchPad" "libinput Accel Speed" 0.65
# That one supports tapping but is disabled by default!
exec --no-startup-id xinput set-prop "Asus TouchPad" "libinput Tapping Enabled" 1
2024-01-17 19:59:50 +01:00
# GUI for PulseAudio
exec pavucontrol
##################################
# BINDINGS FOR STARTING PROGRAMS
##################################
##################################
# BINDINGS FOR STANDARD OPERATIONS
##################################
##################################
# OPERATIONS FOR SPECIFIC WINDOWS
2023-11-01 19:15:08 +01:00
##################################
2024-01-17 19:59:50 +01:00
# Scratchpad
for_window [class="Pavucontrol"] mark "pavucontrol", move scratchpad
bindsym $mod+Shift+j [con_mark="pavucontrol"] scratchpad show, move position center