Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # i3 config file (v4)
  2. #
  3. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  4. #
  5. # This config file uses keycodes (bindsym) and was written for the QWERTY
  6. # layout.
  7. #
  8. # To get a config file with the same key positions, but for your current
  9. # layout, use the i3-config-wizard
  10. #
  11.  
  12. # Font for window titles. Will also be used by the bar unless a different font
  13. # is used in the bar {} block below.
  14. #font pango:monospace 14
  15.  
  16. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  17. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  18. font pango:Inconsolata 12
  19.  
  20. for_window [class="^.*"] border pixel 0
  21.  
  22. gaps inner 17
  23. gaps outer 0
  24.  
  25. new_window pixel 20
  26. new_float pixel 20
  27.  
  28. # Hybrid colors
  29. set $back               #1d1F21
  30. set $black              #282A2E
  31. set $grey               #373B41
  32. set $lightgrey          #707880
  33. set $white              #C5C8C6
  34. set $yellow             #F0C674
  35. set $red                #CC6666
  36. set $darkred            #A54242
  37. set $green              #B5BD56
  38.  
  39. #class                  border      backgr.     text        split
  40. client.focused          $green     $green       $black      $red
  41. client.focused_inactive $grey       $grey       $lightgrey  $grey
  42. client.unfocused        $grey       $grey       $lightgrey  $grey
  43. client.urgent           $red        $red        $black      $red
  44. client.background       $back
  45.  
  46.  
  47.  
  48. # Before i3 v4.8, we used to recommend this one as the default:
  49. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  50. # The font above is very space-efficient, that is, it looks good, sharp and
  51. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  52. # X core fonts rendering does not support right-to-left and this being a bitmap
  53. # font, it doesn’t scale on retina/hidpi displays.
  54.  
  55. # use these keys for focus, movement, and resize directions when reaching for
  56. set $up l
  57. set $down k
  58. set $left j
  59. set $right semicolon
  60.  
  61. # use Mouse+Mod4 to drag floating windows to their wanted position
  62. floating_modifier Mod4
  63.  
  64. # start a terminal
  65. bindsym Mod4+Return exec i3-sensible-terminal
  66.  
  67. # kill focused window
  68. bindsym Mod4+Shift+q kill
  69.  
  70. # start dmenu (a program launcher)
  71.  
  72. bindsym Mod4+d exec rofi -show combi -combi-modi 'window#drun#run' -modi combi
  73.  
  74. # There also is the (new) i3-dmenu-desktop which only displays applications
  75. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  76. # installed.
  77. # bindsym Mod4+d exec --no-startup-id i3-dmenu-desktop
  78.  
  79. # change focus
  80. bindsym Mod4+$left focus left
  81. bindsym Mod4+$down focus down
  82. bindsym Mod4+$up focus up
  83. bindsym Mod4+$right focus right
  84.  
  85. # alternatively, you can use the cursor keys:
  86. bindsym Mod4+Left focus left
  87. bindsym Mod4+Down focus down
  88. bindsym Mod4+Up focus up
  89. bindsym Mod4+Right focus right
  90.  
  91. # move focused window
  92. bindsym Mod4+Shift+$left move left
  93. bindsym Mod4+Shift+$down move down
  94. bindsym Mod4+Shift+$up move up
  95. bindsym Mod4+Shift+$right move right
  96.  
  97. # alternatively, you can use the cursor keys:
  98. bindsym Mod4+Shift+Left move left
  99. bindsym Mod4+Shift+Down move down
  100. bindsym Mod4+Shift+Up move up
  101. bindsym Mod4+Shift+Right move right
  102.  
  103. # split in horizontal orientation
  104. bindsym Mod4+h split h
  105.  
  106. # split in vertical orientation
  107. bindsym Mod4+v split v
  108.  
  109. # enter fullscreen mode for the focused container
  110. bindsym Mod4+f fullscreen toggle
  111.  
  112. # change container layout (stacked, tabbed, toggle split)
  113. bindsym Mod4+s layout stacking
  114. bindsym Mod4+w layout tabbed
  115. bindsym Mod4+e layout toggle split
  116.  
  117. # toggle tiling / floating
  118. bindsym Mod4+Shift+space floating toggle
  119.  
  120. # change focus between tiling / floating windows
  121. bindsym Mod4+space focus mode_toggle
  122.  
  123. # focus the parent container
  124. bindsym Mod4+a focus parent
  125.  
  126. # focus the child container
  127. #bindsym Mod4+d focus child
  128.  
  129. # move the currently focused window to the scratchpad
  130. bindsym Mod4+Shift+minus move scratchpad
  131.  
  132. # Show the next scratchpad window or hide the focused scratchpad window.
  133. # If there are multiple scratchpad windows, this command cycles through them.
  134. bindsym Mod4+minus scratchpad show
  135.  
  136. # switch to workspace
  137. bindsym Mod4+1 workspace 1
  138. bindsym Mod4+2 workspace 2
  139. bindsym Mod4+3 workspace 3
  140. bindsym Mod4+4 workspace 4
  141. bindsym Mod4+5 workspace 5
  142. bindsym Mod4+6 workspace 6
  143. bindsym Mod4+7 workspace 7
  144. bindsym Mod4+8 workspace 8
  145. bindsym Mod4+9 workspace 9
  146. bindsym Mod4+0 workspace 10
  147.  
  148. # move focused container to workspace
  149. bindsym Mod4+Shift+1 move container to workspace 1
  150. bindsym Mod4+Shift+2 move container to workspace 2
  151. bindsym Mod4+Shift+3 move container to workspace 3
  152. bindsym Mod4+Shift+4 move container to workspace 4
  153. bindsym Mod4+Shift+5 move container to workspace 5
  154. bindsym Mod4+Shift+6 move container to workspace 6
  155. bindsym Mod4+Shift+7 move container to workspace 7
  156. bindsym Mod4+Shift+8 move container to workspace 8
  157. bindsym Mod4+Shift+9 move container to workspace 9
  158. bindsym Mod4+Shift+0 move container to workspace 10
  159.  
  160. # reload the configuration file
  161. bindsym Mod4+Shift+c reload
  162. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  163. bindsym Mod4+Shift+r restart
  164. # exit i3 (logs you out of your X session)
  165. bindsym Mod4+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'"
  166.  
  167. # resize window (you can also use the mouse for that)
  168. mode "resize" {
  169.         # These bindings trigger as soon as you enter the resize mode
  170.  
  171.         # Pressing left will shrink the window’s width.
  172.         # Pressing right will grow the window’s width.
  173.         # Pressing up will shrink the window’s height.
  174.         # Pressing down will grow the window’s height.
  175.         bindsym $left       resize shrink width 10 px or 10 ppt
  176.         bindsym $down       resize grow height 10 px or 10 ppt
  177.         bindsym $up         resize shrink height 10 px or 10 ppt
  178.         bindsym $right      resize grow width 10 px or 10 ppt
  179.  
  180.         # same bindings, but for the arrow keys
  181.         bindsym Left        resize shrink width 10 px or 10 ppt
  182.         bindsym Down        resize grow height 10 px or 10 ppt
  183.         bindsym Up          resize shrink height 10 px or 10 ppt
  184.         bindsym Right       resize grow width 10 px or 10 ppt
  185.  
  186.         # back to normal: Enter or Escape
  187.         bindsym Return mode "defauwlt"
  188.         bindsym Escape mode "default"
  189. }
  190.  
  191. # Pulse Audio controls
  192. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  193. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  194. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  195.  
  196. # Sreen brightness controls
  197. bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness
  198. bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness
  199.  
  200.  
  201. bindsym Mod4+r mode "resize"
  202.  
  203. # Start i3bar to display a workspace bar (plus the system information i3status
  204. # finds out, if available)
  205. bar {
  206.         position top
  207.         workspace_buttons yes
  208.         status_command i3status
  209. }
  210.  
  211. exec --no-startup-id xautolock -time 240 -locker 'i3lock -d -c 000000'
  212.  
  213. # resize window (you can also use the mouse for that)
  214. mode "resize" {
  215.         # These bindings trigger as soon as you enter the resize mode
  216.  
  217.         # Pressing left will shrink the window’s width.
  218.         # Pressing right will grow the window’s width.
  219.         # Pressing up will shrink the window’s height.
  220.         # Pressing down will grow the window’s height.
  221.         bindsym h resize shrink width 10 px or 10 ppt
  222.         bindsym j resize grow height 10 px or 10 ppt
  223.         bindsym k resize shrink height 10 px or 10 ppt
  224.         bindsym l resize grow width 10 px or 10 ppt
  225.  
  226.         # same bindings, but for the arrow keys
  227.         bindsym Left resize shrink width 10 px or 10 ppt
  228.         bindsym Down resize grow height 10 px or 10 ppt
  229.         bindsym Up resize shrink height 10 px or 10 ppt
  230.         bindsym Right resize grow width 10 px or 10 ppt
  231.  
  232.         # back to normal: Enter or Escape
  233.         bindsym Return mode "default"
  234.         bindsym Escape mode "default"
  235. }
  236.  
  237.  
  238. #bindsym $mod+r mode "resize"
  239.  
  240. exec --no-startup-id feh --bg-fill ~/Pictures/wallpapers/satel.jpg
  241. #######################################################################
  242. # automatically start i3-config-wizard to offer the user to create a
  243. # keysym-based config which used their favorite modifier (alt or windows)
  244. #
  245. # i3-config-wizard will not launch if there already is a config file
  246. # in ~/.i3/config.
  247. #
  248. # Please remove the following exec line:
  249. #######################################################################
  250. exec i3-config-wizard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement