Advertisement
Guest User

Untitled

a guest
Mar 7th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.56 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 1
  12. new_float normal
  13.  
  14. # runescape
  15. bindsym F11 exec ~/down_click.sh
  16. bindsym F12 exec ~/up_click.sh
  17.  
  18. # Hide borders
  19. hide_edge_borders none
  20.  
  21. # change borders
  22. bindsym $mod+u border none
  23. bindsym $mod+y border pixel 1
  24. bindsym $mod+n border normal
  25.  
  26. # Font for window titles. Will also be used by the bar unless a different font
  27. # is used in the bar {} block below.
  28. font xft:URWGothic-Book 11
  29.  
  30. # Use Mouse+$mod to drag floating windows
  31. floating_modifier $mod
  32.  
  33. # start a terminal
  34. bindsym $mod+Return exec terminal
  35.  
  36. # kill focused window
  37. bindsym $mod+Shift+q kill
  38.  
  39. # start program launcher
  40. bindsym $mod+d exec --no-startup-id dmenu_recency
  41.  
  42. # launch categorized menu
  43. bindsym $mod+z exec --no-startup-id morc_menu
  44.  
  45. ################################################################################################
  46. ## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
  47. ################################################################################################
  48.  
  49. exec --no-startup-id volumeicon
  50. bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
  51. #exec --no-startup-id pulseaudio
  52. #exec --no-startup-id pa-applet
  53. #bindsym $mod+Ctrl+m exec pavucontrol
  54.  
  55. ################################################################################################
  56.  
  57. # Screen brightness controls
  58. # bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
  59. # bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
  60.  
  61. # Start Applications
  62. bindsym $mod+Ctrl+b exec terminal -e 'bmenu'
  63. bindsym $mod+F2 exec palemoon
  64. bindsym $mod+F3 exec pcmanfm
  65. # bindsym $mod+F3 exec ranger
  66. bindsym $mod+Shift+F3 exec gksu pcmanfm
  67. bindsym $mod+F5 exec terminal -e 'mocp'
  68. bindsym $mod+t exec --no-startup-id pkill compton
  69. bindsym $mod+Ctrl+t exec --no-startup-id compton -b
  70. bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
  71. bindsym Print exec --no-startup-id i3-scrot
  72. bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
  73. bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
  74. bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf
  75. bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
  76.  
  77. # focus_follows_mouse no
  78.  
  79. # change focus
  80. bindsym $mod+j focus left
  81. bindsym $mod+k focus down
  82. bindsym $mod+l focus up
  83. bindsym $mod+semicolon focus right
  84.  
  85. # alternatively, you can use the cursor keys:
  86. bindsym $mod+Left focus left
  87. bindsym $mod+Down focus down
  88. bindsym $mod+Up focus up
  89. bindsym $mod+Right focus right
  90.  
  91. # move focused window
  92. bindsym $mod+Shift+j move left
  93. bindsym $mod+Shift+k move down
  94. bindsym $mod+Shift+l move up
  95. bindsym $mod+Shift+semicolon move right
  96.  
  97. # alternatively, you can use the cursor keys:
  98. bindsym $mod+Shift+Left move left
  99. bindsym $mod+Shift+Down move down
  100. bindsym $mod+Shift+Up move up
  101. bindsym $mod+Shift+Right move right
  102.  
  103. # workspace back and forth (with/without active container)
  104. workspace_auto_back_and_forth yes
  105. bindsym $mod+b workspace back_and_forth
  106. bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  107.  
  108. # split orientation
  109. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  110. bindsym $mod+v split v;exec notify-send 'tile vertically'
  111. bindsym $mod+q split toggle
  112.  
  113. # toggle fullscreen mode for the focused container
  114. bindsym $mod+f fullscreen toggle
  115.  
  116. # change container layout (stacked, tabbed, toggle split)
  117. bindsym $mod+s layout stacking
  118. bindsym $mod+w layout tabbed
  119. bindsym $mod+e layout toggle split
  120.  
  121. # toggle tiling / floating
  122. bindsym $mod+Shift+space floating toggle
  123.  
  124. # change focus between tiling / floating windows
  125. bindsym $mod+space focus mode_toggle
  126.  
  127. # toggle sticky
  128. bindsym $mod+Shift+s sticky toggle
  129.  
  130. # focus the parent container
  131. bindsym $mod+a focus parent
  132.  
  133. # move the currently focused window to the scratchpad
  134. bindsym $mod+Shift+minus move scratchpad
  135.  
  136. # Show the next scratchpad window or hide the focused scratchpad window.
  137. # If there are multiple scratchpad windows, this command cycles through them.
  138. bindsym $mod+minus scratchpad show
  139.  
  140. #navigate workspaces next / previous
  141. bindsym $mod+Ctrl+Right workspace next
  142. bindsym $mod+Ctrl+Left workspace prev
  143.  
  144. # Workspace names
  145. # to display names or symbols instead of plain workspace numbers you can use
  146. # something like: set $ws1 1:mail
  147. # set $ws2 2:
  148. set $ws1 1
  149. set $ws2 2
  150. set $ws3 3
  151. set $ws4 4
  152. set $ws5 5
  153. set $ws6 6
  154. set $ws7 7
  155. set $ws8 8
  156.  
  157. # switch to workspace
  158. bindsym $mod+1 workspace $ws1
  159. bindsym $mod+2 workspace $ws2
  160. bindsym $mod+3 workspace $ws3
  161. bindsym $mod+4 workspace $ws4
  162. bindsym $mod+5 workspace $ws5
  163. bindsym $mod+6 workspace $ws6
  164. bindsym $mod+7 workspace $ws7
  165. bindsym $mod+8 workspace $ws8
  166.  
  167. # Move focused container to workspace
  168. bindsym $mod+Ctrl+1 move container to workspace $ws1
  169. bindsym $mod+Ctrl+2 move container to workspace $ws2
  170. bindsym $mod+Ctrl+3 move container to workspace $ws3
  171. bindsym $mod+Ctrl+4 move container to workspace $ws4
  172. bindsym $mod+Ctrl+5 move container to workspace $ws5
  173. bindsym $mod+Ctrl+6 move container to workspace $ws6
  174. bindsym $mod+Ctrl+7 move container to workspace $ws7
  175. bindsym $mod+Ctrl+8 move container to workspace $ws8
  176.  
  177. # Move to workspace with focused container
  178. bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
  179. bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
  180. bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
  181. bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
  182. bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
  183. bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
  184. bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
  185. bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
  186.  
  187. # Open applications on specific workspaces
  188. # assign [class="Thunderbird"] $ws1
  189. # assign [class="Pale moon"] $ws2
  190. # assign [class="Pcmanfm"] $ws3
  191. # assign [class="Skype"] $ws5
  192.  
  193. # Open specific applications in floating mode
  194. for_window [title="alsamixer"] floating enable border pixel 1
  195. for_window [class="calamares"] floating enable border normal
  196. for_window [class="Clipgrab"] floating enable
  197. for_window [title="File Transfer*"] floating enable
  198. for_window [class="Galculator"] floating enable border pixel 1
  199. for_window [class="GParted"] floating enable border normal
  200. for_window [title="i3_help"] floating enable sticky enable border normal
  201. for_window [class="Lightdm-settings"] floating enable
  202. for_window [class="Lxappearance"] floating enable sticky enable border normal
  203. for_window [class="Manjaro-hello"] floating enable
  204. for_window [class="Manjaro Settings Manager"] floating enable border normal
  205. for_window [title="MuseScore: Play Panel"] floating enable
  206. for_window [class="Nitrogen"] floating enable sticky enable border normal
  207. for_window [class="Oblogout"] fullscreen enable
  208. for_window [class="octopi"] floating enable
  209. for_window [title="About Pale Moon"] floating enable
  210. for_window [class="Pamac-manager"] floating enable
  211. for_window [class="Pavucontrol"] floating enable
  212. for_window [class="qt5ct"] floating enable sticky enable border normal
  213. for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
  214. for_window [class="Simple-scan"] floating enable border normal
  215. for_window [class="(?i)System-config-printer.py"] floating enable border normal
  216. for_window [class="Skype"] floating enable border normal
  217. for_window [class="Timeset-gui"] floating enable border normal
  218. for_window [class="(?i)virtualbox"] floating enable border normal
  219. for_window [class="Xfburn"] floating enable
  220.  
  221. # switch to workspace with urgent window automatically
  222. for_window [urgent=latest] focus
  223.  
  224. # reload the configuration file
  225. bindsym $mod+Shift+c reload
  226.  
  227. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  228. bindsym $mod+Shift+r restart
  229.  
  230. # exit i3 (logs you out of your X session)
  231. 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'"
  232.  
  233. # Set shut down, restart and locking features
  234. bindsym $mod+0 mode "$mode_system"
  235. set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
  236. mode "$mode_system" {
  237. bindsym l exec --no-startup-id i3exit lock, mode "default"
  238. bindsym s exec --no-startup-id i3exit suspend, mode "default"
  239. bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  240. bindsym e exec --no-startup-id i3exit logout, mode "default"
  241. bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  242. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  243. bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  244.  
  245. # exit system mode: "Enter" or "Escape"
  246. bindsym Return mode "default"
  247. bindsym Escape mode "default"
  248. }
  249.  
  250. # Resize window (you can also use the mouse for that)
  251. bindsym $mod+r mode "resize"
  252. mode "resize" {
  253. # These bindings trigger as soon as you enter the resize mode
  254. # Pressing left will shrink the window’s width.
  255. # Pressing right will grow the window’s width.
  256. # Pressing up will shrink the window’s height.
  257. # Pressing down will grow the window’s height.
  258. bindsym j resize shrink width 5 px or 5 ppt
  259. bindsym k resize grow height 5 px or 5 ppt
  260. bindsym l resize shrink height 5 px or 5 ppt
  261. bindsym semicolon resize grow width 5 px or 5 ppt
  262.  
  263. # same bindings, but for the arrow keys
  264. bindsym Left resize shrink width 10 px or 10 ppt
  265. bindsym Down resize grow height 10 px or 10 ppt
  266. bindsym Up resize shrink height 10 px or 10 ppt
  267. bindsym Right resize grow width 10 px or 10 ppt
  268.  
  269. # exit resize mode: Enter or Escape
  270. bindsym Return mode "default"
  271. bindsym Escape mode "default"
  272. }
  273.  
  274. # Lock screen
  275. bindsym $mod+9 exec --no-startup-id blurlock
  276.  
  277. # Autostart applications
  278. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  279. exec --no-startup-id nitrogen --restore; sleep 1; compton -b
  280. #exec --no-startup-id manjaro-hello
  281. exec --no-startup-id nm-applet
  282. exec --no-startup-id xfce4-power-manager
  283. exec --no-startup-id pamac-tray
  284. exec --no-startup-id clipit
  285. # exec --no-startup-id blueman-applet
  286. # exec_always --no-startup-id sbxkb
  287. # exec --no-startup-id start_conky_maia
  288. # exec --no-startup-id start_conky_green
  289. exec --no-startup-id xautolock -time 10 -locker blurlock
  290. exec_always --no-startup-id ff-theme-util
  291. exec_always --no-startup-id fix_xcursor
  292.  
  293. # Color palette used for the terminal ( ~/.Xresources file )
  294. # Colors are gathered based on the documentation:
  295. # https://i3wm.org/docs/userguide.html#xresources
  296. # Change the variable name at the place you want to match the color
  297. # of your terminal like this:
  298. # [example]
  299. # If you want your bar to have the same background color as your
  300. # terminal background change the line 362 from:
  301. # background #14191D
  302. # to:
  303. # background $term_background
  304. # Same logic applied to everything else.
  305. set_from_resource $term_background background
  306. set_from_resource $term_foreground foreground
  307. set_from_resource $term_color0 color0
  308. set_from_resource $term_color1 color1
  309. set_from_resource $term_color2 color2
  310. set_from_resource $term_color3 color3
  311. set_from_resource $term_color4 color4
  312. set_from_resource $term_color5 color5
  313. set_from_resource $term_color6 color6
  314. set_from_resource $term_color7 color7
  315. set_from_resource $term_color8 color8
  316. set_from_resource $term_color9 color9
  317. set_from_resource $term_color10 color10
  318. set_from_resource $term_color11 color11
  319. set_from_resource $term_color12 color12
  320. set_from_resource $term_color13 color13
  321. set_from_resource $term_color14 color14
  322. set_from_resource $term_color15 color15
  323.  
  324. # Start i3bar to display a workspace bar (plus the system information i3status if available)
  325. bar {
  326. i3bar_command i3bar
  327. status_command i3status
  328. position bottom
  329.  
  330. ## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
  331. # tray_output primary
  332. # tray_output eDP1
  333.  
  334. bindsym button4 nop
  335. bindsym button5 nop
  336. # font xft:URWGothic-Book 11
  337. strip_workspace_numbers yes
  338.  
  339. colors {
  340. background #222D31
  341. statusline #F9FAF9
  342. separator #454947
  343.  
  344. # border backgr. text
  345. focused_workspace #F9FAF9 #16a085 #292F34
  346. active_workspace #595B5B #353836 #FDF6E3
  347. inactive_workspace #595B5B #222D31 #EEE8D5
  348. binding_mode #16a085 #2C2C2C #F9FAF9
  349. urgent_workspace #16a085 #FDF6E3 #E5201D
  350. }
  351. }
  352.  
  353. # hide/unhide i3status bar
  354. bindsym $mod+m bar mode toggle
  355.  
  356. # Theme colors
  357. # class border backgr. text indic. child_border
  358. client.focused #556064 #556064 #80FFF9 #FDF6E3
  359. client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948
  360. client.unfocused #2F3D44 #2F3D44 #1ABC9C #454948
  361. client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
  362. client.placeholder #000000 #0c0c0c #ffffff #000000
  363.  
  364. client.background #2B2C2B
  365.  
  366. #############################
  367. ### settings for i3-gaps: ###
  368. #############################
  369.  
  370. # Set inner/outer gaps
  371. gaps inner 14
  372. gaps outer -2
  373.  
  374. # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
  375. # gaps inner|outer current|all set|plus|minus <px>
  376. # gaps inner all set 10
  377. # gaps outer all plus 5
  378.  
  379. # Smart gaps (gaps used if only more than one container on the workspace)
  380. smart_gaps on
  381.  
  382. # Smart borders (draw borders around container only if it is not the only container on this workspace)
  383. # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
  384. smart_borders on
  385.  
  386. # 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.
  387. set $mode_gaps Gaps: (o) outer, (i) inner
  388. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  389. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  390. bindsym $mod+Shift+g mode "$mode_gaps"
  391.  
  392. mode "$mode_gaps" {
  393. bindsym o mode "$mode_gaps_outer"
  394. bindsym i mode "$mode_gaps_inner"
  395. bindsym Return mode "default"
  396. bindsym Escape mode "default"
  397. }
  398. mode "$mode_gaps_inner" {
  399. bindsym plus gaps inner current plus 5
  400. bindsym minus gaps inner current minus 5
  401. bindsym 0 gaps inner current set 0
  402.  
  403. bindsym Shift+plus gaps inner all plus 5
  404. bindsym Shift+minus gaps inner all minus 5
  405. bindsym Shift+0 gaps inner all set 0
  406.  
  407. bindsym Return mode "default"
  408. bindsym Escape mode "default"
  409. }
  410. mode "$mode_gaps_outer" {
  411. bindsym plus gaps outer current plus 5
  412. bindsym minus gaps outer current minus 5
  413. bindsym 0 gaps outer current set 0
  414.  
  415. bindsym Shift+plus gaps outer all plus 5
  416. bindsym Shift+minus gaps outer all minus 5
  417. bindsym Shift+0 gaps outer all set 0
  418.  
  419. bindsym Return mode "default"
  420. bindsym Escape mode "default"
  421. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement