my localhost configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

i3_config 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. # i3 config file (v4)
  2. #
  3. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  4. set $mod Mod4
  5. set $i3_term default-terminal-emulator
  6. set $terminus -*-terminus-bold-*-*-*-14-*-*-*-*-*-iso10646-*
  7. set $terminus_xft xos4 Terminus:Bold:pixelsize=14
  8. font $terminus
  9. # Use Mouse+$mod to drag floating windows to their wanted position
  10. floating_modifier $mod
  11. # start a terminal
  12. bindsym $mod+x exec $i3_term
  13. # kill focused window
  14. bindsym $mod+Shift+c kill
  15. # workaround for firefox
  16. bindsym Control+q exec /bin/true
  17. # start dmenu (a program launcher)
  18. bindsym $mod+s exec dmenu_multicmd "$HOME/.displayrc.yaml" -i -fn "$terminus_xft"
  19. bindsym $mod+d exec dmenu_run -p run -i -fn "$terminus_xft"
  20. bindsym $mod+p exec dmenu_ssh "$i3_term -e tmux_ssh" -i -fn "$terminus_xft"
  21. # change focus
  22. bindsym $mod+h focus left
  23. bindsym $mod+j focus down
  24. bindsym $mod+k focus up
  25. bindsym $mod+l focus right
  26. # alternatively, you can use the cursor keys:
  27. bindsym $mod+Left focus left
  28. bindsym $mod+Down focus down
  29. bindsym $mod+Up focus up
  30. bindsym $mod+Right focus right
  31. # move focused window
  32. bindsym $mod+Shift+h move left
  33. bindsym $mod+Shift+j move down
  34. bindsym $mod+Shift+k move up
  35. bindsym $mod+Shift+l move right
  36. # alternatively, you can use the cursor keys:
  37. bindsym $mod+Shift+Left move left
  38. bindsym $mod+Shift+Down move down
  39. bindsym $mod+Shift+Up move up
  40. bindsym $mod+Shift+Right move right
  41. # split in horizontal orientation
  42. bindsym $mod+b split h
  43. # split in vertical orientation
  44. bindsym $mod+v split v
  45. # enter fullscreen mode for the focused container
  46. bindsym $mod+f fullscreen
  47. # change container layout (stacked, tabbed, toggle split)
  48. #bindsym $mod+s layout stacking
  49. bindsym $mod+w layout tabbed
  50. bindsym $mod+e layout toggle split
  51. # toggle tiling / floating
  52. bindsym $mod+Shift+Return floating toggle
  53. # change focus between tiling / floating windows
  54. bindsym $mod+Return focus mode_toggle
  55. # focus the parent container
  56. bindsym $mod+a focus parent
  57. # focus the child container
  58. bindsym $mod+Shift+a focus child
  59. # move to another screen
  60. bindsym $mod+Shift+o move workspace to output left
  61. # switch to workspace
  62. bindsym $mod+1 workspace 1
  63. bindsym $mod+2 workspace 2
  64. bindsym $mod+3 workspace 3
  65. bindsym $mod+4 workspace 4
  66. bindsym $mod+5 workspace 5
  67. bindsym $mod+6 workspace 6
  68. bindsym $mod+7 workspace 7
  69. bindsym $mod+8 workspace 8
  70. bindsym $mod+9 workspace 9
  71. bindsym $mod+0 workspace 10
  72. bindsym $mod+o workspace back_and_forth
  73. # move focused container to workspace
  74. bindsym $mod+Shift+1 move container to workspace 1
  75. bindsym $mod+Shift+2 move container to workspace 2
  76. bindsym $mod+Shift+3 move container to workspace 3
  77. bindsym $mod+Shift+4 move container to workspace 4
  78. bindsym $mod+Shift+5 move container to workspace 5
  79. bindsym $mod+Shift+6 move container to workspace 6
  80. bindsym $mod+Shift+7 move container to workspace 7
  81. bindsym $mod+Shift+8 move container to workspace 8
  82. bindsym $mod+Shift+9 move container to workspace 9
  83. bindsym $mod+Shift+0 move container to workspace 10
  84. # reload the configuration file
  85. bindsym $mod+Shift+r reload
  86. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  87. bindsym $mod+Control+r restart
  88. # exit i3 (logs you out of your X session)
  89. 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'"
  90. # lock screen
  91. bindsym $mod+z exec "xscreensaver-command -lock"
  92. # toggle touchpad
  93. bindsym XF86TouchpadToggle exec "touchpad-toggle"
  94. bindsym XF86KbdBrightnessDown exec "keybrightness d"
  95. bindsym XF86KbdBrightnessUp exec "keybrightness u"
  96. # resize window (you can also use the mouse for that)
  97. mode "resize" {
  98. bindsym h resize shrink width 10 px or 10 ppt
  99. bindsym j resize grow height 10 px or 10 ppt
  100. bindsym k resize shrink height 10 px or 10 ppt
  101. bindsym l resize grow width 10 px or 10 ppt
  102. bindsym Left resize shrink width 10 px or 10 ppt
  103. bindsym Down resize grow height 10 px or 10 ppt
  104. bindsym Up resize shrink height 10 px or 10 ppt
  105. bindsym Right resize grow width 10 px or 10 ppt
  106. bindsym Return mode "default"
  107. bindsym Escape mode "default"
  108. }
  109. bindsym $mod+r mode "resize"
  110. bar {
  111. position top
  112. status_command "$HOME/vdstatus/vdstatus"
  113. tray_output primary
  114. }
  115. workspace_layout tabbed
  116. new_window pixel 1
  117. new_float pixel 1
  118. hide_edge_borders both
  119. workspace_auto_back_and_forth yes
  120. force_focus_wrapping yes
  121. # rules
  122. # workspace 6 is for always floating
  123. for_window [workspace=6] floating enable
  124. assign [class="Firefox"] 1
  125. assign [class="Steam"] 6
  126. # software
  127. for_window [class="jetbrains-toolbox"] floating enable
  128. for_window [class="Vpnui"] floating enable
  129. for_window [class="Deadbeef"] floating enable
  130. for_window [class="Google-musicmanager"] floating enable
  131. for_window [class="mpv"] floating enable
  132. for_window [class="Pavucontrol"] floating enable
  133. for_window [class="pinentry"] floating enable
  134. for_window [class="plugin-container"] floating enable
  135. for_window [class="Qmmp"] floating enable
  136. for_window [class="Vncviewer"] floating enable
  137. for_window [class="vlc"] floating enable
  138. for_window [class="X64"] floating enable
  139. for_window [class="(?i)firefox" instance="^(?!Navigator$)"] floating enable
  140. for_window [title="^Cacti - Realtime"] floating enable
  141. for_window [class="java-lang-Thread"] floating enable
  142. # scratchpad
  143. for_window [class="keepassxc"] move scratchpad, scratchpad show
  144. for_window [title="^vimwiki$"] move scratchpad, scratchpad show
  145. for_window [class="Vpnui"] move scratchpad, scratchpad show
  146. bindsym $mod+i [class="keepassxc"] scratchpad show
  147. bindsym $mod+n [title="^vimwiki$"] scratchpad show
  148. bindsym $mod+y [class="Vpnui"] scratchpad show
  149. # execs
  150. exec --no-startup-id "$HOME/.autostart"