Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 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:Terminus 11
  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. #pywal
  30. set_from_resource $fg i3wm.color7
  31. set_from_resource $bg i3wm.color2
  32.  
  33. # class border backgr. text indicator child_border
  34. #client.focused $bg $bg $fg $bg $bg
  35. #client.focused_inactive $bg $bg $fg $bg $bg
  36. #client.unfocused $bg $bg $fg $bg $bg
  37. #client.urgent $bg $bg $fg $bg $bg
  38. #client.placeholder $bg $bg $fg $bg $bg
  39.  
  40. #client.background $bg
  41.  
  42.  
  43. # custom
  44.  
  45. hide_edge_borders both
  46. for_window [class="^.*"] border pixel 0
  47. gaps inner 9
  48. gaps outer 9
  49.  
  50. #sets
  51. set $browser firefox
  52. set $term urxvt
  53. set $shutdown sudo shutdown -h now
  54. set $reboot sudo reboot
  55. set $netrefresh --no-startup-id sudo systemctl restart NetworkManager
  56. set $inc --no-startup-id amixer sset Master 5%+
  57. set $dec --no-startup-id amixer sset Master 5%-
  58. set $mute --no-startup-id amixer sset Master toggle
  59. set $pause --no-startup-id mpc toogle
  60. set $next --no-startup-id mpc next
  61. set $prev --no-startup-id mpc prev
  62. set $music --no-startup-id $term -e ncmpcpp
  63.  
  64. #execs
  65. exec --no-startup-id compton --xrender-sync-fence
  66. #exec --no-startup-id nm-applet
  67. exec --no-startup-id unclutter
  68. exec --no-startup-id feh --bg-scale ~/.config/w.png
  69. exec --no-startup-id polybar top
  70. exec --no-startup-id redshift
  71. exec --no-startup-id mpd
  72. exec --no-startup-id wicd-client --tray
  73. exec --no-startup-id udiskie --automount --no-notify --tray --use-udisks2
  74.  
  75. #bindsym
  76. bindsym $mod+Shift+x exec $shutdown
  77. bindsym $mod+Shift+BackSpace exec $reboot
  78. bindsym $mod+w exec $browser
  79. bindsym $mod+q kill
  80. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15
  81. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15
  82. bindsym $mod+p exec arandr
  83. bindsym XF86AudioMute exec $mute
  84. bindsym XF86AudioLowerVolume exec $dec
  85. bindsym XF86AudioRaiseVolume exec $inc
  86. bindsym XF86AudioPrev exec $prev
  87. bindsym XF86AudioPlay exec $pause
  88. bindsym XF86AudioNext exec $next
  89.  
  90.  
  91. # Use Mouse+$mod to drag floating windows to their wanted position
  92. floating_modifier $mod
  93.  
  94. # start a terminal
  95. bindsym $mod+Return exec $term
  96.  
  97. # kill focused window
  98. bindsym $mod+Shift+q kill
  99.  
  100. # start dmenu (a program launcher)
  101. # bindsym $mod+d exec dmenu_run
  102. # There also is the (new) i3-dmenu-desktop which only displays applications
  103. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  104. # installed.
  105. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  106.  
  107. # change focus
  108. bindsym $mod+j focus left
  109. bindsym $mod+k focus down
  110. bindsym $mod+l focus up
  111. bindsym $mod+semicolon focus right
  112.  
  113. # alternatively, you can use the cursor keys:
  114. bindsym $mod+Left focus left
  115. bindsym $mod+Down focus down
  116. bindsym $mod+Up focus up
  117. bindsym $mod+Right focus right
  118.  
  119. # move focused window
  120. bindsym $mod+Shift+j move left
  121. bindsym $mod+Shift+k move down
  122. bindsym $mod+Shift+l move up
  123. bindsym $mod+Shift+semicolon move right
  124.  
  125. # alternatively, you can use the cursor keys:
  126. bindsym $mod+Shift+Left move left
  127. bindsym $mod+Shift+Down move down
  128. bindsym $mod+Shift+Up move up
  129. bindsym $mod+Shift+Right move right
  130.  
  131. # split in horizontal orientation
  132. bindsym $mod+h split h
  133.  
  134. # split in vertical orientation
  135. bindsym $mod+v split v
  136.  
  137. # enter fullscreen mode for the focused container
  138. bindsym $mod+f fullscreen toggle
  139.  
  140. # change container layout (stacked, tabbed, toggle split)
  141. bindsym $mod+s layout stacking
  142. #bindsym $mod+w layout tabbed
  143. bindsym $mod+e layout toggle split
  144.  
  145. # toggle tiling / floating
  146. bindsym $mod+Shift+space floating toggle
  147.  
  148. # change focus between tiling / floating windows
  149. bindsym $mod+space focus mode_toggle
  150.  
  151. # focus the parent container
  152. bindsym $mod+a focus parent
  153.  
  154. # focus the child container
  155. #bindsym $mod+d focus child
  156.  
  157. # Define names for default workspaces for which we configure key bindings later on.
  158. # We use variables to avoid repeating the names in multiple places.
  159. set $ws1 "1"
  160. set $ws2 "2"
  161. set $ws3 "3"
  162. set $ws4 "4"
  163. set $ws5 "5"
  164. set $ws6 "6"
  165. set $ws7 "7"
  166. set $ws8 "8"
  167. set $ws9 "9"
  168. set $ws10 "10"
  169.  
  170. # switch to workspace
  171. bindsym $mod+1 workspace $ws1
  172. bindsym $mod+2 workspace $ws2
  173. bindsym $mod+3 workspace $ws3
  174. bindsym $mod+4 workspace $ws4
  175. bindsym $mod+5 workspace $ws5
  176. bindsym $mod+6 workspace $ws6
  177. bindsym $mod+7 workspace $ws7
  178. bindsym $mod+8 workspace $ws8
  179. bindsym $mod+9 workspace $ws9
  180. bindsym $mod+0 workspace $ws10
  181.  
  182. # move focused container to workspace
  183. bindsym $mod+Shift+1 move container to workspace $ws1
  184. bindsym $mod+Shift+2 move container to workspace $ws2
  185. bindsym $mod+Shift+3 move container to workspace $ws3
  186. bindsym $mod+Shift+4 move container to workspace $ws4
  187. bindsym $mod+Shift+5 move container to workspace $ws5
  188. bindsym $mod+Shift+6 move container to workspace $ws6
  189. bindsym $mod+Shift+7 move container to workspace $ws7
  190. bindsym $mod+Shift+8 move container to workspace $ws8
  191. bindsym $mod+Shift+9 move container to workspace $ws9
  192. bindsym $mod+Shift+0 move container to workspace $ws10
  193.  
  194. # reload the configuration file
  195. bindsym $mod+Shift+c reload
  196. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  197. bindsym $mod+Shift+r restart
  198. # exit i3 (logs you out of your X session)
  199. 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'"
  200.  
  201. # resize window (you can also use the mouse for that)
  202. mode "resize" {
  203. # These bindings trigger as soon as you enter the resize mode
  204.  
  205. # Pressing left will shrink the window’s width.
  206. # Pressing right will grow the window’s width.
  207. # Pressing up will shrink the window’s height.
  208. # Pressing down will grow the window’s height.
  209. bindsym j resize shrink width 10 px or 10 ppt
  210. bindsym k resize grow height 10 px or 10 ppt
  211. bindsym l resize shrink height 10 px or 10 ppt
  212. bindsym semicolon resize grow width 10 px or 10 ppt
  213.  
  214. # same bindings, but for the arrow keys
  215. bindsym Left resize shrink width 10 px or 10 ppt
  216. bindsym Down resize grow height 10 px or 10 ppt
  217. bindsym Up resize shrink height 10 px or 10 ppt
  218. bindsym Right resize grow width 10 px or 10 ppt
  219.  
  220. # back to normal: Enter or Escape or $mod+r
  221. bindsym Return mode "default"
  222. bindsym Escape mode "default"
  223. bindsym $mod+r mode "default"
  224. }
  225.  
  226. bindsym $mod+r mode "resize"
  227.  
  228. # Start i3bar to display a workspace bar (plus the system information i3status
  229. # finds out, if available)
  230. #bar {
  231. # status_command i3status
  232. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement