ktostupid

config (i3wm1)

May 21st, 2015
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.35 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout some time, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11. # Mod4 = Super key
  12. # Mod1 = Alt key
  13. set $mod Mod4
  14. set $altkey Mod1
  15.  
  16. # Font for window titles. Will also be used by the bar unless a different font
  17. # is used in the bar {} block below.
  18. font pango:Terminus 12
  19.  
  20. # arch blue #1793D1
  21. # debian red #D70A53
  22. # matrix green #00FF00
  23. # ubuntu orange #F37320
  24. set $color #1793D1
  25.  
  26. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  27. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  28. # font pango:DejaVu Sans Mono 8
  29.  
  30. # Before i3 v4.8, we used to recommend this one as the default:
  31. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  32. # The font above is very space-efficient, that is, it looks good, sharp and
  33. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  34. # X core fonts rendering does not support right-to-left and this being a bitmap
  35. # font, it doesn’t scale on retina/hidpi displays.
  36.  
  37. # Use Mouse+$mod to drag floating windows to their wanted position
  38. floating_modifier $mod
  39.  
  40. # kill focused window
  41. bindsym $altkey+q kill
  42.  
  43. # Back and forth workplace switching
  44. workspace_auto_back_and_forth yes
  45.  
  46. #Set window border to 1px
  47. #new_window 1pixel
  48. new_window pixel 2
  49. #new_float 1pixel
  50. new_float pixel 2
  51.  
  52. #--------------------------------------------------------------------------------
  53.  
  54. # start j4-dmenu-desktop background text box color text in box
  55. #bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -p 'Menu' -fn '8x16' '-terminus-medium-r-normal-*-15-140-75-75-c-90-iso10646-1' -nb '#222222' -nf '#888888' -sb '$color' -sf '#FFFFFF'"
  56. # bindsym $mod+d exec dmenu_run
  57. # There also is the (new) i3-dmenu-desktop which only displays applications
  58. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  59. # installed.
  60. bindsym $mod+d exec dmenu_run -fn '-terminus-*-15-140-75-75-c-90-iso10646-1'
  61.  
  62. #--------------------------------------------------------------------------------
  63.  
  64. # change focus
  65. bindsym $mod+j focus left
  66. bindsym $mod+k focus down
  67. bindsym $mod+l focus up
  68. bindsym $mod+semicolon focus right
  69.  
  70. # alternatively, you can use the cursor keys:
  71. bindsym $mod+Left focus left
  72. bindsym $mod+Down focus down
  73. bindsym $mod+Up focus up
  74. bindsym $mod+Right focus right
  75.  
  76. # move focused window
  77. bindsym $mod+Shift+j move left
  78. bindsym $mod+Shift+k move down
  79. bindsym $mod+Shift+l move up
  80. bindsym $mod+Shift+semicolon move right
  81.  
  82. # alternatively, you can use the cursor keys:
  83. bindsym $mod+Shift+Left move left
  84. bindsym $mod+Shift+Down move down
  85. bindsym $mod+Shift+Up move up
  86. bindsym $mod+Shift+Right move right
  87.  
  88. # split in horizontal orientation
  89. bindsym $mod+h split h
  90.  
  91. # split in vertical orientation
  92. bindsym $mod+v split v
  93.  
  94. # enter fullscreen mode for the focused container
  95. bindsym $mod+f fullscreen toggle
  96.  
  97. # change container layout (stacked, tabbed, toggle split)
  98. bindsym $mod+s layout stacking
  99. bindsym $mod+w layout tabbed
  100. bindsym $mod+e layout toggle split
  101.  
  102. # toggle tiling / floating
  103. bindsym $mod+Shift+space floating toggle
  104.  
  105. # change focus between tiling / floating windows
  106. bindsym $mod+space focus mode_toggle
  107.  
  108. # focus the parent container
  109. bindsym $mod+a focus parent
  110.  
  111. # focus the child container
  112. # bindsym $mod+d focus child
  113.  
  114. #--------------------------------------------------------------------------------
  115.  
  116. # Rename workspace with i3-input using numbers and text
  117. bindsym $mod+n exec i3-input -F 'rename workspace to "%s"' -P 'New name for this workspace: '
  118.  
  119. # browser pop-ups
  120. for_window [window_role="pop-up"] floating enable
  121. for_window [class="Vlc|Terminator|Firefox|Pcmanfm|Subl|Gimp"] tiling enable
  122.  
  123. for_window [class="Deadbeef|Gpicview|Keepassx|Truecrypt|Skype|Galculator"] floating enable
  124.  
  125. assign [class="terminator|skype"] → $tag1
  126. assign [class="firefox"] → $tag2
  127. assign [class="pcmanfm|subl"] → $tag3
  128. assign [class="vlc|deadbeef|gpicview"] → $tag4
  129. assign [class="keepassx|truecrypt"] → $tag5
  130. assign [class="gimp"] → $tag6
  131.  
  132. # Name the workspaces
  133. set $tag1 "1: term"
  134. set $tag2 "2: web"
  135. set $tag3 "3: fm"
  136. set $tag4 "4: media"
  137. set $tag5 "5: pass"
  138. set $tag6 "6: gimp"
  139.  
  140. # switch to workspace
  141. bindsym $mod+1 workspace $tag1
  142. bindsym $mod+2 workspace $tag2
  143. bindsym $mod+3 workspace $tag3
  144. bindsym $mod+4 workspace $tag4
  145. bindsym $mod+5 workspace $tag5
  146. bindsym $mod+6 workspace $tag6
  147. bindsym $mod+7 workspace 7
  148. bindsym $mod+8 workspace 8
  149. bindsym $mod+9 workspace 9
  150. bindsym $mod+0 workspace 10
  151.  
  152. # move focused container to workspace
  153. bindsym $mod+Shift+1 move container to workspace $tag1
  154. bindsym $mod+Shift+2 move container to workspace $tag2
  155. bindsym $mod+Shift+3 move container to workspace $tag3
  156. bindsym $mod+Shift+4 move container to workspace $tag4
  157. bindsym $mod+Shift+5 move container to workspace $tag5
  158. bindsym $mod+Shift+6 move container to workspace $tag6
  159. bindsym $mod+Shift+7 move container to workspace 7
  160. bindsym $mod+Shift+8 move container to workspace 8
  161. bindsym $mod+Shift+9 move container to workspace 9
  162. bindsym $mod+Shift+0 move container to workspace 10
  163.  
  164. #--------------------------------------------------------------------------------
  165.  
  166. # reload the configuration file
  167. bindsym $mod+Shift+c reload
  168.  
  169. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  170. bindsym $mod+Shift+r restart
  171.  
  172. # exit i3 (logs you out of your X session)
  173. 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'"
  174.  
  175. #--------------------------------------------------------------------------------
  176.  
  177. # resize window (you can also use the mouse for that)
  178. mode "resize" {
  179. # These bindings trigger as soon as you enter the resize mode
  180.  
  181. # Pressing left will shrink the window’s width.
  182. # Pressing right will grow the window’s width.
  183. # Pressing up will shrink the window’s height.
  184. # Pressing down will grow the window’s height.
  185. bindsym j resize shrink width 10 px or 10 ppt
  186. bindsym k resize grow height 10 px or 10 ppt
  187. bindsym l resize shrink height 10 px or 10 ppt
  188. bindsym semicolon resize grow width 10 px or 10 ppt
  189.  
  190. # same bindings, but for the arrow keys
  191. bindsym Left resize shrink width 10 px or 10 ppt
  192. bindsym Down resize grow height 10 px or 10 ppt
  193. bindsym Up resize shrink height 10 px or 10 ppt
  194. bindsym Right resize grow width 10 px or 10 ppt
  195.  
  196. # back to normal: Enter or Escape
  197. bindsym Return mode "default"
  198. bindsym Escape mode "default"
  199. }
  200.  
  201. bindsym $mod+r mode "resize"
  202.  
  203. #--------------------------------------------------------------------------------
  204.  
  205. # Start i3bar to display a workspace bar with information
  206. bar {
  207. tray_output primary
  208. # arch linux colors
  209. colors {
  210. background #222222
  211. statusline #dddddd
  212. separator #666666
  213.  
  214. # class border backgr text
  215. focused_workspace $color $color #ffffff
  216. active_workspace #333333 #333333 #888888
  217. inactive_workspace #333333 #333333 #888888
  218. urgent_workspace #900000 #900000 #ffffff
  219. }
  220.  
  221. # Using Conky
  222. #status_command conky -c ~/.conkyrc
  223. status_command /home/stupid/.i3/conkyi3.sh
  224. position top #bottom
  225. }
  226.  
  227. #--------------------------------------------------------------------------------
  228.  
  229. # arch linux colors
  230. # class border backgr text
  231. client.focused $color $color #ffffff
  232. client.focused_inactive #333333 #333333 #888888
  233. client.unfocused #333333 #333333 #888888
  234. client.urgent #900000 #900000 #ffffff
  235.  
  236. #--------------------------------------------------------------------------------
  237.  
  238. # Startup programs
  239. # exec --no-startup-id "devmon --no-gui" # Starts damon for urxvtc
  240. exec --no-startup-id nitrogen --restore
  241. exec --no-startup-id lxpanel
  242. exec --no-startup-id gxkb
  243. exec --no-startup-id pnmixer
  244. exec --no-startup-id skype
  245.  
  246. #--------------------------------------------------------------------------------
  247.  
  248. # Custom KeyBinds
  249. bindsym $altkey+c exec scrot '%Y-%m-%d-%T.png' -e 'mv $f ~/Изображения/screen'
  250. bindsym $altkey+t exec --no-startup-id i3-msg workspace $tag1 && pgrep terminator || terminator
  251. bindsym $altkey+w exec --no-startup-id i3-msg workspace $tag2 && pgrep firefox || firefox
  252. bindsym $altkey+f exec --no-startup-id i3-msg workspace $tag3 && pgrep pcmanfm || pcmanfm
  253. bindsym $altkey+g exec --no-startup-id i3-msg workspace $tag3 && pgrep subl || subl
  254. bindsym $altkey+v exec --no-startup-id i3-msg workspace $tag4 && pgrep vlc || vlc
  255. bindsym $altkey+m exec --no-startup-id i3-msg workspace $tag4 && pgrep deadbeef || deadbeef
  256. bindsym $altkey+k exec --no-startup-id i3-msg workspace $tag5 && pgrep keepassx || keepassx
  257. bindsym $altkey+j exec --no-startup-id i3-msg workspace $tag5 && pgrep truecrypt || truecrypt
  258. bindsym $altkey+p exec --no-startup-id i3-msg workspace $tag6 && pgrep gimp || gimp
  259. #bindsym $mod+Shift+m exec --no-startup-id ~/bin/startup_minecraft.sh
  260. #bindsym $mod+Shift+x exec --no-startup-id lxappearance
  261.  
  262. #--------------------------------------------------------------------------------
  263.  
  264. # Multimedia Keys
  265.  
  266.  
  267. #--------------------------------------------------------------------------------
  268.  
  269. # Shutdown, Reboot, Lock Screen, and Logout #657b83
  270. set $sysmenu "system: [P]oweroff re[B]oot [L]ock logou[T] "
  271. bindsym $mod+Shift+Return mode $sysmenu
  272. mode $sysmenu {
  273. bindsym p exec shutdown -P now
  274. bindsym b exec shutdown -r now
  275. bindsym l exec sh ~/.i3/i3lock.sh, mode "default"
  276. bindsym t exec --no-startup-id i3-msg exit, mode "default"
  277. bindsym Return mode "default"
  278. bindsym Escape mode "default"
  279. }
  280.  
  281. #--------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment