Advertisement
Guest User

Untitled

a guest
May 27th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.20 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout some time, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. exec xrandr --dpi 157
  13.  
  14. # Window key
  15. set $mod Mod4
  16.  
  17. # Font for window titles. Will also be used by the bar unless a different font
  18. # is used in the bar {} block below.
  19. font pango:System San Francisco Display 10
  20.  
  21. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  22. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  23. #font pango:DejaVu Sans Mono 8
  24.  
  25. # Before i3 v4.8, we used to recommend this one as the default:
  26. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  27. # The font above is very space-efficient, that is, it looks good, sharp and
  28. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  29. # X core fonts rendering does not support right-to-left and this being a bitmap
  30. # font, it doesn’t scale on retina/hidpi displays.
  31.  
  32. # Use Mouse+$mod to drag floating windows to their wanted position
  33. floating_modifier $mod
  34.  
  35. # start a terminal
  36. #bindsym $mod+Return exec i3-sensible-terminal
  37. #bindsym $mod+Return exec urxvt
  38. bindsym $mod+Return exec gnome-terminal
  39.  
  40. # kill focused window
  41. #bindsym $mod+F4 kill
  42. bindsym $mod+BackSpace kill
  43.  
  44. # start dmenu (a program launcher)
  45. #bindsym $modxec dmenu_run
  46. #bindsym $mod+d exec dmenu_run
  47. #bindsym $mod+r exec dmenu_run
  48. bindsym $mod+r exec rofi -show run -eh 2 -font "System San Francisco Display 18"
  49. # There also is the (new) i3-dmenu-desktop which only displays applications
  50. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  51. # installed.
  52. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  53.  
  54. # change focus
  55. #bindsym $mod+j focus left
  56. bindsym $mod+h focus left
  57. #bindsym $mod+k focus down
  58. bindsym $mod+j focus down
  59. #bindsym $mod+l focus up
  60. bindsym $mod+k focus up
  61. #bindsym $mod+semicolon focus right
  62. bindsym $mod+l focus right
  63.  
  64. # alternatively, you can use the cursor keys:
  65. bindsym $mod+Left focus left
  66. bindsym $mod+Down focus down
  67. bindsym $mod+Up focus up
  68. bindsym $mod+Right focus right
  69.  
  70. # move focused window
  71. bindsym $mod+Shift+h move left
  72. #bindsym $mod+Shift+j move left
  73. bindsym $mod+Shift+j move down
  74. #bindsym $mod+Shift+k move down
  75. bindsym $mod+Shift+k move up
  76. #bindsym $mod+Shift+l move up
  77. bindsym $mod+Shift+l move right
  78. #bindsym $mod+Shift+semicolon move right
  79.  
  80. # alternatively, you can use the cursor keys:
  81. bindsym $mod+Shift+Left move left
  82. bindsym $mod+Shift+Down move down
  83. bindsym $mod+Shift+Up move up
  84. bindsym $mod+Shift+Right move right
  85.  
  86. # split in horizontal orientation
  87. #bindsym $mod+h split h
  88. bindsym $mod+Ctrl+h split h
  89.  
  90. # split in vertical orientation
  91. #bindsym $mod+v split v
  92. bindsym $mod+Ctrl+v split v
  93.  
  94. # enter fullscreen mode for the focused container
  95. #bindsym $mod+f fullscreen toggle
  96. bindsym $mod+Ctrl+f fullscreen toggle
  97.  
  98. # change container layout (stacked, tabbed, toggle split)
  99. bindsym $mod+Ctrl+k layout stacking
  100. bindsym $mod+Ctrl+t layout tabbed
  101. bindsym $mod+Ctrl+s layout toggle split
  102.  
  103. # toggle tiling / floating
  104. bindsym $mod+Shift+space floating toggle
  105.  
  106. # change focus between tiling / floating windows
  107. bindsym $mod+space focus mode_toggle
  108.  
  109. # focus the parent container
  110. bindsym $mod+Shift+p focus parent
  111.  
  112. # focus the child container
  113. #bindsym $mod+d focus child
  114.  
  115. # switch to workspace
  116. bindsym $mod+1 workspace 1
  117. bindsym $mod+2 workspace 2
  118. bindsym $mod+3 workspace 3
  119. bindsym $mod+4 workspace 4
  120. bindsym $mod+5 workspace 5
  121. bindsym $mod+6 workspace 6
  122. bindsym $mod+7 workspace 7
  123. bindsym $mod+8 workspace 8
  124. bindsym $mod+9 workspace 9
  125. bindsym $mod+0 workspace 10
  126.  
  127. # move focused container to workspace
  128. bindsym $mod+Shift+1 move container to workspace 1
  129. bindsym $mod+Shift+2 move container to workspace 2
  130. bindsym $mod+Shift+3 move container to workspace 3
  131. bindsym $mod+Shift+4 move container to workspace 4
  132. bindsym $mod+Shift+5 move container to workspace 5
  133. bindsym $mod+Shift+6 move container to workspace 6
  134. bindsym $mod+Shift+7 move container to workspace 7
  135. bindsym $mod+Shift+8 move container to workspace 8
  136. bindsym $mod+Shift+9 move container to workspace 9
  137. bindsym $mod+Shift+0 move container to workspace 10
  138.  
  139. # reload the configuration file
  140. bindsym $mod+Ctrl+c reload
  141. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  142. bindsym $mod+Shift+r restart
  143. # exit i3 (logs you out of your X session)
  144. # 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'"
  145. bindsym $mod+Shift+x 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'"
  146.  
  147. # Pulse Audio controls
  148. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +5% #increase sound volume
  149. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -5% #decrease sound volume
  150. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle # mute sound
  151.  
  152. # Sreen brightness controls
  153. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  154. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  155.  
  156. # Touchpad controls
  157. bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
  158.  
  159. # Media player controls
  160. bindsym XF86AudioPlay exec playerctl play-pause
  161. bindsym XF86AudioPause exec playerctl pause
  162. bindsym XF86AudioNext exec playerctl next
  163. bindsym $mod+F3 exec playerctl next
  164. bindsym XF86AudioPrev exec playerctl previous
  165. bindsym $mod+F2 exec playerctl previous
  166.  
  167. # resize window (you can also use the mouse for that)
  168. mode "$resize" {
  169. # These bindings trigger as soon as you enter the resize mode
  170.  
  171. # Pressing left will shrink the window’s width.
  172. # Pressing right will grow the window’s width.
  173. # Pressing up will shrink the window’s height.
  174. # Pressing down will grow the window’s height.
  175. # These are shifted to match vi; i3 normally does jkl;
  176. bindsym h resize shrink width 10 px or 10 ppt
  177. bindsym j resize grow height 10 px or 10 ppt
  178. bindsym k resize shrink height 10 px or 10 ppt
  179. bindsym l resize grow width 10 px or 10 ppt
  180.  
  181. # same bindings, but for the arrow keys
  182. bindsym Left resize shrink width 10 px or 10 ppt
  183. bindsym Down resize grow height 10 px or 10 ppt
  184. bindsym Up resize shrink height 10 px or 10 ppt
  185. bindsym Right resize grow width 10 px or 10 ppt
  186.  
  187. # back to normal: Enter or Escape
  188. bindsym Return mode "default"
  189. bindsym Escape mode "default"
  190. }
  191.  
  192. bindsym $mod+m mode "$resize"
  193.  
  194. # Start i3bar to display a workspace bar (plus the system information i3status
  195. # finds out, if available)
  196. bar {
  197. #status_command i3status
  198. status_command i3blocks
  199. tray_output primary
  200. }
  201.  
  202. ################################################################################
  203. # CUSTOM KEYBINDINGS
  204. ################################################################################
  205.  
  206. # q - chrome left
  207. # w - chrome center
  208. # e - eastriver (center)
  209. # r - CMD run
  210. # t - terminal (center)
  211. # y - terminal (right)
  212. # u -
  213. # i - music (top)
  214. # o - CMD system
  215. # p -
  216. # a - emacs (left)
  217. # s - emacs (center)
  218. # d - emacs (right)
  219. # f - chrome (right)
  220. # g -
  221. # h - CMD (to left)
  222. # j - CMD (to down)
  223. # k - CMD (to up)
  224. # l - CMD (to right)
  225. # z - conky (top)
  226. # x -
  227. # c - chat (right)
  228. # v - video (top)
  229. # b - blender (center)
  230. # n -
  231. # m - CMD (resize)
  232.  
  233.  
  234.  
  235. mode "$system" {
  236. # These bindings are miscellaneous bindings mainly for window and system
  237. # control
  238.  
  239. # start dmenu (a program launcher)
  240. bindsym r exec dmenu_run
  241. # reload the configuration file
  242. bindsym l reload
  243. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  244. bindsym Shift+r restart
  245. # exit i3 (logs you out of your X session)
  246. bindsym Shift+x 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'"
  247. # split in horizontal orientation
  248. bindsym h split h
  249.  
  250. # split in vertical orientation
  251. bindsym v split v
  252.  
  253. # enter fullscreen mode for the focused container
  254. bindsym f fullscreen toggle
  255.  
  256. # change container layout (stacked, tabbed, toggle split)
  257. bindsym k layout stacking
  258. bindsym t layout tabbed
  259. bindsym s layout toggle split
  260.  
  261. # toggle tiling / floating
  262. bindsym Space floating toggle
  263.  
  264. # change focus between tiling / floating windows
  265. bindsym space focus mode_toggle
  266.  
  267. # focus the parent container
  268. bindsym p focus parent
  269.  
  270. # focus the child container
  271. bindsym d focus child
  272.  
  273. # kill focused window
  274. bindsym x kill
  275.  
  276. # back to normal: Enter or Escape
  277. bindsym Return mode "default"
  278. bindsym Escape mode "default"
  279. }
  280.  
  281.  
  282. bindsym $mod+o mode "$system"
  283.  
  284. # Main workspaces
  285.  
  286. ################################################################################
  287. # Left display
  288. ################################################################################
  289.  
  290. workspace " emacs-a" output "DVI-I-1"
  291. bindsym $mod+a workspace " emacs-a"
  292. bindsym $mod+Shift+a move container to workspace " emacs-a"
  293. assign [instance="^emacs-a$"] " emacs-a"
  294.  
  295. workspace " chrome-q" output "DVI-I-1"
  296. bindsym $mod+q workspace " chrome-q"
  297. bindsym $mod+Shift+q move container to workspace " chrome-q"
  298.  
  299. ################################################################################
  300. # Center display
  301. ################################################################################
  302. workspace " emacs-s" output "DP-4"
  303. bindsym $mod+s workspace " emacs-s"
  304. bindsym $mod+Shift+s move container to workspace " emacs-s"
  305. assign [instance="^emacs-s$"] " emacs-s"
  306. assign [instance="^gpomo"] " emacs-s"
  307.  
  308. workspace " terminal-t" output "DP-4"
  309. bindsym $mod+t workspace " terminal-t"
  310. bindsym $mod+Shift+t move container to workspace " terminal-t"
  311.  
  312. workspace " chrome-w" output "DP-4"
  313. bindsym $mod+w workspace " chrome-w"
  314. bindsym $mod+Shift+w move container to workspace " chrome-w"
  315.  
  316. workspace " east" output "DP-4"
  317. bindsym $mod+e workspace " east"
  318. bindsym $mod+Shift+e move container to workspace " east"
  319. assign [title="^eastriver"] " east"
  320.  
  321. workspace " blender" output "DP-4"
  322. bindsym $mod+b workspace " blender"
  323. bindsym $mod+Shift+b move container to workspace " blender"
  324.  
  325. ################################################################################
  326. # Right display
  327. ################################################################################
  328.  
  329. workspace " emacs-d" output "DP-2"
  330. bindsym $mod+d workspace " emacs-d"
  331. bindsym $mod+Shift+d move container to workspace " emacs-d"
  332. assign [instance="^emacs-d$"] " emacs-d"
  333.  
  334. workspace " terminal-y" output "DP-2"
  335. bindsym $mod+y workspace " terminal-y"
  336. bindsym $mod+Shift+y move container to workspace " terminal-y"
  337.  
  338. workspace " chat-c" output "DP-2"
  339. bindsym $mod+c workspace " chat-c"
  340. bindsym $mod+Shift+c move container to workspace " chat-c"
  341. assign [class="^Hexchat$"] " chat-c"
  342.  
  343. workspace " chrome-f" output "DP-2"
  344. bindsym $mod+f workspace " chrome-f"
  345. bindsym $mod+Shift+f move container to workspace " chrome-f"
  346.  
  347. ################################################################################
  348. # Top display
  349. ################################################################################
  350. workspace " conky" output "DP-0"
  351. bindsym $mod+z workspace " conky"
  352. bindsym $mod+Shift+z move container to workspace " conky"
  353. assign [class="^Conky"] " conky"
  354. assign [class="^fpomo_class"] " conky"
  355.  
  356. workspace " video" output "DP-0"
  357. bindsym $mod+v workspace " video"
  358. bindsym $mod+Shift+v move container to workspace " video"
  359.  
  360. workspace " music" output "DP-0"
  361. bindsym $mod+i workspace " music"
  362. bindsym $mod+Shift+i move container to workspace " music"
  363. assign [class="^Rhythmbox"] " music"
  364. assign [class="^Spotify"] " music"
  365.  
  366. for_window [class="^Conky$"] border pixel 0
  367. for_window [class="^Emacs"] border pixel 0
  368. for_window [class="^URxvt$"] border pixel 0
  369. for_window [class="^urxvt$"] border pixel 0
  370. for_window [class="^gnome-terminal"] border pixel 0
  371.  
  372. for_window [class="^fpomo"] floating enable
  373. for_window [class="^gpomo"] floating enable
  374.  
  375. exec compton -CGb
  376.  
  377. # exec --no-startup-id i3-msg 'exec emacsclient -c --frame-parameters=\"((name . \\\"emacs-a\\\")\" /home/x/notes/todo.org'
  378. #exec --no-startup-id i3-msg 'exec emacsclient -c --frame-parameters=\"((name . \\\"emacs-s\\\")\"'
  379. #exec --no-startup-id i3-msg 'exec emacsclient -c --frame-parameters=\"((name . \\\'emacs-d\\\')\"'
  380. exec dropbox start
  381. exec spotify
  382. exec emacsclient -c --frame-parameters='((name . "emacs-a"))'
  383. exec emacsclient -c --frame-parameters='((name . "emacs-s"))'
  384. exec emacsclient -c --frame-parameters='((name . "emacs-d"))' /home/x/notes/todo.org
  385. exec i3-msg 'exec conky -d -c /home/x/.conkyrc'
  386. exec i3-msg 'exec /home/x/.fehbg'
  387. exec i3-msg 'workspace " chrome-w"; exec google-chrome'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement