Have i3 bindings outside sxhkd
There was an issue about correct focus of window
This commit is contained in:
110
i3.org
110
i3.org
@@ -172,8 +172,116 @@ If there are multiple scratchpad windows, this command cycles through them.
|
||||
bindsym $mod+BackSpace scratchpad show
|
||||
#+end_src
|
||||
|
||||
* I3 key bindings
|
||||
** Kill Window
|
||||
#+begin_src conf
|
||||
# close and kill
|
||||
bindsym $mod+q kill
|
||||
#+end_src
|
||||
|
||||
** Set the window State
|
||||
#+begin_src conf
|
||||
# Set the window to full-screen
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# Set the window to floating
|
||||
bindsym $mod+s floating toggle
|
||||
|
||||
# Alternate between the tiled and normal layout
|
||||
bindsym $mod+t layout toggle tabbed split
|
||||
|
||||
# Change focus between tiling / floating windows
|
||||
bindsym $mod+c focus mode_toggle
|
||||
|
||||
# Sticky window
|
||||
bindsym $mod+y sticky toggle
|
||||
#+end_src
|
||||
|
||||
** focus/swap
|
||||
#+begin_src conf
|
||||
# Focus/swap the node in the given direction
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
#+end_src
|
||||
|
||||
#+begin_src conf
|
||||
# Focus the next/previous desktop in the current monitor
|
||||
bindsym $mod+p workspace prev
|
||||
bindsym $mod+n workspace next
|
||||
|
||||
# Focus the last Desktop
|
||||
bindsym $mod+b workspace back_and_forth
|
||||
|
||||
# Focus to the given desktop
|
||||
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+ctrl+1 move contrainer to workspace 1
|
||||
bindsym $mod+ctrl+2 move contrainer to workspace 2
|
||||
bindsym $mod+ctrl+3 move contrainer to workspace 3
|
||||
bindsym $mod+ctrl+4 move contrainer to workspace 4
|
||||
bindsym $mod+ctrl+5 move contrainer to workspace 5
|
||||
bindsym $mod+ctrl+6 move contrainer to workspace 6
|
||||
bindsym $mod+ctrl+7 move contrainer to workspace 7
|
||||
bindsym $mod+ctrl+8 move contrainer to workspace 8
|
||||
bindsym $mod+ctrl+9 move contrainer to workspace 9
|
||||
bindsym $mod+ctrl+0 move contrainer to workspace 10
|
||||
|
||||
bindsym $mod+Shift+1 move contrainer to workspace 1; workspace 1
|
||||
bindsym $mod+Shift+2 move contrainer to workspace 2; workspace 2
|
||||
bindsym $mod+Shift+3 move contrainer to workspace 3; workspace 3
|
||||
bindsym $mod+Shift+4 move contrainer to workspace 4; workspace 4
|
||||
bindsym $mod+Shift+5 move contrainer to workspace 5; workspace 5
|
||||
bindsym $mod+Shift+6 move contrainer to workspace 6; workspace 6
|
||||
bindsym $mod+Shift+7 move contrainer to workspace 7; workspace 7
|
||||
bindsym $mod+Shift+8 move contrainer to workspace 8; workspace 8
|
||||
bindsym $mod+Shift+9 move contrainer to workspace 9; workspace 9
|
||||
bindsym $mod+Shift+0 move contrainer to workspace 10; workspace 10
|
||||
#+end_src
|
||||
|
||||
** Preselect
|
||||
Preselect the direction
|
||||
#+begin_src conf
|
||||
# Set Horizontal Layout
|
||||
bindsym $mod+ctrl+h split h
|
||||
bindsym $mod+ctrl+l split h
|
||||
|
||||
# Set Vertical Layout
|
||||
bindsym $mod+ctrl+j split v
|
||||
bindsym $mod+ctrl+k split v
|
||||
#+end_src
|
||||
|
||||
** Resize
|
||||
Expand/Shrink a window
|
||||
#+begin_src conf
|
||||
# Horizontal Shrink
|
||||
bindsym $mod+$alt+h resize shrink width 10 px or 10 ppt
|
||||
# Vertical Grow
|
||||
bindsym $mod+$alt+j resize grow height 10 px or 10 ppt
|
||||
# Vertical Shrink
|
||||
bindsym $mod+$alt+k resize shrink height 10 px or 10 ppt
|
||||
# Horizontal Grow
|
||||
bindsym $mod+$alt+l resize grow width 10 px or 10 ppt
|
||||
#+end_src
|
||||
|
||||
* Run Polybar and SXHKD
|
||||
#+begin_src conf
|
||||
exec --no-startup-id sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.i3
|
||||
# exec --no-startup-id sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.i3
|
||||
exec --no-startup-id sxhkd -m 1
|
||||
exec --no-startup-id polybar top >>/tmp/polybar.log 2>&1 &
|
||||
#+end_src
|
||||
|
||||
Reference in New Issue
Block a user