Guest User

Untitled

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