Difference between revisions of "I3 window manager configuration"
From Tech
Jump to navigationJump to search (Created page with " <nowiki> ### #Mouse/touchpad #https://www.reddit.com/r/i3wm/comments/4efbsm/mouse_speed/ # xinput list | grep HID # xinput list-props 13 #exec_always xinput set-prop 15 328...") |
|||
Line 39: | Line 39: | ||
</nowiki> |
</nowiki> |
||
+ | =Lock-on-Suspend= |
||
⚫ | |||
+ | Does this [https://gist.github.com/Raymo111/91ffd256b7aca6a85e8a99d6331d3b7b] work? |
||
+ | |||
+ | =Scripts= |
||
⚫ | |||
<nowiki> |
<nowiki> |
||
− | cat /usr/local/bin/hp-brightness |
||
#!/bin/dash |
#!/bin/dash |
||
Latest revision as of 10:34, 10 July 2022
### #Mouse/touchpad #https://www.reddit.com/r/i3wm/comments/4efbsm/mouse_speed/ # xinput list | grep HID # xinput list-props 13 #exec_always xinput set-prop 15 328 -1 #exec_always xinput set-prop 11 317 -0.8 #touchpad acer laptop: #exec_always xinput set-prop 13 312 1 #natural scrolling on #exec_always xinput set-prop 13 332 1 #enable tapping #touchpad HP laptop: # xinput list-props "ELAN071A:00 04F3:30FD Touchpad" exec_always xinput set-prop "ELAN071A:00 04F3:30FD Touchpad" "libinput Tapping Enabled" 1 exec_always xinput set-prop "ELAN071A:00 04F3:30FD Touchpad" "libinput Natural Scrolling Enabled" 1 # https://faq.i3wm.org/question/3747/enabling-multimedia-keys.1.html # Pulse Audio controls (may need to change the '1' to '0'... #increase volume: bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume 1 +5%; pactl set-sink-volume 0 +5%" #decrease volume: bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume 1 -5%;pactl set-sink-volume 0 -5%" # mute sound bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle # increase/decrease brightness. See hp-brightness script below. bindsym $mod+Ctrl+Right exec --no-startup-id sudo /usr/local/bin/hp-brightness +5 bindsym $mod+Ctrl+Left exec --no-startup-id sudo /usr/local/bin/hp-brightness -5 #https://erikdubois.be/two-different-ways-make-screenshot-i3/ #gnome-screenshot -i bindsym Control+Print exec gnome-screenshot -c -a
Lock-on-Suspend
Does this [1] work?
Scripts
The hp-brightness script:
#!/bin/dash D=/sys/class/backlight/amdgpu_bl0 ACTUAL=`cat ${D}/actual_brightness` NEW=`/usr/bin/python3 -c "print(max(min(${ACTUAL} + $1, 100), 10))" ` echo ${ACTUAL}, ${NEW} echo ${NEW} > ${D}/brightness