Advertisement
Guest User

Untitled

a guest
Feb 1st, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.08 KB | None | 0 0
  1. # i3 config file (v4)
  2. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  3.  
  4. # Set mod key (Mod1=<Alt>, Mod4=<Super>)
  5. set $mod Mod4
  6.  
  7. # set default desktop layout (default is tiling)
  8. # workspace_layout tabbed <stacking|tabbed>
  9.  
  10. # Configure border style <normal|1pixel|pixel xx|none|pixel>
  11. new_window pixel 2
  12. new_float normal
  13.  
  14. # Hide borders
  15. hide_edge_borders none
  16.  
  17. # change borders
  18. bindsym $mod+u border none
  19. bindsym $mod+y border pixel 2
  20. bindsym $mod+n border normal
  21.  
  22. # Font for window titles. Will also be used by the bar unless a different font
  23. # is used in the bar {} block below.
  24. font pango:Cantarell 9
  25.  
  26. # Use Mouse+$mod to drag floating windows
  27. floating_modifier $mod
  28.  
  29. # start a terminal
  30. bindsym $mod+Return exec terminal
  31.  
  32. # kill focused window
  33. bindsym $mod+Shift+q kill
  34.  
  35. # start program launcher
  36. bindsym $mod+d exec --no-startup-id dmenu_recency
  37.  
  38. ################################################################################################
  39. ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
  40. ################################################################################################
  41.  
  42. exec --no-startup-id volumeicon
  43. bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
  44. #exec --no-startup-id pulseaudio
  45. #exec --no-startup-id pa-applet
  46. #bindsym $mod+Ctrl+m exec pavucontrol
  47.  
  48. ################################################################################################
  49.  
  50. # Screen brightness controls
  51. # bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
  52. # bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
  53.  
  54. # Start Applications
  55. bindsym $mod+Ctrl+b exec terminal -e 'bmenu'
  56. bindsym $mod+F2 exec palemoon
  57. bindsym $mod+F3 exec pcmanfm
  58. # bindsym $mod+F3 exec ranger
  59. bindsym $mod+Shift+F3 exec gksu pcmanfm
  60. bindsym $mod+F5 exec terminal -e 'mocp'
  61. bindsym $mod+t exec --no-startup-id pkill compton
  62. bindsym $mod+Ctrl+t exec --no-startup-id compton -b
  63. bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
  64. bindsym Print exec "scrot -e 'mv $f ~/Screenshots'; sleep 1; exec notify-send 'screenshot has been saved to ~/Screenshots'"
  65. bindsym $mod+Print --release exec "scrot -ue 'mv $f ~/Screenshots'; sleep 1; exec notify-send 'screenshot has been saved to ~/Screenshots'"
  66. bindsym $mod+Shift+Print --release exec "notify-send 'selection will be saved to ~/Screenshots'; scrot -se 'mv $f ~/Screenshots'"
  67. bindsym $mod+Shift+h exec qpdfview i3_help.pdf
  68. bindsym $mod+Ctrl+x exec xkill
  69.  
  70. # focus_follows_mouse no
  71.  
  72. # change focus
  73. bindsym $mod+j focus left
  74. bindsym $mod+k focus down
  75. bindsym $mod+l focus up
  76. bindsym $mod+odiaeresis focus right
  77.  
  78. # alternatively, you can use the cursor keys:
  79. bindsym $mod+Left focus left
  80. bindsym $mod+Down focus down
  81. bindsym $mod+Up focus up
  82. bindsym $mod+Right focus right
  83.  
  84. # move focused window
  85. bindsym $mod+Shift+j move left
  86. bindsym $mod+Shift+k move down
  87. bindsym $mod+Shift+l move up
  88. bindsym $mod+Shift+odiaeresis move right
  89.  
  90. # alternatively, you can use the cursor keys:
  91. bindsym $mod+Shift+Left move left
  92. bindsym $mod+Shift+Down move down
  93. bindsym $mod+Shift+Up move up
  94. bindsym $mod+Shift+Right move right
  95.  
  96. # workspace back and forth (with/without active container)
  97. workspace_auto_back_and_forth yes
  98. bindsym $mod+b workspace back_and_forth
  99. bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  100.  
  101. # split in horizontal orientation
  102. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  103.  
  104. # split in vertical orientation
  105. bindsym $mod+v split v;exec notify-send 'tile vertically'
  106.  
  107. # toggle fullscreen mode for the focused container
  108. bindsym $mod+f fullscreen toggle
  109.  
  110. # change container layout (stacked, tabbed, toggle split)
  111. bindsym $mod+s layout stacking
  112. bindsym $mod+w layout tabbed
  113. bindsym $mod+e layout toggle split
  114.  
  115. # toggle tiling / floating
  116. bindsym $mod+Shift+space floating toggle
  117.  
  118. # change focus between tiling / floating windows
  119. bindsym $mod+space focus mode_toggle
  120.  
  121. # toggle sticky
  122. bindsym $mod+Shift+s sticky toggle
  123.  
  124. # focus the parent container
  125. bindsym $mod+a focus parent
  126.  
  127. # Workspace names
  128. # set $ws1 1:
  129. # set $ws2 2:
  130. # set $ws3 3:
  131. # set $ws3 4:
  132.  
  133. # switch to workspace
  134. bindsym $mod+1 workspace 1
  135. bindsym $mod+2 workspace 2
  136. bindsym $mod+3 workspace 3
  137. bindsym $mod+4 workspace 4
  138. bindsym $mod+5 workspace 5
  139. bindsym $mod+6 workspace 6
  140. bindsym $mod+7 workspace 7
  141. bindsym $mod+8 workspace 8
  142.  
  143. #navigate workspaces next / previous
  144. bindsym $mod+Ctrl+Right workspace next
  145. bindsym $mod+Ctrl+Left workspace prev
  146.  
  147. # Move focused container to workspace
  148. bindsym $mod+Ctrl+1 move container to workspace number 1
  149. bindsym $mod+Ctrl+2 move container to workspace number 2
  150. bindsym $mod+Ctrl+3 move container to workspace number 3
  151. bindsym $mod+Ctrl+4 move container to workspace number 4
  152. bindsym $mod+Ctrl+5 move container to workspace number 5
  153. bindsym $mod+Ctrl+6 move container to workspace number 6
  154. bindsym $mod+Ctrl+7 move container to workspace number 7
  155. bindsym $mod+Ctrl+8 move container to workspace number 8
  156.  
  157. # Move to workspace with focused container
  158. bindsym $mod+Shift+1 move container to workspace number 1; workspace 1
  159. bindsym $mod+Shift+2 move container to workspace number 2; workspace 2
  160. bindsym $mod+Shift+3 move container to workspace number 3; workspace 3
  161. bindsym $mod+Shift+4 move container to workspace number 4; workspace 4
  162. bindsym $mod+Shift+5 move container to workspace number 5; workspace 5
  163. bindsym $mod+Shift+6 move container to workspace number 6; workspace 6
  164. bindsym $mod+Shift+7 move container to workspace number 7; workspace 7
  165. bindsym $mod+Shift+8 move container to workspace number 8; workspace 8
  166.  
  167. # Open applications on specific workspaces
  168. # assign [class="Thunderbird"] 1
  169. # assign [class="Pale moon"] 2
  170. # assign [class="Pcmanfm"] 3
  171. # assign [class="Skype"] 5
  172.  
  173. # Open specific applications in floating mode
  174. for_window [title="alsamixer"] floating enable border pixel 2
  175. for_window [class="Calamares"] floating enable border normal
  176. for_window [class="Clipgrab"] floating enable
  177. for_window [title="File Transfer*"] floating enable
  178. for_window [class="Galculator"] floating enable border pixel 2
  179. for_window [class="GParted"] floating enable border normal
  180. for_window [title="i3_help"] floating enable sticky enable border normal
  181. for_window [class="Lightdm-gtk-greeter-settings"] floating enable
  182. for_window [class="Lxappearance"] floating enable sticky enable border normal
  183. for_window [class="manjaro-settings-manager-gui"] floating enable border normal
  184. for_window [class="Manjaro Welcome"] floating enable
  185. for_window [title="MuseScore: Play Panel"] floating enable
  186. for_window [class="Nitrogen"] floating enable sticky enable border normal
  187. for_window [class="Oblogout"] fullscreen enable
  188. for_window [class="octopi"] floating enable
  189. for_window [class="Pamac-manager"] floating enable
  190. for_window [class="Pavucontrol"] floating enable
  191. for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
  192. for_window [class="Simple-scan"] floating enable border normal
  193. for_window [class="(?i)System-config-printer.py"] floating enable border normal
  194. for_window [class="Skype"] floating enable border normal
  195. for_window [class="Thus"] floating enable border normal
  196. for_window [class="Timeset-gui"] floating enable border normal
  197. for_window [class="(?i)virtualbox"] floating enable border normal
  198.  
  199. # switch to workspace with urgent window automatically
  200. for_window [urgent=latest] focus
  201.  
  202. # reload the configuration file
  203. bindsym $mod+Shift+c reload
  204.  
  205. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  206. bindsym $mod+Shift+r restart
  207.  
  208. # exit i3 (logs you out of your X session)
  209. 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'"
  210.  
  211. # Set shut down, restart and locking features
  212. bindsym $mod+0 mode "$mode_system"
  213. set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
  214. mode "$mode_system" {
  215. bindsym l exec --no-startup-id i3exit lock, mode "default"
  216. bindsym s exec --no-startup-id i3exit suspend, mode "default"
  217. bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  218. bindsym e exec --no-startup-id i3exit logout, mode "default"
  219. bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  220. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  221. bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  222.  
  223. # exit system mode: "Enter" or "Escape"
  224. bindsym Return mode "default"
  225. bindsym Escape mode "default"
  226. }
  227.  
  228. # Resize window (you can also use the mouse for that)
  229. bindsym $mod+r mode "resize"
  230. mode "resize" {
  231. # These bindings trigger as soon as you enter the resize mode
  232. # Pressing left will shrink the window’s width.
  233. # Pressing right will grow the window’s width.
  234. # Pressing up will shrink the window’s height.
  235. # Pressing down will grow the window’s height.
  236. bindsym j resize shrink width 5 px or 5 ppt
  237. bindsym k resize grow height 5 px or 5 ppt
  238. bindsym l resize shrink height 5 px or 5 ppt
  239. bindsym odiaeresis resize grow width 5 px or 5 ppt
  240.  
  241. # same bindings, but for the arrow keys
  242. bindsym Left resize shrink width 10 px or 10 ppt
  243. bindsym Down resize grow height 10 px or 10 ppt
  244. bindsym Up resize shrink height 10 px or 10 ppt
  245. bindsym Right resize grow width 10 px or 10 ppt
  246.  
  247. # exit resize mode: Enter or Escape
  248. bindsym Return mode "default"
  249. bindsym Escape mode "default"
  250. }
  251.  
  252. # Lock screen
  253. bindsym $mod+9 exec --no-startup-id blurlock
  254.  
  255. # Start i3bar to display a workspace bar (plus the system information i3status if available)
  256. bar {
  257. status_command i3status
  258. # wheel_up_cmd nop
  259. # wheel_down_cmd nop
  260. font pango:Cantarell,Icons 9
  261. colors {
  262. separator #2ECC71
  263. background #000000
  264. statusline #DDDDDD
  265. focused_workspace #FFFFFF #2ECC71 #000000
  266. active_workspace #000000 #A4A28D #FFFFFF
  267. inactive_workspace #A4A28D #000000 #DDDDDD
  268. urgent_workspace #2ECC71 #900000 #FFFFFF
  269. }
  270. }
  271.  
  272. # Autostart applications
  273. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  274. exec --no-startup-id nitrogen --restore
  275. exec --no-startup-id nm-applet
  276. exec --no-startup-id xfce4-power-manager
  277. exec --no-startup-id pamac-tray
  278. exec --no-startup-id clipit
  279. # exec --no-startup-id blueman
  280. # exec_always --no-startup-id sbxkb
  281. exec --no-startup-id compton -b
  282. exec --no-startup-id start_conky_grey
  283. # exec --no-startup-id start_conky_green
  284. exec --no-startup-id xautolock -time 10 -locker blurlock
  285.  
  286. # Theme colors
  287. client.focused #2ECC71 #2ECC71 #000000 #FFFFFF
  288. client.unfocused #222222 #222222 #2ECC71 #222222
  289. client.urgent #274D01 #900000 #FFFFFF #900000
  290.  
  291. #############################
  292. ### settings for i3-gaps: ###
  293. #############################
  294.  
  295. # Disable window titlebars entirely
  296. for_window [class="^.*"] border pixel 2
  297.  
  298. # Set inner/outer gaps
  299. gaps inner 10
  300. gaps outer 0
  301.  
  302. # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
  303. # gaps inner|outer current|all set|plus|minus <px>
  304. # gaps inner all set 10
  305. # gaps outer all plus 5
  306.  
  307. # Smart gaps (gaps used if only more than one container on the workspace)
  308. smart_gaps on
  309.  
  310. # Smart borders (draw borders around container only if it is not the only container on this workspace)
  311. # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
  312. smart_borders on
  313.  
  314. # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
  315. set $mode_gaps Gaps: (o) outer, (i) inner
  316. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  317. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  318. bindsym $mod+Shift+g mode "$mode_gaps"
  319.  
  320. mode "$mode_gaps" {
  321. bindsym o mode "$mode_gaps_outer"
  322. bindsym i mode "$mode_gaps_inner"
  323. bindsym Return mode "default"
  324. bindsym Escape mode "default"
  325. }
  326. mode "$mode_gaps_inner" {
  327. bindsym plus gaps inner current plus 5
  328. bindsym minus gaps inner current minus 5
  329. bindsym 0 gaps inner current set 0
  330.  
  331. bindsym Shift+plus gaps inner all plus 5
  332. bindsym Shift+minus gaps inner all minus 5
  333. bindsym Shift+0 gaps inner all set 0
  334.  
  335. bindsym Return mode "default"
  336. bindsym Escape mode "default"
  337. }
  338. mode "$mode_gaps_outer" {
  339. bindsym plus gaps outer current plus 5
  340. bindsym minus gaps outer current minus 5
  341. bindsym 0 gaps outer current set 0
  342.  
  343. bindsym Shift+plus gaps outer all plus 5
  344. bindsym Shift+minus gaps outer all minus 5
  345. bindsym Shift+0 gaps outer all set 0
  346.  
  347. bindsym Return mode "default"
  348. bindsym Escape mode "default"
  349. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement