Advertisement
ignitionigel

Void Laptop - Clean : .config/i3/config

Feb 22nd, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.19 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:monospace 12
  17. #font pango:monofur 12
  18.  
  19. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  20. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  21. font pango:Consolas 10
  22.  
  23. # Before i3 v4.8, we used to recommend this one as the default:
  24. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  25. # The font above is very space-efficient, that is, it looks good, sharp and
  26. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  27. # X core fonts rendering does not support right-to-left and this being a bitmap
  28. # font, it doesn’t scale on retina/hidpi displays.
  29.  
  30. ###############################################################################
  31.  
  32. # Volume keyboard buttons
  33. bindsym XF86AudioRaiseVolume exec amixer -q set Master 2db+
  34. bindsym XF86AudioLowerVolume exec amixer -q set Master 2db-
  35. bindsym XF86AudioMute exec amixer -q set Master toggle
  36. # Keyboard media controls
  37. #bindsym XF86AudioPlay exec shmus (pause, resume)
  38. #bindsym XF86Audio(Prev,Next) shmus (previous,next)
  39. bindsym XF86AudioPlay exec playerctl play
  40. bindsym XF86AudioPause exec playerctl pause
  41. bindsym XF86AudioNext exec playerctl next
  42. bindsym XF86AudioPrev exec playerctl previous
  43.  
  44. # Brightness keyboard buttons
  45. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5 -time 500
  46. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5 -time 500
  47.  
  48. ##############################################################################
  49.  
  50. # Use Mouse+$mod to drag floating windows to their wanted position
  51. floating_modifier $mod
  52.  
  53. # start a terminal
  54. #bindsym $mod+Return exec st -f "Liberation Mono:size=12"
  55. #bindsym $mod+Return exec xterm
  56. bindsym $mod+Return exec xterm
  57.  
  58. # kill focused window
  59. bindsym $mod+Shift+q kill
  60.  
  61. # start dmenu (a program launcher)
  62. #bindsym $mod+d exec dmenu_run
  63. # There also is the (new) i3-dmenu-desktop which only displays applications
  64. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  65. # installed.
  66. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  67.  
  68. #Start rofi as alternative to dmenu
  69. bindsym $mod+d exec --no-startup-id rofi -show drun -theme DarkBlue
  70.  
  71. # change focus
  72. bindsym $mod+j focus left
  73. bindsym $mod+k focus down
  74. bindsym $mod+l focus up
  75. bindsym $mod+semicolon focus right
  76.  
  77. # alternatively, you can use the cursor keys:
  78. bindsym $mod+Left focus left
  79. bindsym $mod+Down focus down
  80. bindsym $mod+Up focus up
  81. bindsym $mod+Right focus right
  82.  
  83. # move focused window
  84. bindsym $mod+Shift+j move left
  85. bindsym $mod+Shift+k move down
  86. bindsym $mod+Shift+l move up
  87. bindsym $mod+Shift+semicolon move right
  88.  
  89. # alternatively, you can use the cursor keys:
  90. bindsym $mod+Shift+Left move left
  91. bindsym $mod+Shift+Down move down
  92. bindsym $mod+Shift+Up move up
  93. bindsym $mod+Shift+Right move right
  94.  
  95. # split in horizontal orientation
  96. bindsym $mod+h split h
  97.  
  98. # split in vertical orientation
  99. bindsym $mod+v split v
  100.  
  101. # enter fullscreen mode for the focused container
  102. bindsym $mod+f fullscreen toggle
  103.  
  104. # change container layout (stacked, tabbed, toggle split)
  105. bindsym $mod+s layout stacking
  106. bindsym $mod+w layout tabbed
  107. bindsym $mod+e layout toggle split
  108.  
  109. # toggle tiling / floating
  110. bindsym $mod+Shift+space floating toggle
  111.  
  112. # change focus between tiling / floating windows
  113. bindsym $mod+space focus mode_toggle
  114.  
  115. # focus the parent container
  116. bindsym $mod+a focus parent
  117.  
  118. # focus the child container
  119. #bindsym $mod+d focus child
  120.  
  121. # Define names for default workspaces for which we configure key bindings later on.
  122. # We use variables to avoid repeating the names in multiple places.
  123. set $ws1 " 1.term "
  124. set $ws2 " 2.mail "
  125. set $ws3 " 3.web "
  126. set $ws4 " 4.work "
  127. set $ws5 " 5.chat "
  128. set $ws6 " 6.game "
  129. set $ws7 " 7 "
  130. set $ws8 " 8 "
  131. set $ws9 " 9 "
  132. set $ws10 " 10 "
  133.  
  134. #Tab though workspaces
  135. bindsym $mod+Tab workspace next
  136. bindsym $mod+Shift+Tab workspace prev
  137.  
  138. # switch to workspace
  139. bindsym $mod+1 workspace $ws1
  140. bindsym $mod+2 workspace $ws2
  141. bindsym $mod+3 workspace $ws3
  142. bindsym $mod+4 workspace $ws4
  143. bindsym $mod+5 workspace $ws5
  144. bindsym $mod+6 workspace $ws6
  145. bindsym $mod+7 workspace $ws7
  146. bindsym $mod+8 workspace $ws8
  147. bindsym $mod+9 workspace $ws9
  148. bindsym $mod+0 workspace $ws10
  149.  
  150. # move focused container to workspace
  151. bindsym $mod+Shift+1 move container to workspace $ws1
  152. bindsym $mod+Shift+2 move container to workspace $ws2
  153. bindsym $mod+Shift+3 move container to workspace $ws3
  154. bindsym $mod+Shift+4 move container to workspace $ws4
  155. bindsym $mod+Shift+5 move container to workspace $ws5
  156. bindsym $mod+Shift+6 move container to workspace $ws6
  157. bindsym $mod+Shift+7 move container to workspace $ws7
  158. bindsym $mod+Shift+8 move container to workspace $ws8
  159. bindsym $mod+Shift+9 move container to workspace $ws9
  160. bindsym $mod+Shift+0 move container to workspace $ws10
  161.  
  162. # Applications opened on specific workspace
  163. assign [class="Thunderbird"] $ws2
  164. assign [class="Firefox"] $ws3
  165. assign [class="Wire"] $ws5
  166. assign [class="discord"] $ws5
  167. assign [class="Steam"] $ws6
  168. assign [class="Telegram"] $ws5
  169. assign [class="Riot"] $ws5
  170.  
  171. # Autostart
  172. exec --no-startup-id flameshot
  173. exec --no-startup-id ~/bin/wire.AppImage
  174. exec --no-startup-id riot-desktop
  175. exec --no-startup-id xbacklight -set 12
  176. #exec --no-startup-id firefox
  177. #exec --no-startup-id thunderbird
  178. #exec --no-startup-id Discord
  179.  
  180. # Add this to your .xinitrc or whatever file starts programs on startup.
  181. # -R restores the last colorscheme that was in use.
  182. #exec --no-startup-id wal -R
  183.  
  184. #reload the configuration file
  185. bindsym $mod+Shift+c reload
  186. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  187. bindsym $mod+Shift+r restart
  188. # exit i3 (logs you out of your X session)
  189. 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'"
  190.  
  191. # resize window (you can also use the mouse for that)
  192. mode "resize" {
  193. # These bindings trigger as soon as you enter the resize mode
  194.  
  195. # Pressing left will shrink the window’s width.
  196. # Pressing right will grow the window’s width.
  197. # Pressing up will shrink the window’s height.
  198. # Pressing down will grow the window’s height.
  199. bindsym j resize shrink width 10 px or 10 ppt
  200. bindsym k resize grow height 10 px or 10 ppt
  201. bindsym l resize shrink height 10 px or 10 ppt
  202. bindsym semicolon resize grow width 10 px or 10 ppt
  203.  
  204. # same bindings, but for the arrow keys
  205. bindsym Left resize shrink width 10 px or 10 ppt
  206. bindsym Down resize grow height 10 px or 10 ppt
  207. bindsym Up resize shrink height 10 px or 10 ppt
  208. bindsym Right resize grow width 10 px or 10 ppt
  209.  
  210. # back to normal: Enter or Escape or $mod+r
  211. bindsym Return mode "default"
  212. bindsym Escape mode "default"
  213. bindsym $mod+r mode "default"
  214. }
  215.  
  216. bindsym $mod+r mode "resize"
  217.  
  218.  
  219. smart_gaps on ## removes outer gap if only one window on workspace
  220. #gaps outer -10
  221. gaps inner 30
  222.  
  223.  
  224. #Remove Title Bars and Borders to 1px
  225. #for_window [class="^.*"] border 1pixel
  226. new_window pixel 1
  227.  
  228. #Colours
  229. # class border backgr. text indicator child_border
  230. client.focused #64b200 #285577 #ffffff #ffffff #bbbbbb
  231. client.focused_inactive #222222 #5f676a #ffffff #484e50 #5f676a
  232. client.unfocused #222222 #222222 #888888 #292d2e #222222
  233. client.urgent #2f343a #900000 #ffffff #900000 #900000
  234. client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
  235.  
  236. client.background #ffffff
  237.  
  238. #Background Image
  239. exec --no-startup-id feh --bg-fill ~/Sync/Wallpaper/city-skyline.jpg
  240.  
  241. # Use Polybar, point to script for restarts on reload
  242. #exec_always --no-startup-id ~/.config/i3/polybar.sh &
  243.  
  244.  
  245. ##############################################################################
  246. # Start i3bar to display a workspace bar (plus the system information i3status
  247. # finds out, if available)
  248. bar {
  249. status_command i3status --config ~/.config/i3/i3status.conf
  250. position top
  251. font pango:Hack-Regular 11 #, FontAwesome 11
  252.  
  253.  
  254. colors {
  255. #background #333333
  256. background #000000
  257. statusline #ffffff
  258. separator #000000
  259. #statusline #02ccb0
  260. #separator #666666
  261. #separator #ae54ca
  262.  
  263. # class border background text
  264. focused_workspace #000000 #000000 #ffffff
  265. active_workspace #000000 #000000 #888888
  266. inactive_workspace #000000 #000000 #888888
  267. urgent_workspace #2f343a #900000 #ffffff
  268. binding_mode #2f343a #900000 #ffffff
  269.  
  270. }
  271.  
  272. }
  273. #############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement