Guest User

Untitled

a guest
Nov 19th, 2016
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.96 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. # Hide borders
  15. hide_edge_borders none
  16.  
  17. # change borders
  18. bindsym $mod+u border none
  19. bindsym $mod+y border pixel 1
  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 10
  25.  
  26. # Use Mouse+$mod to drag floating windows
  27. floating_modifier $mod
  28.  
  29. # start a terminal
  30. bindsym $mod+Return exec xfce4-terminal
  31.  
  32. # kill focused window
  33. bindsym $mod+Shift+q kill
  34.  
  35. # start program launcher
  36. #bindsym $mod+d exec rofi -show run
  37. bindsym $mod+d exec rofi -show run -font "monospace 10" -fg "#505050" -bg "#000000" -hlfg "#ffb964" -hlbg "#000000" -o 85 -opacity 85
  38. #bindsym $mod+d exec rofi -show run -lines 5 -eh 2 -width 1440 -padding 300 -opacity 100 -bw 30 -bc "#2f343f" -bg "#2f343f" -fg "#f2f1f4" -hlfg "#887AAC" -font "System San Francisco Display 12"
  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+i exec gksu calamares
  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_live.pdf
  75. bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
  76. bindsym $mod+g exec chromium
  77. bindsym $mod+t exec thunar
  78. bindsym $mod+m exec mousepad
  79. bindsym $mod+o exec opera
  80. bindsym $mod+p exec thunderbird
  81.  
  82.  
  83. # focus_follows_mouse no
  84.  
  85. # change focus
  86. bindsym $mod+j focus left
  87. bindsym $mod+k focus down
  88. bindsym $mod+l focus up
  89. bindsym $mod+odiaeresis focus right
  90.  
  91. # alternatively, you can use the cursor keys:
  92. bindsym $mod+Left focus left
  93. bindsym $mod+Down focus down
  94. bindsym $mod+Up focus up
  95. bindsym $mod+Right focus right
  96.  
  97. # move focused window
  98. bindsym $mod+Shift+j move left
  99. bindsym $mod+Shift+k move down
  100. bindsym $mod+Shift+l move up
  101. bindsym $mod+Shift+odiaeresis move right
  102.  
  103. # alternatively, you can use the cursor keys:
  104. bindsym $mod+Shift+Left move left
  105. bindsym $mod+Shift+Down move down
  106. bindsym $mod+Shift+Up move up
  107. bindsym $mod+Shift+Right move right
  108.  
  109. # workspace back and forth (with/without active container)
  110. workspace_auto_back_and_forth yes
  111. bindsym $mod+b workspace back_and_forth
  112. bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  113.  
  114. # split orientation
  115. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  116. bindsym $mod+v split v;exec notify-send 'tile vertically'
  117. bindsym $mod+q split toggle
  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. # move the currently focused window to the scratchpad
  140. bindsym $mod+Shift+minus move scratchpad
  141.  
  142. # Show the next scratchpad window or hide the focused scratchpad window.
  143. # If there are multiple scratchpad windows, this command cycles through them.
  144. bindsym $mod+minus scratchpad show
  145.  
  146. # Workspace names
  147. # set $ws1 1:
  148. # set $ws2 2:
  149. # set $ws3 3:
  150. # set $ws3 4:
  151.  
  152. set $base00 #101218
  153. set $base01 #1f222d
  154. set $base02 #252936
  155. set $base03 #7780a1
  156. set $base04 #C0C5CE
  157. set $base05 #d1d4e0
  158. set $base06 #C9CCDB
  159. set $base07 #ffffff
  160. set $base08 #ee829f
  161. set $base09 #f99170
  162. set $base0A #ffefcc
  163. set $base0B #a5ffe1
  164. set $base0C #97e0ff
  165. set $base0D #97bbf7
  166. set $base0E #c0b7f9
  167. set $base0F #fcc09e
  168.  
  169. set $workspace1 "1:"
  170. set $workspace2 "2:"
  171. set $workspace3 "3:"
  172. set $workspace4 "4:"
  173. set $workspace5 "5:"
  174. set $workspace6 "6:"
  175. set $workspace7 "7:"
  176. set $workspace8 "8:"
  177. #set $workspace9 "9:"
  178. #set $workspace10 "10:"
  179.  
  180. # switch to workspace
  181. bindsym $mod+1 workspace $workspace1
  182. bindsym $mod+2 workspace $workspace2
  183. bindsym $mod+3 workspace $workspace3
  184. bindsym $mod+4 workspace $workspace4
  185. bindsym $mod+5 workspace $workspace5
  186. bindsym $mod+6 workspace $workspace6
  187. bindsym $mod+7 workspace $workspace7
  188. bindsym $mod+8 workspace $workspace8
  189. # bindsym $mod+9 workspace $workspace9
  190. # bindsym $mod+0 workspace $workspace10
  191.  
  192. #navigate workspaces next / previous
  193. bindsym $mod+Ctrl+Right workspace next
  194. bindsym $mod+Ctrl+Left workspace prev
  195.  
  196. # Move focused container to workspace
  197. bindsym $mod+Shift+1 move container to workspace $workspace1
  198. bindsym $mod+Shift+2 move container to workspace $workspace2
  199. bindsym $mod+Shift+3 move container to workspace $workspace3
  200. bindsym $mod+Shift+4 move container to workspace $workspace4
  201. bindsym $mod+Shift+5 move container to workspace $workspace5
  202. bindsym $mod+Shift+6 move container to workspace $workspace6
  203. bindsym $mod+Shift+7 move container to workspace $workspace7
  204. bindsym $mod+Shift+8 move container to workspace $workspace8
  205. # bindsym $mod+Shift+9 move container to workspace $workspace9
  206. # bindsym $mod+Shift+0 move container to workspace $workspace10
  207.  
  208.  
  209. # Open applications on specific workspaces
  210. # assign [class="Thunderbird"] 1
  211. # assign [class="Pale moon"] 2
  212. # assign [class="thunar"] 3
  213. # assign [class="xfce4-terminal"] 5
  214.  
  215. # Open specific applications in floating mode
  216. for_window [title="alsamixer"] floating enable border pixel 1
  217. for_window [class="Calamares"] floating enable border normal
  218. for_window [class="Clipgrab"] floating enable
  219. for_window [title="File Transfer*"] floating enable
  220. for_window [class="Galculator"] floating enable border pixel 1
  221. for_window [class="GParted"] floating enable border normal
  222. for_window [title="i3_help"] floating enable sticky enable border normal
  223. for_window [class="Lightdm-gtk-greeter-settings"] floating enable
  224. for_window [class="Lxappearance"] floating enable border normal
  225. for_window [class="Manjaro Settings Manager"] floating enable border normal
  226. for_window [class="Manjaro Welcome"] floating enable
  227. for_window [title="MuseScore: Play Panel"] floating enable
  228. for_window [class="Nitrogen"] floating enable sticky enable border normal
  229. for_window [class="Oblogout"] fullscreen enable
  230. for_window [class="octopi"] floating enable
  231. for_window [class="Pamac-manager"] floating enable
  232. for_window [class="Pamac-updater"] floating enable
  233. for_window [class="Pavucontrol"] floating enable
  234. for_window [class="Qtconfig-qt4"] floating enable border normal
  235. for_window [title="sudo"] floating enable border normal
  236. for_window [class="Simple-scan"] floating enable border normal
  237. for_window [class="(?i)System-config-printer.py"] floating enable border normal
  238. for_window [class="Skype"] floating enable border normal
  239. for_window [class="Thus"] floating enable border normal
  240. for_window [class="Timeset-gui"] floating enable border normal
  241. for_window [class="(?i)virtualbox"] floating enable border normal
  242. for_window [class="Xfburn"] floating enable
  243.  
  244. # switch to workspace with urgent window automatically
  245. for_window [urgent=latest] focus
  246.  
  247. # reload the configuration file
  248. bindsym $mod+Shift+c reload
  249.  
  250. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  251. bindsym $mod+Shift+r restart
  252.  
  253. # exit i3 (logs you out of your X session)
  254. 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'"
  255.  
  256. # Set shut down, restart and locking features
  257. bindsym $mod+0 mode "$mode_system"
  258. set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
  259. mode "$mode_system" {
  260. bindsym l exec --no-startup-id i3exit lock, mode "default"
  261. bindsym s exec --no-startup-id i3exit suspend, mode "default"
  262. bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  263. bindsym e exec --no-startup-id i3exit logout, mode "default"
  264. bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  265. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  266. bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  267.  
  268. # exit system mode: "Enter" or "Escape"
  269. bindsym Return mode "default"
  270. bindsym Escape mode "default"
  271. }
  272.  
  273. # Resize window (you can also use the mouse for that)
  274. bindsym $mod+r mode "resize"
  275. mode "resize" {
  276. # These bindings trigger as soon as you enter the resize mode
  277. # Pressing left will shrink the window’s width.
  278. # Pressing right will grow the window’s width.
  279. # Pressing up will shrink the window’s height.
  280. # Pressing down will grow the window’s height.
  281. bindsym j resize shrink width 5 px or 5 ppt
  282. bindsym k resize grow height 5 px or 5 ppt
  283. bindsym l resize shrink height 5 px or 5 ppt
  284. bindsym odiaeresis resize grow width 5 px or 5 ppt
  285.  
  286. # same bindings, but for the arrow keys
  287. bindsym Left resize shrink width 10 px or 10 ppt
  288. bindsym Down resize grow height 10 px or 10 ppt
  289. bindsym Up resize shrink height 10 px or 10 ppt
  290. bindsym Right resize grow width 10 px or 10 ppt
  291.  
  292. # exit resize mode: Enter or Escape
  293. bindsym Return mode "default"
  294. bindsym Escape mode "default"
  295. }
  296.  
  297. # Lock screen
  298. bindsym $mod+9 exec --no-startup-id blurlock
  299.  
  300. # Autostart applications
  301. ## adjustment of i3bar battery reading (only run at the very first login):
  302. #exec --no-startup-id /usr/bin/adjust_i3statusconf
  303. #exec --no-startup-id start_conky_live_maia
  304. # exec --no-startup-id blueman
  305. #exec --no-startup-id clipit
  306. #exec --no-startup-id desktop-items
  307. #exec --no-startup-id manjaro-welcome
  308. exec --no-startup-id nm-applet
  309. #exec --no-startup-id pamac-tray
  310. #exec --no-startup-id xfce4-power-manager
  311. exec --no-startup-id xrandr --output VGA1 --mode 1440x900
  312. exec --no-startup-id xrandr --output LVDS1 --off
  313. exec --no-startup-id nitrogen --restore
  314. #exec --no-startup-id conky
  315. exec --no-startup-id xcompmgr -c
  316.  
  317. # Start i3bar to display a workspace bar (plus the system information i3status if available)
  318. bar {
  319. # status_command i3status
  320. status_command i3blocks -c ~/.config/i3/i3blocks.conf
  321. position top
  322.  
  323. ## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
  324. # tray_output primary
  325. # tray_output eDP1
  326. strip_workspace_numbers yes
  327.  
  328. bindsym button4 nop
  329. bindsym button5 nop
  330. font pango:System San Francisco Display 9
  331. # font pango:Cantarell,Icons 9
  332. # separator_symbol "■"
  333.  
  334. colors {
  335. separator $base03
  336. background $base01
  337. statusline $base05
  338. # border background text
  339. focused_workspace $base01 $base01 $base07
  340. active_workspace $base01 $base02 $base03
  341. inactive_workspace $base01 $base01 $base03
  342. urgent_workspace $base01 $base01 $base08
  343. }
  344. }
  345.  
  346. # hide/unhide i3status bar
  347. #bindsym $mod+m bar mode toggle
  348.  
  349. # Theme colors
  350. # class border backgr. text indic. child_border
  351. client.focused #808280 #808280 #80FFF9 #FDF6E3
  352. client.focused_inactive #434745 #434745 #16A085 #454948
  353. client.unfocused #434745 #434745 #16A085 #454948
  354. client.urgent #CB4B16 #FDF6E3 #16A085 #268BD2
  355. client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
  356.  
  357. client.background #2B2C2B
  358.  
  359. hide_edge_borders both
  360. new_window none
  361. smart_borders on
  362. gaps inner 10
  363. gaps outer 7
Advertisement
Add Comment
Please, Sign In to add comment