exec--no-startup-idfeh--bg-center"/home/huatai/.config/i3/kali_linux.jpg"set $mod Mod4# start a terminalbindsym $mod+Returnexecrxvt# start dmenu (a program launcher)bindsym $mod+dexecdmenu_run# change focusbindsym $mod+jfocusleftbindsym $mod+kfocusdownbindsym $mod+lfocusupbindsym $mod+semicolonfocusright# alternatively, you can use the cursor keys:bindsym $mod+Leftfocusleftbindsym $mod+Downfocusdownbindsym $mod+Upfocusupbindsym $mod+Rightfocusright# move focused windowbindsym $mod+Shift+jmoveleftbindsym $mod+Shift+kmovedownbindsym $mod+Shift+lmoveupbindsym $mod+Shift+semicolonmoveright# alternatively, you can use the cursor keys:bindsym $mod+Shift+Leftmoveleftbindsym $mod+Shift+Downmovedownbindsym $mod+Shift+Upmoveupbindsym $mod+Shift+Rightmoveright# split in horizontal orientationbindsym $mod+hsplith# split in vertical orientationbindsym $mod+vsplitv# enter fullscreen mode for the focused containerbindsym $mod+ffullscreentoggle# change container layout (stacked, tabbed, toggle split)bindsym $mod+slayoutstackingbindsym $mod+wlayouttabbedbindsym $mod+elayouttogglesplit# toggle tiling / floatingbindsym $mod+Shift+spacefloatingtoggle# change focus between tiling / floating windowsbindsym $mod+spacefocusmode_toggle# focus the parent containerbindsym $mod+afocusparent# switch to workspacebindsym $mod+1workspace1bindsym $mod+2workspace2bindsym $mod+3workspace3bindsym $mod+4workspace4bindsym $mod+5workspace5bindsym $mod+6workspace6bindsym $mod+7workspace7bindsym $mod+8workspace8bindsym $mod+9workspace9bindsym $mod+0workspace10# move focused container to workspacebindsym $mod+Shift+1movecontainertoworkspace1bindsym $mod+Shift+2movecontainertoworkspace2bindsym $mod+Shift+3movecontainertoworkspace3bindsym $mod+Shift+4movecontainertoworkspace4bindsym $mod+Shift+5movecontainertoworkspace5bindsym $mod+Shift+6movecontainertoworkspace6bindsym $mod+Shift+7movecontainertoworkspace7bindsym $mod+Shift+8movecontainertoworkspace8bindsym $mod+Shift+9movecontainertoworkspace9bindsym $mod+Shift+0movecontainertoworkspace10# reload the configuration filebindsym $mod+Shift+creload# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)bindsym $mod+Shift+rrestart# exit i3 (logs you out of your X session)bindsym $mod+Shift+eexec"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)mode"resize"{# These bindings trigger as soon as you enter the resize mode# Pressing left will shrink the window’s width.# Pressing right will grow the window’s width.# Pressing up will shrink the window’s height.# Pressing down will grow the window’s height.bindsymjresizeshrinkwidth10pxor10pptbindsymkresizegrowheight10pxor10pptbindsymlresizeshrinkheight10pxor10pptbindsymsemicolonresizegrowwidth10pxor10ppt# same bindings, but for the arrow keysbindsymLeftresizeshrinkwidth10pxor10pptbindsymDownresizegrowheight10pxor10pptbindsymUpresizeshrinkheight10pxor10pptbindsymRightresizegrowwidth10pxor10ppt# back to normal: Enter or EscapebindsymReturnmode"default"bindsymEscapemode"default"}bindsym $mod+rmode"resize"# set bar statusbar{status_commandi3status}
semicolon是分号键,通常用j k l ;来控制方向
编辑~/.vnc/xstartup
#!/bin/shxrdb $HOME/.Xresourcesxsetroot-solidgreyautocutsel-fork# Fix to make GNOME workexport XKL_XMODMAP_DISABLE=1/etc/X11/Xsession