Created
October 18, 2017 21:42
-
-
Save ikavalio/619d88e0ccdabad1b25616fe3e218bf8 to your computer and use it in GitHub Desktop.
i3wm configuration for laptop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.i3/config | |
| # Keyboard layout can be configured in ~/.config/omf/init.fish by adding | |
| # | |
| # setxkbmap -model pc104 -layout us,ru -option grp:alt_space_toggle | |
| bar { | |
| status_command i3status | |
| position top | |
| } | |
| # bind media keys to corresponding actions | |
| # audio | |
| bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% | |
| bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% | |
| bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle | |
| # backlight | |
| bindsym XF86MonBrightnessUp exec light -A 5 | |
| bindsym XF86MonBrightnessDown exec light -U 5 | |
| # touchpad toggle script | |
| # #!/bin/bash | |
| # | |
| # if synclient -l | grep "TouchpadOff .*=.*0" ; then | |
| # synclient TouchpadOff=1; | |
| # else | |
| # synclient TouchpadOff=0; | |
| # fi | |
| bindsym XF86TouchpadToggle exec "/home/ikavalio/.i3/touchpad_toggle.sh; notify-send -t 5 'touchpad toggle'" | |
| # player controls | |
| bindsym XF86AudioPlay exec playerctl play | |
| bindsym XF86AudioPause exec playerctl pause | |
| bindsym XF86AudioNext exec playerctl next | |
| bindsym XF86AudioPrev exec playerctl previous |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment