147 lines
4.6 KiB
Plaintext
147 lines
4.6 KiB
Plaintext
|
|
# start a terminal
|
||
|
|
bindsym $mod+Return exec alacritty
|
||
|
|
|
||
|
|
bindsym $mod+b exec i3lock -i ~/.config/i3/matrix.png -t
|
||
|
|
|
||
|
|
# kill focused window
|
||
|
|
bindsym $mod+Shift+q kill
|
||
|
|
|
||
|
|
# start dmenu (a program launcher)
|
||
|
|
bindsym $mod+i exec rofi -show
|
||
|
|
|
||
|
|
# change focus
|
||
|
|
bindsym $mod+h focus left
|
||
|
|
bindsym $mod+j focus down
|
||
|
|
bindsym $mod+k focus up
|
||
|
|
bindsym $mod+l focus right
|
||
|
|
|
||
|
|
# alternatively, you can use the cursor keys:
|
||
|
|
bindsym $mod+Left focus left
|
||
|
|
bindsym $mod+Down focus down
|
||
|
|
bindsym $mod+Up focus up
|
||
|
|
bindsym $mod+Right focus right
|
||
|
|
|
||
|
|
# move focused window
|
||
|
|
bindsym $mod+Shift+h move left
|
||
|
|
bindsym $mod+Shift+j move down
|
||
|
|
bindsym $mod+Shift+k move up
|
||
|
|
bindsym $mod+Shift+l move right
|
||
|
|
|
||
|
|
# alternatively, you can use the cursor keys:
|
||
|
|
bindsym $mod+Shift+Left move left
|
||
|
|
bindsym $mod+Shift+Down move down
|
||
|
|
bindsym $mod+Shift+Up move up
|
||
|
|
bindsym $mod+Shift+Right move right
|
||
|
|
|
||
|
|
bindsym $mod+Control+t focus output left
|
||
|
|
bindsym $mod+Control+n focus output right
|
||
|
|
|
||
|
|
bindsym $mod+Control+Left move workspace to output left
|
||
|
|
bindsym $mod+Control+Right move workspace to output right
|
||
|
|
|
||
|
|
# split in horizontal orientation
|
||
|
|
bindsym $mod+c split h
|
||
|
|
|
||
|
|
# split in vertical orientation
|
||
|
|
bindsym $mod+period split v
|
||
|
|
|
||
|
|
# enter fullscreen mode for the focused container
|
||
|
|
bindsym $mod+f fullscreen toggle
|
||
|
|
|
||
|
|
# change container layout (stacked, tabbed, toggle split)
|
||
|
|
bindsym $mod+u layout stacking
|
||
|
|
bindsym $mod+t layout tabbed
|
||
|
|
bindsym $mod+p layout toggle split
|
||
|
|
|
||
|
|
bindsym $mod+z sticky toggle
|
||
|
|
|
||
|
|
# toggle tiling / floating
|
||
|
|
bindsym $mod+space floating toggle
|
||
|
|
|
||
|
|
# change focus between tiling / floating windows
|
||
|
|
bindsym $mod+Shift+space focus mode_toggle
|
||
|
|
|
||
|
|
# focus the parent container
|
||
|
|
bindsym $mod+a focus parent
|
||
|
|
|
||
|
|
# focus the child container
|
||
|
|
#bindsym $mod+d focus child
|
||
|
|
|
||
|
|
# switch to workspace
|
||
|
|
bindsym $mod+1 workspace 1
|
||
|
|
bindsym $mod+2 workspace 2
|
||
|
|
bindsym $mod+3 workspace 3
|
||
|
|
bindsym $mod+4 workspace 4
|
||
|
|
bindsym $mod+5 workspace 5
|
||
|
|
bindsym $mod+6 workspace 6
|
||
|
|
bindsym $mod+7 workspace 7
|
||
|
|
bindsym $mod+8 workspace 8
|
||
|
|
bindsym $mod+9 workspace 9
|
||
|
|
bindsym $mod+0 workspace 10
|
||
|
|
|
||
|
|
bindsym $mod+Tab workspace next_on_output
|
||
|
|
bindsym $mod+Shift+Tab workspace prev_on_output
|
||
|
|
|
||
|
|
# move focused container to workspace
|
||
|
|
bindsym $mod+Shift+1 move container to workspace 1
|
||
|
|
bindsym $mod+Shift+2 move container to workspace 2
|
||
|
|
bindsym $mod+Shift+3 move container to workspace 3
|
||
|
|
bindsym $mod+Shift+4 move container to workspace 4
|
||
|
|
bindsym $mod+Shift+5 move container to workspace 5
|
||
|
|
bindsym $mod+Shift+6 move container to workspace 6
|
||
|
|
bindsym $mod+Shift+7 move container to workspace 7
|
||
|
|
bindsym $mod+Shift+8 move container to workspace 8
|
||
|
|
bindsym $mod+Shift+9 move container to workspace 9
|
||
|
|
bindsym $mod+Shift+0 move container to workspace 10
|
||
|
|
|
||
|
|
# reload the configuration file
|
||
|
|
bindsym $mod+Shift+x reload
|
||
|
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||
|
|
bindsym $mod+Shift+o restart
|
||
|
|
# exit i3 (logs you out of your X session)
|
||
|
|
bindsym $mod+Shift+p 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'"
|
||
|
|
|
||
|
|
# dunst
|
||
|
|
bindsym Control+space exec dunstctl close
|
||
|
|
bindsym Control+Shift+space exec dunstctl close-all
|
||
|
|
bindsym Control+grave exec dunstctl history-pop
|
||
|
|
bindsym Control+period exec dunstctl context
|
||
|
|
|
||
|
|
# scratchpad
|
||
|
|
bindsym $mod+Shift+grave move scratchpad
|
||
|
|
bindsym $mod+grave scratchpad show
|
||
|
|
|
||
|
|
bindsym $mod+o mode "resize"
|
||
|
|
bindsym $mod+m mode "move"
|
||
|
|
bindsym $mod+e mode "launch"
|
||
|
|
|
||
|
|
bindsym XF86Calculator exec "alacritty --class Alacritty,Float"
|
||
|
|
|
||
|
|
bindsym XF86HomePage workspace $ws_browser_1
|
||
|
|
bindsym $mod+XF86HomePage workspace $ws_browser_2
|
||
|
|
|
||
|
|
bindsym $mod+Shift+XF86HomePage move container to workspace $ws_browser_1
|
||
|
|
bindsym $mod+Control+XF86HomePage move container to workspace $ws_browser_2
|
||
|
|
|
||
|
|
bindsym XF86Mail workspace $ws_mail
|
||
|
|
bindsym $mod+Shift+XF86Mail move container to workspace $ws_mail
|
||
|
|
|
||
|
|
bindsym $mod+XF86Mail workspace $ws_im
|
||
|
|
bindsym $mod+Control+XF86Mail move container to workspace $ws_im
|
||
|
|
|
||
|
|
# Pulse Audio controls
|
||
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id "wpctl set-volume @DEFAULT_SINK@ 0.05+ && pkill -RTMIN+10 i3blocks"
|
||
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id "wpctl set-volume @DEFAULT_SINK@ 0.05- && pkill -RTMIN+10 i3blocks"
|
||
|
|
|
||
|
|
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id "wpctl set-volume @DEFAULT_SINK@ 0.02+ && pkill -RTMIN+10 i3blocks"
|
||
|
|
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id "wpctl set-volume @DEFAULT_SINK@ 0.02- && pkill -RTMIN+10 i3blocks"
|
||
|
|
|
||
|
|
bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+10 i3blocks"
|
||
|
|
|
||
|
|
# Media player controls
|
||
|
|
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
|
||
|
|
bindsym XF86AudioNext exec --no-startup-id mpc next
|
||
|
|
bindsym XF86AudioPrev exec --no-startup-id mpc prev
|
||
|
|
|
||
|
|
bindsym Print exec "flameshot gui"
|