141 lines
5.4 KiB
Text
141 lines
5.4 KiB
Text
# vim:ft=i3config:fdm=marker
|
|
|
|
# change borders
|
|
bindsym $mod+Shift+b border none
|
|
bindsym $mod+b border pixel 2
|
|
bindsym $mod+n border normal
|
|
|
|
# reload the configuration file
|
|
bindsym $mod+Shift+c reload
|
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
|
bindsym $mod+Shift+r restart
|
|
# kill focused window
|
|
bindsym $mod+Shift+q kill
|
|
|
|
# Start Applications
|
|
bindsym $mod+Shift+Return exec $terminal
|
|
bindsym $mod+e exec --no-startup-id $fileman
|
|
bindsym $mod+t exec --no-startup-id pkill picom
|
|
bindsym $mod+Ctrl+t exec --no-startup-id picom -b
|
|
bindsym $mod+Ctrl+x exec --no-startup-id xkill
|
|
bindsym $hyper+p --release exec --no-startup-id flameshot gui
|
|
bindsym $hyper+space exec --no-startup-id gopass ls --flat | rofi -dmenu -dpi $dpi | xargs --no-run-if-empty gopass show -o | xdotool type --clearmodifiers --file -
|
|
|
|
# change focus
|
|
bindsym $modFocus+h focus left
|
|
bindsym $modFocus+j focus down
|
|
bindsym $modFocus+k focus up
|
|
bindsym $modFocus+l focus right
|
|
bindsym $modFocus+Left focus left
|
|
bindsym $modFocus+Down focus down
|
|
bindsym $modFocus+Up focus up
|
|
bindsym $modFocus+Right focus right
|
|
# move focused window
|
|
bindsym $modMove+h move left
|
|
bindsym $modMove+j move down
|
|
bindsym $modMove+k move up
|
|
bindsym $modMove+l move right
|
|
bindsym $modMove+Left move left
|
|
bindsym $modMove+Down move down
|
|
bindsym $modMove+Up move up
|
|
bindsym $modMove+Right move right
|
|
|
|
# move workspaces across monitors
|
|
bindsym $modMove+greater move workspace to output right
|
|
bindsym $modMove+less move workspace to output left
|
|
|
|
# split orientation
|
|
bindsym $mod+q split toggle
|
|
|
|
# toggle fullscreen mode for the focused container
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
# change container layout (stacked, tabbed, toggle split)
|
|
bindsym $mod+s layout toggle
|
|
|
|
# toggle tiling / floating
|
|
bindsym $mod+Shift+d floating toggle
|
|
# change focus between tiling / floating windows
|
|
bindsym $mod+d focus mode_toggle
|
|
|
|
# toggle sticky
|
|
bindsym $mod+Shift+s sticky toggle
|
|
|
|
# focus the parent container
|
|
bindsym $mod+a focus parent
|
|
|
|
# move the currently focused window to the scratchpad
|
|
bindsym $mod+Shift+Tab move scratchpad
|
|
# Show the next scratchpad window or hide the focused scratchpad window.
|
|
# If there are multiple scratchpad windows, this command cycles through them.
|
|
bindsym $mod+Tab scratchpad show
|
|
|
|
bindsym $mod+m [class="discord"] scratchpad show
|
|
|
|
# switch to workspace
|
|
bindsym $modFocus+1 workspace $ws1
|
|
bindsym $modFocus+2 workspace $ws2
|
|
bindsym $modFocus+3 workspace $ws3
|
|
bindsym $modFocus+4 workspace $ws4
|
|
bindsym $modFocus+5 workspace $ws5
|
|
bindsym $modFocus+6 workspace $ws6
|
|
bindsym $modFocus+7 workspace $ws7
|
|
bindsym $modFocus+8 workspace $ws8
|
|
bindsym $modFocus+9 workspace $ws9
|
|
bindsym $modFocus+0 workspace $ws10
|
|
# Move to workspace with focused container
|
|
bindsym $modMove+1 move container to workspace $ws1; workspace $ws1
|
|
bindsym $modMove+2 move container to workspace $ws2; workspace $ws2
|
|
bindsym $modMove+3 move container to workspace $ws3; workspace $ws3
|
|
bindsym $modMove+4 move container to workspace $ws4; workspace $ws4
|
|
bindsym $modMove+5 move container to workspace $ws5; workspace $ws5
|
|
bindsym $modMove+6 move container to workspace $ws6; workspace $ws6
|
|
bindsym $modMove+7 move container to workspace $ws7; workspace $ws7
|
|
bindsym $modMove+8 move container to workspace $ws8; workspace $ws8
|
|
bindsym $modMove+9 move container to workspace $ws9; workspace $ws9
|
|
bindsym $modMove+0 move container to workspace $ws10; workspace $ws10
|
|
|
|
# Set shut down, restart and locking features
|
|
bindsym $mod+p mode "$mode_system"
|
|
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
|
|
mode "$mode_system" {
|
|
bindsym l exec --no-startup-id i3exit lock, mode "default"
|
|
bindsym s exec --no-startup-id i3exit suspend, mode "default"
|
|
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
|
|
bindsym e exec --no-startup-id i3exit logout, mode "default"
|
|
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
|
|
bindsym r exec --no-startup-id i3exit reboot, mode "default"
|
|
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
|
|
|
|
# exit system mode: "Enter" or "Escape"
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
|
|
# Resize window (you can also use the mouse for that)
|
|
bindsym $mod+r mode "resize"
|
|
mode "resize" {
|
|
bindsym h resize shrink width 5 px or 5 ppt
|
|
bindsym j resize grow height 5 px or 5 ppt
|
|
bindsym k resize shrink height 5 px or 5 ppt
|
|
bindsym l resize grow width 5 px or 5 ppt
|
|
bindsym Left resize shrink width 10 px or 10 ppt
|
|
bindsym Down resize grow height 10 px or 10 ppt
|
|
bindsym Up resize shrink height 10 px or 10 ppt
|
|
bindsym Right resize grow width 10 px or 10 ppt
|
|
bindsym R resize set 50 ppt 50 ppt
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
|
|
# volume & media
|
|
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
|
|
bindsym XF86AudioNext exec --no-startup-id playerctl next
|
|
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
|
|
bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
|
|
# rofi instead of drun
|
|
bindsym $mod+space exec --no-startup-id rofi -show drun -dpi $dpi
|
|
# 1password
|
|
bindsym $mod+Shift+space exec --no-startup-id $pwman
|