@ -71,10 +62,8 @@ bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+Right move right
# split in horizontal orientation
# split in horizontal/veritcal orientation
bindsym $mod+h split h
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
bindsym $mod+v split v
# enter fullscreen mode for the focused container
# enter fullscreen mode for the focused container
@ -85,20 +74,12 @@ bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+e layout toggle split
# toggle tiling / floating
# actions between tiling/floating windows/containers
bindsym $mod+Shift+space floating toggle
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
bindsym $mod+a focus parent
# focus the child container
# Define names for default workspaces for which we configure key bindings.
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws1 "1"
set $ws2 "2"
set $ws2 "2"
set $ws3 "3"
set $ws3 "3"
@ -139,78 +120,72 @@ bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
# exit i3 (logs you out of your X session)
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'"
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'"
# resize window (you can also use the mouse for that)
# resize window (you can also use the mouse for that)
# These bindings trigger as soon as you enter the resize mode
mode "resize" {
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# vi keybindings
bindsym j resize shrink width 10 px or 10 ppt
# Pressing left will shrink the window’s width.
bindsym k resize grow height 10 px or 10 ppt
# Pressing right will grow the window’s width.
bindsym l resize shrink height 10 px or 10 ppt
# Pressing up will shrink the window’s height.
bindsym ograve resize grow width 10 px or 10 ppt
# Pressing down will grow the window’s height.
bindsym j resize shrink width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym k resize grow height 10 px or 10 ppt
bindsym Left resize shrink width 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym ograve resize grow width 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
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Down resize grow height 10 px or 10 ppt
bindsym Return mode "default"
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Escape mode "default"
bindsym Right resize grow width 10 px or 10 ppt
bindsym $mod+r mode "default"
# 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"
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
# status_command i3status
#}
#bar {
# status_command i3blocks
#}
bar {
i3bar_command $HOME/.config/polybar/launch.sh
}
default_border pixel 1
default_floating_border normal
# Status Control
# Status Control
# `dm-tool` works with lightdm greeters only
# `dm-tool` works with lightdm greeters only
bindsym XF86ScreenSaver exec "dm-tool lock"
bindsym XF86ScreenSaver exec "dm-tool lock"
# Screenshot
# Screenshot
# (it deletes the screenshot file in `/tmp/` right after copying it to the clipboard)
# It deletes the screenshot file in `/tmp/` right after copying it to the
# Note1: `scrot` doesn't work well with `compton`
# clipboard.
# Note2: `gnome-screenshot` has problems too when runs in CLI mode
# Notes:
# Note3: `deepin-screenshot` ignores the `--no-notification` option