Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 9.09 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:Hack 8
  17.  
  18. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  19. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  20. #font pango:DejaVu Sans Mono 8
  21.  
  22. # Before i3 v4.8, we used to recommend this one as the default:
  23. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  24. # The font above is very space-efficient, that is, it looks good, sharp and
  25. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  26. # X core fonts rendering does not support right-to-left and this being a bitmap
  27. # font, it doesn’t scale on retina/hidpi displays.
  28.  
  29. # Make Gaps Work
  30. for_window [class="^.*"] border pixel 0
  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.  
  38. # kill focused window
  39. bindsym $mod+Shift+q kill
  40.  
  41. # start dmenu (a program launcher)
  42. # bindsym $mod+d exec dmenu_run
  43. # start rofi
  44. bindsym $mod+space exec rofi -config ~/.config/rofi/rofi.conf -show run -theme lb
  45.  
  46. # There also is the (new) i3-dmenu-desktop which only displays applications
  47. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  48. # installed.
  49. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  50.  
  51. # change focus
  52. bindsym $mod+j focus left
  53. bindsym $mod+k focus down
  54. bindsym $mod+l focus up
  55. bindsym $mod+semicolon focus right
  56.  
  57. # alternatively, you can use the cursor keys:
  58. bindsym $mod+Left focus left
  59. bindsym $mod+Down focus down
  60. bindsym $mod+Up focus up
  61. bindsym $mod+Right focus right
  62.  
  63. # move focused window
  64. bindsym $mod+Shift+j move left
  65. bindsym $mod+Shift+k move down
  66. bindsym $mod+Shift+l move up
  67. bindsym $mod+Shift+semicolon move right
  68.  
  69. # alternatively, you can use the cursor keys:
  70. bindsym $mod+Shift+Left move left
  71. bindsym $mod+Shift+Down move down
  72. bindsym $mod+Shift+Up move up
  73. bindsym $mod+Shift+Right move right
  74.  
  75. # split in horizontal orientation
  76. bindsym $mod+h split h
  77.  
  78. # split in vertical orientation
  79. bindsym $mod+v split v
  80.  
  81. # enter fullscreen mode for the focused container
  82. bindsym $mod+f fullscreen toggle
  83.  
  84. # change container layout (stacked, tabbed, toggle split)
  85. bindsym $mod+s layout stacking
  86. bindsym $mod+w layout tabbed
  87. bindsym $mod+e layout toggle split
  88.  
  89. # toggle tiling / floating
  90. bindsym $mod+Shift+p floating toggle
  91.  
  92. # change focus between tiling / floating windows
  93. bindsym $mod+p focus mode_toggle
  94.  
  95. # focus the parent container
  96. bindsym $mod+a focus parent
  97.  
  98. # focus the child container
  99. bindsym $mod+d focus child
  100.  
  101. # Build a dropdown terminal
  102. for_window [instance="dropdown"] floating enable, resize set 1280 1024, move scratchpad, border pixel 4
  103.  
  104.  
  105. # start the dropdown terminal
  106. exec --no-startup-id urxvt -name dropdown
  107.  
  108. # keybinding for dropdown terminal
  109. bindsym $mod+u [instance="dropdown"] scratchpad show, move position center
  110.  
  111. # Define names for default workspaces for which we configure key bindings later on.
  112. # We use variables to avoid repeating the names in multiple places.
  113. set $ws1 "1"
  114. set $ws2 "2"
  115. set $ws3 "3"
  116. set $ws4 "4"
  117. set $ws5 "5"
  118. set $ws6 "6"
  119. set $ws7 "7"
  120. set $ws8 "8"
  121. set $ws9 "9"
  122. set $ws10 "10"
  123.  
  124. # switch to workspace
  125. bindsym $mod+1 workspace $ws1
  126. bindsym $mod+2 workspace $ws2
  127. bindsym $mod+3 workspace $ws3
  128. bindsym $mod+4 workspace $ws4
  129. bindsym $mod+5 workspace $ws5
  130. bindsym $mod+6 workspace $ws6
  131. bindsym $mod+7 workspace $ws7
  132. bindsym $mod+8 workspace $ws8
  133. bindsym $mod+9 workspace $ws9
  134. bindsym $mod+0 workspace $ws10
  135.  
  136. # move focused container to workspace
  137. bindsym $mod+Shift+1 move container to workspace $ws1
  138. bindsym $mod+Shift+2 move container to workspace $ws2
  139. bindsym $mod+Shift+3 move container to workspace $ws3
  140. bindsym $mod+Shift+4 move container to workspace $ws4
  141. bindsym $mod+Shift+5 move container to workspace $ws5
  142. bindsym $mod+Shift+6 move container to workspace $ws6
  143. bindsym $mod+Shift+7 move container to workspace $ws7
  144. bindsym $mod+Shift+8 move container to workspace $ws8
  145. bindsym $mod+Shift+9 move container to workspace $ws9
  146. bindsym $mod+Shift+0 move container to workspace $ws10
  147.  
  148. # define the gaps
  149. gaps inner 4
  150. gaps outer 2
  151.  
  152. # reload the configuration file
  153. bindsym $mod+Shift+c reload
  154. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  155. bindsym $mod+Shift+r restart
  156. # exit i3 (logs you out of your X session)
  157. 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'"
  158.  
  159. # resize window (you can also use the mouse for that)
  160. mode "resize" {
  161.         # These bindings trigger as soon as you enter the resize mode
  162.  
  163.         # Pressing left will shrink the window’s width.
  164.         # Pressing right will grow the window’s width.
  165.         # Pressing up will shrink the window’s height.
  166.         # Pressing down will grow the window’s height.
  167.         bindsym j resize shrink width 1 px or 1 ppt
  168.         bindsym k resize grow height 1 px or 1 ppt
  169.         bindsym l resize shrink height 1 px or 1 ppt
  170.         bindsym semicolon resize grow width 1 px or 1 ppt
  171.  
  172.         # same bindings, but for the arrow keys
  173.         bindsym Left resize shrink width 5 px or 5 ppt
  174.         bindsym Down resize grow height 5 px or 5 ppt
  175.         bindsym Up resize shrink height 5 px or 5 ppt
  176.         bindsym Right resize grow width 5 px or 5 ppt
  177.  
  178.         # back to normal: Enter or Escape or $mod+r
  179.         bindsym Return mode "default"
  180.         bindsym Escape mode "default"
  181.         bindsym $mod+r mode "default"
  182. }
  183.  
  184. bindsym $mod+r mode "resize"
  185.  
  186. # Set color variables and apply them.
  187.  
  188. set $bg-color            #000000
  189. set $inactive-bg-color   #000000
  190. set $text-color          #ffffff
  191. set $inactive-text-color #9FC4D9
  192. set $urgent-bg-color     #c04800
  193. set $urgent-text-color   #0F58CE
  194.  
  195. # window colors
  196. #                       border              background         text                 indicator
  197. client.focused          $urgent-text-color  $bg-color          $text-color          #00ff00
  198. client.unfocused        $inactive-bg-color  $inactive-bg-color $inactive-text-color #00ff00
  199. client.focused_inactive $inactive-bg-color  $inactive-bg-color $inactive-text-color #00ff00
  200. client.urgent           $urgent-bg-color    $urgent-bg-color   $urgent-text-color   #00ff00
  201.  
  202. # hide the resize borders
  203. hide_edge_borders both
  204.  
  205. # Start Polybar script
  206. exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  207.  
  208. # Custom Key modifications
  209. # Lock the screen
  210. bindsym $mod+shift+x exec i3lock-fancy -p
  211.  
  212. # Pulse Audio controls
  213. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +1% #increase sound volume
  214. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -1% #decrease sound volume
  215. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  216.  
  217. # Sreen brightness controls
  218. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  219. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  220.  
  221. # Touchpad controls
  222. # bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
  223.  
  224. # Media player controls
  225. bindsym XF86AudioPlay exec playerctl play
  226. bindsym XF86AudioPause exec playerctl pause
  227. bindsym XF86AudioNext exec playerctl next
  228. bindsym XF86AudioPrev exec playerctl previous
  229.  
  230. # Bind XF86Launch5 to ctrl+w to close tabs in Chrome (use xev to get key codes)
  231. bindsym --release 0x1008ff45 exec --no-startup-id xdotool key --clearmodifiers ctrl+w
  232.  
  233. # Bind XF86Launch4 to ctrl+t to open new tabs in Chrome
  234. bindsym --release 0x1008ff44 exec --no-startup-id xdotool key --clearmodifiers ctrl+t
  235.  
  236. # Screentshot bind
  237. bindsym --release Print exec "scrot -s '%Y:%m:%d:%H:%M:%S.png' -e 'mv $f ~/Pictures/screenshots'"
  238.  
  239. # Wallpaper setup
  240. exec_always feh --bg-scale /home/rich/Pictures/Background/fall.jpg
  241.  
  242. # Apps to Open
  243.  
  244. # Open Telegram
  245. exec telegram-desktop
  246.  
  247. # Assign Telegram to $ws4 by opening the app and using xprop to get the second class(string)
  248. assign [class="TelegramDesktop"] $ws4
  249.  
  250. # Open Compton so compositing works (transparent terminals)
  251. exec compton -f
  252.  
  253. # Open Slack
  254. exec slack
  255.  
  256. # Assign Slack to $ws4 as above
  257. assign [class="Slack"] $ws4
  258.  
  259. # Assign Vmplayer to $ws5 as above
  260. assign [class="Vmplayer"] $ws5
  261.  
  262. # Open Synergy
  263. exec synergys -c ~/.config/Synergy/syn
  264.  
  265. # Open Insync for Google Drive syncing
  266. exec insync start
  267.  
  268. # Assign Chrome to $ws3 as above
  269. assign [class="Google-chrome"] $ws3
  270.  
  271. # Assign Kate to $ws8
  272. assign [class="kate"] $ws8
  273.  
  274. # Assign Spotify Player to $ws10, use spotifycli to control
  275. for_window [class="Spotify"] move window to workspace $ws10
  276.  
  277. # Clear up some vmware stuff
  278. exec vmware-user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement