Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.57 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 default
  9.  
  10. # Configure border style <normal|1pixel|pixel xx|none|pixel>
  11. new_window pixel 4
  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+Shift+Return exec termite
  31. bindsym $mod+Return exec guake
  32.  
  33. # kill focused window
  34. bindsym $mod+Shift+q kill
  35.  
  36. # start program launcher
  37. bindsym $mod+d exec --no-startup-id dmenu_recency
  38.  
  39. ################################################################################################
  40. ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
  41. ################################################################################################
  42.  
  43. exec --no-startup-id volumeicon
  44. bindsym $mod+Ctrl+m exec termite -e 'alsamixer'
  45. #exec --no-startup-id pulseaudio
  46. #exec --no-startup-id pa-applet
  47. #bindsym $mod+Ctrl+m exec pavucontrol
  48.  
  49. ################################################################################################
  50.  
  51. # Screen brightness controls
  52. # bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
  53. # bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
  54. bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness
  55. bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness
  56.  
  57. # Start Applications
  58. bindsym $mod+Ctrl+b exec termite -e 'bmenu'
  59. bindsym $mod+F1 exec angrysearch
  60. bindsym $mod+F2 exec firefox
  61. bindsym $mod+Shift+F2 exec claws-mail
  62. bindsym $mod+Shift+Ctrl+F2 exec hexchat
  63. bindsym $mod+F3 exec thunar
  64. bindsym $mod+Shift+F3 exec gksu thunar
  65. bindsym $mod+Ctrl+F3 exec termite -e 'mc'
  66. bindsym $mod+Ctrl+Shift+F3 exec termite -e 'sudo mc'
  67. bindsym $mod+F4 exec pamac-manager
  68. bindsym $mod+F5 exec termite -e 'mocp'
  69. bindsym $mod+F11 exec termite -e 'nmtui'
  70. bindsym $mod+F12 exec termite -e 'htop'
  71. bindsym $mod+F9 exec termite -e 'screen ssh -Y 10.42.0.136'
  72. bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
  73. bindsym Print exec "scrot -e 'mv $f ~/Screenshots'; sleep 1; exec notify-send 'screenshot has been saved to ~/Screenshots'"
  74. bindsym $mod+Print --release exec "scrot -ue 'mv $f ~/Screenshots'; sleep 1; exec notify-send 'screenshot has been saved to ~/Screenshots'"
  75. bindsym $mod+Shift+Print --release exec "notify-send 'selection will be saved to ~/Screenshots'; scrot -se 'mv $f ~/Screenshots'"
  76. bindsym $mod+Shift+h exec qpdfview ~/pdfs/i3_help.pdf
  77. bindsym $mod+Ctrl+x exec xkill
  78.  
  79. #quran stuff
  80. bindsym $mod+Shift+0 exec termite 'zekr'
  81.  
  82. focus_follows_mouse yes
  83.  
  84. # change focus
  85. bindsym $mod+j focus left
  86. bindsym $mod+k focus down
  87. bindsym $mod+l focus up
  88. bindsym $mod+odiaeresis focus right
  89.  
  90. # alternatively, you can use the cursor keys:
  91. bindsym $mod+Left focus left
  92. bindsym $mod+Down focus down
  93. bindsym $mod+Up focus up
  94. bindsym $mod+Right focus right
  95.  
  96. # move focused window
  97. bindsym $mod+Shift+j move left
  98. bindsym $mod+Shift+k move down
  99. bindsym $mod+Shift+l move up
  100. bindsym $mod+Shift+odiaeresis move right
  101.  
  102. # alternatively, you can use the cursor keys:
  103. bindsym $mod+Shift+Left move left
  104. bindsym $mod+Shift+Down move down
  105. bindsym $mod+Shift+Up move up
  106. bindsym $mod+Shift+Right move right
  107.  
  108. # workspace back and forth (with/without active container)
  109. workspace_auto_back_and_forth yes
  110. bindsym $mod+b workspace back_and_forth
  111. bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  112.  
  113. # split in horizontal orientation
  114. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  115.  
  116. # split in vertical orientation
  117. bindsym $mod+v split v;exec notify-send 'tile vertically'
  118.  
  119. # toggle fullscreen mode for the focused container
  120. bindsym $mod+f fullscreen toggle
  121.  
  122. # change container layout (stacked, tabbed, toggle split)
  123. bindsym $mod+s layout stacking
  124. bindsym $mod+w layout tabbed
  125. bindsym $mod+e layout toggle split
  126.  
  127. # toggle tiling / floating
  128. bindsym $mod+Shift+space floating toggle
  129.  
  130. # change focus between tiling / floating windows
  131. bindsym $mod+space focus mode_toggle
  132.  
  133. # toggle sticky
  134. bindsym $mod+Shift+s sticky toggle
  135.  
  136. # focus the parent container
  137. bindsym $mod+a focus parent
  138.  
  139. # Workspace names
  140. set $ws1 1:
  141. set $ws2 2:
  142. set $ws3 3:
  143. set $ws3 4:
  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 8
  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 8
  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 8; workspace 8
  178.  
  179. # Open applications on specific workspaces
  180. # assign [class="Thunderbird"] 1
  181. # assign [class="Pale moon"] 2
  182. # assign [class="Pcmanfm"] 3
  183. # assign [class="Skype"] 5
  184.  
  185. # Open specific applications in floating mode
  186. #for_window [title="alsamixer"] floating enable border pixel 2
  187. #for_window [class="Calamares"] floating enable border normal
  188. #for_window [class="Clipgrab"] floating enable
  189. #for_window [title="File Transfer*"] floating enable
  190. #for_window [class="Galculator"] floating enable border pixel 2
  191. #for_window [class="GParted"] floating enable border normal
  192. #for_window [title="i3_help"] floating enable sticky enable border normal
  193. #for_window [class="Lightdm-gtk-greeter-settings"] floating enable
  194. #for_window [class="Lxappearance"] floating enable sticky enable border normal
  195. #for_window [class="manjaro-settings-manager-gui"] floating enable border normal
  196. #for_window [class="Manjaro Welcome"] floating enable
  197. #for_window [title="MuseScore: Play Panel"] floating enable
  198. #for_window [class="Nitrogen"] floating enable sticky enable border normal
  199. #for_window [class="Oblogout"] fullscreen enable
  200. #for_window [class="octopi"] floating enable
  201. #for_window [class="Pamac-manager"] floating enable
  202. #for_window [class="Pamac-updater"] floating enable
  203. #for_window [class="Pavucontrol"] floating enable
  204. #for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
  205. #for_window [class="Simple-scan"] floating enable border normal
  206. #for_window [class="(?i)System-config-printer.py"] floating enable border normal
  207. #for_window [class="Skype"] floating enable border normal
  208. #for_window [class="Thus"] floating enable border normal
  209. #for_window [class="Timeset-gui"] floating enable border normal
  210. #for_window [class="(?i)virtualbox"] floating enable border normal
  211.  
  212. # switch to workspace with urgent window automatically
  213. for_window [urgent=latest] focus
  214.  
  215. # reload the configuration file
  216. bindsym $mod+Shift+c reload
  217.  
  218. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  219. bindsym $mod+Shift+r restart
  220.  
  221. # exit i3 (logs you out of your X session)
  222. 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'"
  223.  
  224. # Set shut down, restart and locking features
  225. bindsym $mod+0 mode "$mode_system"
  226. set $mode_system (l)ock, (e)xit, switch_(u)ser, (r)eboot, (s)hutdown
  227. mode "$mode_system" {
  228. bindsym l exec --no-startup-id xautolock -locknow, mode "default"
  229. #bindsym s exec --no-startup-id i3exit suspend, mode "default"
  230. bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  231. bindsym e exec --no-startup-id i3exit logout, mode "default"
  232. #bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  233. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  234. bindsym s exec --no-startup-id i3exit shutdown, mode "default"
  235.  
  236. # exit system mode: "Enter" or "Escape"
  237. bindsym Return mode "default"
  238. bindsym Escape mode "default"
  239. }
  240.  
  241. # Resize window (you can also use the mouse for that)
  242. bindsym $mod+r mode "resize"
  243. mode "resize" {
  244. # These bindings trigger as soon as you enter the resize mode
  245. # Pressing left will shrink the window’s width.
  246. # Pressing right will grow the window’s width.
  247. # Pressing up will shrink the window’s height.
  248. # Pressing down will grow the window’s height.
  249. bindsym j resize shrink width 5 px or 5 ppt
  250. bindsym k resize grow height 5 px or 5 ppt
  251. bindsym l resize shrink height 5 px or 5 ppt
  252. bindsym odiaeresis resize grow width 5 px or 5 ppt
  253.  
  254. # same bindings, but for the arrow keys
  255. bindsym Left resize shrink width 10 px or 10 ppt
  256. bindsym Down resize grow height 10 px or 10 ppt
  257. bindsym Up resize shrink height 10 px or 10 ppt
  258. bindsym Right resize grow width 10 px or 10 ppt
  259.  
  260. # exit resize mode: Enter or Escape
  261. bindsym Return mode "default"
  262. bindsym Escape mode "default"
  263. }
  264.  
  265. # Lock screen
  266. bindsym $mod+9 exec --no-startup-id i3lock
  267.  
  268. # Start i3bar to display a workspace bar (plus the system information i3status if available)
  269. bar {
  270. modifier Mod4
  271. status_command i3status
  272. # wheel_up_cmd nop
  273. # wheel_down_cmd nop
  274. font pango:Icons 14
  275. separator_symbol "||"
  276. tray_padding 0
  277. colors {
  278. separator #f6f307
  279. background #230967
  280. statusline #f6f307
  281. # border bg text
  282. focused_workspace #f6f307 #0000FF #f6f307
  283. active_workspace #000000 #A4A28D #FFFFFF
  284. inactive_workspace #A4A28D #000000 #DDDDDD
  285. urgent_workspace #2ECC71 #900000 #FFFFFF
  286. }
  287. }
  288.  
  289. # Autostart applications
  290. exec --no-startup-id guake
  291. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  292. exec --no-startup-id nm-applet
  293. exec --no-startup-id xfce4-power-manager
  294. exec --no-startup-id clipit
  295. exec --no-startup-id xautolock -time 15 -locker 'i3lock -u -c 222222'
  296.  
  297. # popup in fullscreen mode
  298. popup_during_fullscreen smart
  299.  
  300. # Theme colors
  301. # class border backg text indicator
  302. client.focused #0000FF #0000FF #000000 #FF0000
  303. client.unfocused #222222 #222222 #2ECC71 #222222
  304. client.urgent #274D01 #900000 #FFFFFF #900000
  305.  
  306. #############################
  307. ### settings for i3-gaps: ###
  308. #############################
  309.  
  310. # Disable window titlebars entirely
  311. for_window [class="^.*"] border pixel 3
  312.  
  313. # Set inner/outer gaps
  314. gaps inner 0
  315. gaps outer 0
  316.  
  317. # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
  318. # gaps inner|outer current|all set|plus|minus <px>
  319. # gaps inner all set 10
  320. # gaps outer all plus 5
  321.  
  322. # Smart gaps (gaps used if only more than one container on the workspace)
  323. #smart_gaps on
  324.  
  325. # Smart borders (draw borders around container only if it is not the only container on this workspace)
  326. # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
  327. #smart_borders on
  328.  
  329. # 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.
  330. set $mode_gaps Gaps: (o) outer, (i) inner
  331. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  332. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  333. bindsym $mod+Shift+g mode "$mode_gaps"
  334.  
  335. mode "$mode_gaps" {
  336. bindsym o mode "$mode_gaps_outer"
  337. bindsym i mode "$mode_gaps_inner"
  338. bindsym Return mode "default"
  339. bindsym Escape mode "default"
  340. }
  341. mode "$mode_gaps_inner" {
  342. bindsym plus gaps inner current plus 5
  343. bindsym minus gaps inner current minus 5
  344. bindsym 0 gaps inner current set 0
  345.  
  346. bindsym Shift+plus gaps inner all plus 5
  347. bindsym Shift+minus gaps inner all minus 5
  348. bindsym Shift+0 gaps inner all set 0
  349.  
  350. bindsym Return mode "default"
  351. bindsym Escape mode "default"
  352. }
  353. mode "$mode_gaps_outer" {
  354. bindsym plus gaps outer current plus 5
  355. bindsym minus gaps outer current minus 5
  356. bindsym 0 gaps outer current set 0
  357.  
  358. bindsym Shift+plus gaps outer all plus 5
  359. bindsym Shift+minus gaps outer all minus 5
  360. bindsym Shift+0 gaps outer all set 0
  361.  
  362. bindsym Return mode "default"
  363. bindsym Escape mode "default"
  364. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement