Advertisement
Guest User

Untitled

a guest
Oct 13th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.89 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 https://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font pango:Ubuntu Mono 9
  17.  
  18. # Before i3 v4.8, we used to recommend this one as the default:
  19. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  20. # The font above is very space-efficient, that is, it looks good, sharp and
  21. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  22. # X core fonts rendering does not support right-to-left and this being a bitmap
  23. # font, it doesn’t scale on retina/hidpi displays.
  24.  
  25. # Use Mouse+$mod to drag floating windows to their wanted position
  26. floating_modifier $mod
  27.  
  28. # start a terminal
  29. #bindsym $mod+Return exec i3-sensible-terminal
  30. bindsym $mod+Return exec /usr/bin/urxvt
  31.  
  32. # kill focused window
  33. bindsym $mod+Shift+q kill
  34.  
  35. # change focus
  36. #bindsym $mod+j focus left
  37. #bindsym $mod+k focus down
  38. #bindsym $mod+l focus up
  39. #bindsym $mod+semicolon focus right
  40.  
  41. bindsym $mod+Left focus left
  42. bindsym $mod+Down focus down
  43. bindsym $mod+Up focus up
  44. bindsym $mod+Right focus right
  45.  
  46. # move focused window
  47. #bindsym $mod+Shift+j move left
  48. #bindsym $mod+Shift+k move down
  49. #bindsym $mod+Shift+l move up
  50. #bindsym $mod+Shift+semicolon move right
  51.  
  52. bindsym $mod+Shift+Left move left
  53. bindsym $mod+Shift+Down move down
  54. bindsym $mod+Shift+Up move up
  55. bindsym $mod+Shift+Right move right
  56.  
  57. # split in horizontal orientation
  58. bindsym $mod+h split h
  59.  
  60. # split in vertical orientation
  61. bindsym $mod+v split v
  62.  
  63. # enter fullscreen mode for the focused container
  64. bindsym $mod+f fullscreen toggle
  65.  
  66. # change container layout (stacked, tabbed, toggle split)
  67. bindsym $mod+s layout stacking
  68. bindsym $mod+w layout tabbed
  69. bindsym $mod+e layout toggle split
  70.  
  71. # toggle tiling / floating
  72. bindsym $mod+Shift+space floating toggle
  73.  
  74. # change focus between tiling / floating windows
  75. bindsym $mod+space focus mode_toggle
  76.  
  77. # focus the parent container
  78. bindsym $mod+a focus parent
  79.  
  80. # focus the child container
  81. #bindsym $mod+d focus child
  82.  
  83. # Define names for default workspaces for which we configure key bindings later on.
  84. # We use variables to avoid repeating the names in multiple places.
  85.  
  86. set $ws1 "1"
  87. set $ws2 "2"
  88. set $ws3 "3"
  89. set $ws4 "4"
  90. set $ws5 "5"
  91. set $ws6 "6"
  92. set $ws7 "7"
  93. set $ws8 "8"
  94. set $ws9 "9"
  95. set $ws10 "10"
  96.  
  97. # switch to workspace
  98. bindsym $mod+1 workspace $ws1
  99. bindsym $mod+2 workspace $ws2
  100. bindsym $mod+3 workspace $ws3
  101. bindsym $mod+4 workspace $ws4
  102. bindsym $mod+5 workspace $ws5
  103. bindsym $mod+6 workspace $ws6
  104. bindsym $mod+7 workspace $ws7
  105. bindsym $mod+8 workspace $ws8
  106. bindsym $mod+9 workspace $ws9
  107. bindsym $mod+0 workspace $ws10
  108.  
  109. # move focused container to workspace
  110. bindsym $mod+Shift+1 move container to workspace $ws1
  111. bindsym $mod+Shift+2 move container to workspace $ws2
  112. bindsym $mod+Shift+3 move container to workspace $ws3
  113. bindsym $mod+Shift+4 move container to workspace $ws4
  114. bindsym $mod+Shift+5 move container to workspace $ws5
  115. bindsym $mod+Shift+6 move container to workspace $ws6
  116. bindsym $mod+Shift+7 move container to workspace $ws7
  117. bindsym $mod+Shift+8 move container to workspace $ws8
  118. bindsym $mod+Shift+9 move container to workspace $ws9
  119. bindsym $mod+Shift+0 move container to workspace $ws10
  120.  
  121. # reload the configuration file
  122. bindsym $mod+Shift+c reload
  123.  
  124. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  125. bindsym $mod+Shift+r restart
  126.  
  127. # exit i3 (logs you out of your X session)
  128. #bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Leaving?' -b 'Yes, exit i3' 'i3-msg exit'"
  129.  
  130. # resize window (you can also use the mouse for that)
  131. bindsym $mod+r mode "resize"
  132.  
  133. mode "resize" {
  134. # These bindings trigger as soon as you enter the resize mode
  135.  
  136. # Pressing left will shrink the window’s width.
  137. # Pressing right will grow the window’s width.
  138. # Pressing up will shrink the window’s height.
  139. # Pressing down will grow the window’s height.
  140. #bindsym j resize shrink width 10 px or 10 ppt
  141. #bindsym k resize grow height 10 px or 10 ppt
  142. #bindsym l resize shrink height 10 px or 10 ppt
  143. #bindsym semicolon resize grow width 10 px or 10 ppt
  144.  
  145. # same bindings, but for the arrow keys
  146. bindsym Left resize shrink width 10 px or 10 ppt
  147. bindsym Down resize grow height 10 px or 10 ppt
  148. bindsym Up resize shrink height 10 px or 10 ppt
  149. bindsym Right resize grow width 10 px or 10 ppt
  150.  
  151. # back to normal: Enter or Escape or $mod+r
  152. bindsym Return mode "default"
  153. bindsym Escape mode "default"
  154. bindsym $mod+r mode "default"
  155. }
  156.  
  157. # Start i3bar to display a workspace bar (plus the system information i3status
  158. # finds out, if available)
  159. #bar {
  160. # status_command i3status
  161. #}
  162.  
  163. ############### i3-gaps stuff ##################
  164.  
  165. # Necessary for i3-gaps to work properly (pixel can be any value)
  166. for_window [class="^.*"] border pixel 0
  167.  
  168. # Smart Gaps
  169. smart_gaps on
  170.  
  171. # Smart Borders
  172. smart_borders on
  173.  
  174. # Set inner/outer gaps
  175. gaps inner 10
  176. gaps outer 0
  177.  
  178. # Gaps mode
  179. set $mode_gaps Gaps: (o) outer, (i) inner
  180. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  181. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  182.  
  183. bindsym $mod+Shift+g mode "$mode_gaps"
  184.  
  185. mode "$mode_gaps" {
  186. bindsym o mode "$mode_gaps_outer"
  187. bindsym i mode "$mode_gaps_inner"
  188. bindsym Return mode "default"
  189. bindsym Escape mode "default"
  190. }
  191.  
  192. mode "$mode_gaps_inner" {
  193. bindsym plus gaps inner current plus 5
  194. bindsym minus gaps inner current minus 5
  195. bindsym 0 gaps inner current set 0
  196.  
  197. bindsym Shift+plus gaps inner all plus 5
  198. bindsym Shift+minus gaps inner all minus 5
  199. bindsym Shift+0 gaps inner all set 0
  200.  
  201. bindsym Return mode "default"
  202. bindsym Escape mode "default"
  203. }
  204.  
  205. mode "$mode_gaps_outer" {
  206. bindsym plus gaps outer current plus 5
  207. bindsym minus gaps outer current minus 5
  208. bindsym 0 gaps outer current set 0
  209.  
  210. bindsym Shift+plus gaps outer all plus 5
  211. bindsym Shift+minus gaps outer all minus 5
  212. bindsym Shift+0 gaps outer all set 0
  213.  
  214. bindsym Return mode "default"
  215. bindsym Escape mode "default"
  216. }
  217.  
  218.  
  219. ## Colours
  220. set $base00 #232c31
  221. set $base01 #1c3657
  222. set $base02 #2a343a
  223. set $base03 #3f4944
  224. set $base04 #84898c
  225. set $base05 #9ea7a6
  226. set $base06 #a7cfa3
  227. set $base07 #b5d8f6
  228. set $base08 #2a5491
  229. set $base09 #43820d
  230. set $base0A #a03b1e
  231. set $base0B #237986
  232. set $base0C #b02f30
  233. #set $base0D #484d79
  234. set $base0D #6B7886
  235. set $base0E #c59820
  236. set $base0F #c98344
  237.  
  238. client.focused $base0D $base0D $base00 $base01
  239. client.focused_inactive $base02 $base02 $base03 $base01
  240. client.unfocused $base01 $base01 $base03 $base01
  241. client.urgent $base02 $base08 $base07 $base08
  242.  
  243. # Make the currently focused window a scratchpad
  244. bindsym $mod+Shift+minus move scratchpad
  245.  
  246. # Show the first scratchpad window
  247. bindsym $mod+minus scratchpad show
  248.  
  249. ## Wallpaper
  250. exec --no-startup-id nitrogen --restore
  251.  
  252. ## Polybar
  253. exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  254.  
  255. ## Redshift
  256. exec --no-startup-id redshift-gtk -t 6500:4500
  257.  
  258. ## Skype
  259. #exec --no-startup-id skypeforlinux
  260.  
  261. ## Compton
  262. #exec --no-startup-id compton -cCGz
  263. exec --no-startup-id compton
  264.  
  265. ## Enable touchpad tap-to-click
  266. exec xinput --set-prop 12 281 1
  267.  
  268. ## Increase cursor speed
  269. exec xinput --set-prop 12 284 1
  270.  
  271. # Lock screen
  272. bindsym $mod+l exec i3lock-fancy -gf Rufscript
  273.  
  274. ## Auto lock screen
  275. exec --no-startup-id xautolock -time 10 -locker 'i3lock-fancy -gf Rufscript' -corners 00-+
  276. #exec --no-startup-id xautolock -time 2 -detectsleep -locker '~/.config/i3/lock.sh' -corners 00+-
  277.  
  278. ## MPD and MPDscribble
  279. exec --no-startup-id mpd
  280. #exec --no-startup-id mpdscribble
  281.  
  282. ## Rofi
  283. bindsym $mod+d exec --no-startup-id rofi -show run
  284.  
  285. ## Network Manager
  286. exec --no-startup-id nm-applet
  287.  
  288. ## Pulse Audio controls
  289. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  290. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  291. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  292.  
  293. ## Screen brightness controls
  294. bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness
  295. bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
  296.  
  297. ## Keyboard brightness controls (doesn't work)
  298. #bindsym XF86KbdBrightnessUp exec light -k -A 5
  299. #bindsym XF86KbdBrightnessDown exec light -k -U 5
  300.  
  301. # Screenshot
  302. bindsym --release $mod+Print exec --no-startup-id scrot -d 3 -q 85 'i3_%Y-%m-%d_%I-%M-%S_%p.png' -e 'mv $f ~/Screenshots/'
  303.  
  304. ## Set up 2nd monitor
  305. #exec xrandr --output HDMI-2 --mode 1600x900 --right-of eDP-1
  306.  
  307. ## Assign workspaces to specific monitors
  308. workspace 10 output HDMI-2
  309.  
  310. ## Move workspace to next monitor (ie. toggle between 2 monitors)
  311. bindsym $mod+m move workspace to output right
  312.  
  313. ## Change workspaces
  314. bindsym $mod+Tab workspace next
  315. bindsym $mod+Shift+Tab workspace prev
  316. workspace_auto_back_and_forth yes
  317.  
  318. ## Specific stuff for certain windows
  319. for_window [class="URxvt"] border pixel 2
  320. for_window [class="Gnome-terminal"] border pixel 2
  321. for_window [class="Gnome-terminal"] floating enable
  322. for_window [class="Tilix"] floating enable
  323.  
  324. for_window [class="Pick-colour-picker"] floating enable
  325. for_window [class="Skype"] floating enable
  326. for_window [class="Transmission-gtk"] floating enable
  327. for_window [class="Nitrogen"] floating enable
  328. for_window [class="Lxappearance"] floating enable
  329.  
  330. ## Move window to center
  331. bindsym $mod+c move absolute position center
  332.  
  333. ## Shutdown, reboot, lock screen ..
  334. bindsym $mod+Shift+Delete mode "$system"
  335.  
  336. # A system mode for shutting down, ...
  337. set $system System ... logout (l), reboot (r), shutdown (s)
  338. mode "$system" {
  339. # Logout
  340. bindsym l exec --no-startup-id i3-msg exit, mode "default"
  341. # Reboot
  342. bindsym r exec reboot, mode "default"
  343. # Shutdown
  344. bindsym s exec poweroff, mode "default"
  345. # Lock
  346. # bindsym o exec i3lock-fancy -gf Rufscript
  347. # Back to normal
  348. bindsym Return mode "default"
  349. bindsym Escape mode "default"
  350. }
  351.  
  352. ###################################
  353. # Scratch pads
  354. ###################################
  355. ## music
  356. # settings for dropdown
  357. for_window [instance="music"] floating enable
  358. for_window [instance="music"] move scratchpad
  359. # start scratchpad
  360. exec --no-startup-id urxvt -name music -e ncmpcpp
  361. # keybinding for scratchpad
  362. #bindsym $mod+u [instance="music"] scratchpad show; [instance="music"] move position center
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement