Difference between revisions of "I3 window manager configuration"
From Tech
Jump to navigationJump to search| (3 intermediate revisions by the same user not shown) | |||
| Line 44: | Line 44: | ||
#gnome-screenshot -i |
#gnome-screenshot -i |
||
bindsym Control+Print exec gnome-screenshot -c -a |
bindsym Control+Print exec gnome-screenshot -c -a |
||
| + | |||
| + | # start zoom (boomer): |
||
| + | # https://github.com/tsoding/boomer |
||
| + | # to build: apt install nim |
||
| + | bindsym $mod+z exec "/home/joost/rommel/boomer/boomer" |
||
| + | |||
| + | # lock and suspend on $mod+l or $mod+Shift+l |
||
| + | bindsym $mod+l exec "i3lock -e -i /home/joost/rommel/GHG-rotterdam-clouds.png" |
||
| + | #bindsym $mod+l exec "i3lock -e -t -i /home/joost/rommel/GHG-terras.png" |
||
| + | bindsym $mod+Shift+l exec "i3lock -e -i /home/joost/rommel/GHG-rotterdam-clouds.png; systemctl suspend" |
||
| + | |||
| + | |||
</nowiki> |
</nowiki> |
||
| Line 51: | Line 63: | ||
=Scripts= |
=Scripts= |
||
| − | The hp-brightness script: |
+ | The hp-brightness script in /usr/local/bin/hp-brightness: |
<nowiki> |
<nowiki> |
||
Latest revision as of 14:23, 14 August 2025
#prevent wrapping (looping) of focus focus_wrapping no # lock and syspend on $mod+l or $mod+Shift+l bindsym $mod+l exec i3lock -e bindsym $mod+Shift+l exec "i3lock -e; systemctl suspend" ### #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 # start zoom (boomer): # https://github.com/tsoding/boomer # to build: apt install nim bindsym $mod+z exec "/home/joost/rommel/boomer/boomer" # lock and suspend on $mod+l or $mod+Shift+l bindsym $mod+l exec "i3lock -e -i /home/joost/rommel/GHG-rotterdam-clouds.png" #bindsym $mod+l exec "i3lock -e -t -i /home/joost/rommel/GHG-terras.png" bindsym $mod+Shift+l exec "i3lock -e -i /home/joost/rommel/GHG-rotterdam-clouds.png; systemctl suspend"
Lock-on-Suspend
Does this [1] work?
Scripts
The hp-brightness script in /usr/local/bin/hp-brightness:
#!/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