Created
February 17, 2022 02:47
-
-
Save saiashirwad/b3ea6aace6117a1aa466bb5c547280b8 to your computer and use it in GitHub Desktop.
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
for_window [class=".*"] border pixel 2 | |
set $mod Mod4 | |
set $alt Mod1 | |
font pango:monospace 10 | |
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork | |
exec --no-startup-id nm-applet | |
set $refresh_i3status killall -SIGUSR1 i3status | |
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status | |
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status | |
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status | |
floating_modifier $mod | |
# bindsym $alt+Shift+Return exec alacritty | |
bindsym $alt+t exec alacritty | |
bindsym $alt+q kill | |
bindsym $alt+d exec dmenu_run | |
bindsym $mod+Shift+s exec maimpick | |
bindsym $alt+h focus left | |
bindsym $alt+j focus down | |
bindsym $alt+k focus up | |
bindsym $alt+l focus right | |
# move focused window | |
bindsym $alt+Shift+h move left | |
bindsym $alt+Shift+j move down | |
bindsym $alt+Shift+k move up | |
bindsym $alt+Shift+l move right | |
bindsym $alt+v split toggle | |
bindsym $alt+w layout tabbed | |
bindsym $alt+f fullscreen toggle | |
bindsym $mod+space focus mode_toggle | |
# focus the parent container | |
bindsym $alt+p focus parent | |
bindsym $alt+c focus child | |
set $ws1 "1" | |
set $ws2 "2" | |
set $ws3 "3" | |
set $ws4 "4" | |
set $ws5 "5" | |
set $ws6 "6" | |
set $ws7 "7" | |
set $ws8 "8" | |
set $ws9 "9" | |
set $ws10 "10" | |
bindsym $alt+1 workspace number $ws1 | |
bindsym $alt+2 workspace number $ws2 | |
bindsym $alt+3 workspace number $ws3 | |
bindsym $alt+4 workspace number $ws4 | |
bindsym $alt+5 workspace number $ws5 | |
bindsym $alt+6 workspace number $ws6 | |
bindsym $alt+7 workspace number $ws7 | |
bindsym $alt+8 workspace number $ws8 | |
bindsym $alt+9 workspace number $ws9 | |
bindsym $alt+0 workspace number $ws10 | |
bindsym $alt+Shift+1 move container to workspace number $ws1 | |
bindsym $alt+Shift+2 move container to workspace number $ws2 | |
bindsym $alt+Shift+3 move container to workspace number $ws3 | |
bindsym $alt+Shift+4 move container to workspace number $ws4 | |
bindsym $alt+Shift+5 move container to workspace number $ws5 | |
bindsym $alt+Shift+6 move container to workspace number $ws6 | |
bindsym $alt+Shift+7 move container to workspace number $ws7 | |
bindsym $alt+Shift+8 move container to workspace number $ws8 | |
bindsym $alt+Shift+9 move container to workspace number $ws9 | |
bindsym $alt+Shift+0 move container to workspace number $ws10 | |
bindsym $alt+Shift+c reload | |
bindsym $alt+Shift+r restart | |
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" | |
mode "resize" { | |
bindsym h resize shrink width 10 px or 10 ppt | |
bindsym j resize grow height 10 px or 10 ppt | |
bindsym k resize shrink height 10 px or 10 ppt | |
bindsym l resize grow width 10 px or 10 ppt | |
# back to normal: Enter or Escape or $mod+r | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
bindsym $mod+r mode "default" | |
} | |
bindsym $mod+r mode "resize" | |
bar { | |
status_command i3status | |
position bottom | |
} | |
bindsym $mod+b bar mode toggle | |
exec --no-startup-id setxkbmap -option "ctrl:nocaps" | |
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" | |
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment