Advertisement
ignitionigel

Void Laptop Cyber: .config/i3/config

Jan 11th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.72 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
  46. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5
  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.  
  57. # kill focused window
  58. bindsym $mod+Shift+q kill
  59.  
  60. # start dmenu (a program launcher)
  61. #bindsym $mod+d exec dmenu_run
  62. # There also is the (new) i3-dmenu-desktop which only displays applications
  63. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  64. # installed.
  65. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  66.  
  67. #Start rofi as alternative to dmenu
  68. bindsym $mod+d exec --no-startup-id rofi -show drun -theme DarkBlue
  69.  
  70. # change focus
  71. bindsym $mod+j focus left
  72. bindsym $mod+k focus down
  73. bindsym $mod+l focus up
  74. bindsym $mod+semicolon focus right
  75.  
  76. # alternatively, you can use the cursor keys:
  77. bindsym $mod+Left focus left
  78. bindsym $mod+Down focus down
  79. bindsym $mod+Up focus up
  80. bindsym $mod+Right focus right
  81.  
  82. # move focused window
  83. bindsym $mod+Shift+j move left
  84. bindsym $mod+Shift+k move down
  85. bindsym $mod+Shift+l move up
  86. bindsym $mod+Shift+semicolon move right
  87.  
  88. # alternatively, you can use the cursor keys:
  89. bindsym $mod+Shift+Left move left
  90. bindsym $mod+Shift+Down move down
  91. bindsym $mod+Shift+Up move up
  92. bindsym $mod+Shift+Right move right
  93.  
  94. # split in horizontal orientation
  95. bindsym $mod+h split h
  96.  
  97. # split in vertical orientation
  98. bindsym $mod+v split v
  99.  
  100. # enter fullscreen mode for the focused container
  101. bindsym $mod+f fullscreen toggle
  102.  
  103. # change container layout (stacked, tabbed, toggle split)
  104. bindsym $mod+s layout stacking
  105. bindsym $mod+w layout tabbed
  106. bindsym $mod+e layout toggle split
  107.  
  108. # toggle tiling / floating
  109. bindsym $mod+Shift+space floating toggle
  110.  
  111. # change focus between tiling / floating windows
  112. bindsym $mod+space focus mode_toggle
  113.  
  114. # focus the parent container
  115. bindsym $mod+a focus parent
  116.  
  117. # focus the child container
  118. #bindsym $mod+d focus child
  119.  
  120. # Define names for default workspaces for which we configure key bindings later on.
  121. # We use variables to avoid repeating the names in multiple places.
  122. set $ws1 " 1 term "
  123. set $ws2 " 2 mail "
  124. set $ws3 " 3 web "
  125. set $ws4 " 4 work "
  126. set $ws5 " 5 chat "
  127. set $ws6 " 6 game "
  128. set $ws7 " 7 "
  129. set $ws8 " 8 "
  130. set $ws9 " 9 "
  131. set $ws10 " 10 "
  132.  
  133. # switch to workspace
  134. bindsym $mod+1 workspace $ws1
  135. bindsym $mod+2 workspace $ws2
  136. bindsym $mod+3 workspace $ws3
  137. bindsym $mod+4 workspace $ws4
  138. bindsym $mod+5 workspace $ws5
  139. bindsym $mod+6 workspace $ws6
  140. bindsym $mod+7 workspace $ws7
  141. bindsym $mod+8 workspace $ws8
  142. bindsym $mod+9 workspace $ws9
  143. bindsym $mod+0 workspace $ws10
  144.  
  145. # move focused container to workspace
  146. bindsym $mod+Shift+1 move container to workspace $ws1
  147. bindsym $mod+Shift+2 move container to workspace $ws2
  148. bindsym $mod+Shift+3 move container to workspace $ws3
  149. bindsym $mod+Shift+4 move container to workspace $ws4
  150. bindsym $mod+Shift+5 move container to workspace $ws5
  151. bindsym $mod+Shift+6 move container to workspace $ws6
  152. bindsym $mod+Shift+7 move container to workspace $ws7
  153. bindsym $mod+Shift+8 move container to workspace $ws8
  154. bindsym $mod+Shift+9 move container to workspace $ws9
  155. bindsym $mod+Shift+0 move container to workspace $ws10
  156.  
  157. # Applications opened on specific workspace
  158. assign [class="Thunderbird"] $ws2
  159. assign [class="Firefox"] $ws3
  160. assign [class="Wire"] $ws5
  161. assign [class="discord"] $ws5
  162. assign [class="Steam"] $ws6
  163.  
  164. # Autostart
  165. exec --no-startup-id syncthing -no-browser
  166. exec --no-startup-id ~/bin/wire.AppImage
  167. #exec --no-startup-id firefox
  168. #exec --no-startup-id thunderbird
  169. #exec --no-startup-id Discord
  170.  
  171. # Add this to your .xinitrc or whatever file starts programs on startup.
  172. # -R restores the last colorscheme that was in use.
  173. #exec --no-startup-id wal -R
  174.  
  175. #reload the configuration file
  176. bindsym $mod+Shift+c reload
  177. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  178. bindsym $mod+Shift+r restart
  179. # exit i3 (logs you out of your X session)
  180. 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'"
  181.  
  182. # resize window (you can also use the mouse for that)
  183. mode "resize" {
  184. # These bindings trigger as soon as you enter the resize mode
  185.  
  186. # Pressing left will shrink the window’s width.
  187. # Pressing right will grow the window’s width.
  188. # Pressing up will shrink the window’s height.
  189. # Pressing down will grow the window’s height.
  190. bindsym j resize shrink width 10 px or 10 ppt
  191. bindsym k resize grow height 10 px or 10 ppt
  192. bindsym l resize shrink height 10 px or 10 ppt
  193. bindsym semicolon resize grow width 10 px or 10 ppt
  194.  
  195. # same bindings, but for the arrow keys
  196. bindsym Left resize shrink width 10 px or 10 ppt
  197. bindsym Down resize grow height 10 px or 10 ppt
  198. bindsym Up resize shrink height 10 px or 10 ppt
  199. bindsym Right resize grow width 10 px or 10 ppt
  200.  
  201. # back to normal: Enter or Escape or $mod+r
  202. bindsym Return mode "default"
  203. bindsym Escape mode "default"
  204. bindsym $mod+r mode "default"
  205. }
  206.  
  207. bindsym $mod+r mode "resize"
  208.  
  209.  
  210. smart_gaps on ## removes outer gap if only one window on workspace
  211. #gaps outer -5
  212. gaps inner 15
  213.  
  214.  
  215. #Remove Title Bars and Borders to 1px
  216. #for_window [class="^.*"] border 1pixel
  217. new_window pixel 1
  218.  
  219. #Colours
  220. # class border backgr. text indicator child_border
  221. client.focused #17a589 #285577 #ffffff #2e9ef4 #17a589
  222. client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
  223. client.unfocused #333333 #222222 #888888 #292d2e #222222
  224. client.urgent #2f343a #900000 #ffffff #900000 #900000
  225. client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
  226.  
  227. client.background #ffffff
  228.  
  229. #Background Image
  230. exec --no-startup-id feh --bg-fill ~/Sync/Wallpaper/cyber_distance.png
  231.  
  232. # Use Polybar, point to script for restarts on reload
  233. #exec_always --no-startup-id ~/.config/i3/polybar.sh &
  234.  
  235. # Start i3bar to display a workspace bar (plus the system information i3status
  236. # finds out, if available)
  237. bar {
  238. status_command i3status --config ~/.config/i3/i3status.conf
  239. position top
  240. font pango:Hack, FontAwesome 11
  241.  
  242.  
  243. colors {
  244. #background #333333
  245. background #000000
  246. #statusline #ffffff
  247. statusline #02ccb0
  248. separator #666666
  249. #separator #ae54ca
  250.  
  251. # class border background text
  252. focused_workspace #f600ff #000000 #f600ff
  253. active_workspace #17a589 #000000 #17a589
  254. inactive_workspace #17a589 #000000 #17a589
  255. urgent_workspace #2f343a #900000 #ffffff
  256. binding_mode #2f343a #900000 #ffffff
  257.  
  258. }
  259.  
  260. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement