dobrado

i3-gaps config

Apr 30th, 2019
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.07 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1)3.
  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. # APPEARANCE SETTINGS
  15.  
  16. # TOKYO SKYLINE THEME
  17.  
  18. # set color variables
  19. # optional theme colorscheme
  20. set $grey #212121
  21. set $valencia #e64a19
  22. set $magenta #a673a6
  23. set $blue #7182A8
  24. set $cyan #6da3a1
  25. set $black #000000
  26. set $white #b7bbbd
  27. set $yellow #27c282
  28. set $red #aa0e50
  29. set $green #1dcc9f
  30.  
  31. # theme colors
  32. set $bg-color #fdd835
  33. set $inactive-bg-color #212121
  34. set $text-color #ffffff
  35. set $inactive-text-color #212121
  36. set $urgent-bg-color #e64a19
  37.  
  38. # set window colors
  39. # class border background text indicator
  40. client.focused $bg-color $bg-color $white $bg-color
  41. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $bg-color
  42. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $bg-color
  43. client.urgent $urgent-bg-color $urgent-bg-color $text-color $bg-color
  44. client.background $bg-color
  45.  
  46. # pixel borders remove title bars completely because of compton shadows
  47. for_window [class="^.*"] border pixel 3
  48.  
  49. # restore background
  50. exec --no-startup-id nitrogen --restore
  51.  
  52. # shadows and transitions with compton
  53. exec --no-startup-id compton --config ~/.config/compton.conf -b
  54.  
  55. # polybar
  56. exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  57.  
  58.  
  59. # i3-gaps
  60. # smart_borders on # borders only if more than one container in the workspace
  61. # smart_gaps on # gaps only if more than one container in the workspace
  62. gaps inner 10 # global gap size
  63.  
  64. # Font for window titles. Will also be used by the bar unless a different font
  65. # is used in the bar {} block below.
  66. font pango:Roboto 8
  67.  
  68. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  69. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  70. #font pango:DejaVu Sans Mono 8
  71.  
  72. # Before i3 v4.8, we used to recommend this one as the default:
  73. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  74. # The font above is very space-efficient, that is, it looks good, sharp and
  75. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  76. # X core fonts rendering does not support right-to-left and this being a bitmap
  77. # font, it doesn’t scale on retina/hidpi displays.
  78.  
  79. # Use Mouse+$mod to drag floating windows to their wanted position
  80. floating_modifier $mod
  81.  
  82. # start a terminal
  83. bindsym $mod+T exec tilix
  84.  
  85. # Run Rofi
  86. bindsym $mod+Return exec "rofi -combi-modi window,drun,ssh -theme solarized -show combi"
  87.  
  88. # kill focused window
  89. bindsym $mod+Shift+q kill
  90.  
  91. # start dmenu (a program launcher)
  92. bindsym $mod+d exec dmenu_run
  93. # There also is the (new) i3-dmenu-desktop which only displays applications
  94. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  95. # installed.
  96. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  97.  
  98. # change focus
  99. bindsym $mod+j focus left
  100. bindsym $mod+k focus down
  101. bindsym $mod+l focus up
  102. bindsym $mod+ccedilla focus right
  103.  
  104. # alternatively, you can use the cursor keys:
  105. bindsym $mod+Left focus left
  106. bindsym $mod+Down focus down
  107. bindsym $mod+Up focus up
  108. bindsym $mod+Right focus right
  109.  
  110. # move focused window
  111. bindsym $mod+Shift+j move left
  112. bindsym $mod+Shift+k move down
  113. bindsym $mod+Shift+l move up
  114. bindsym $mod+Shift+ccedilla move right
  115.  
  116. # alternatively, you can use the cursor keys:
  117. bindsym $mod+Shift+Left move left
  118. bindsym $mod+Shift+Down move down
  119. bindsym $mod+Shift+Up move up
  120. bindsym $mod+Shift+Right move right
  121.  
  122. # split in horizontal orientation
  123. bindsym $mod+h split h
  124.  
  125. # split in vertical orientation
  126. bindsym $mod+v split v
  127.  
  128. # enter fullscreen mode for the focused container
  129. bindsym $mod+f fullscreen toggle
  130.  
  131. # change container layout (stacked, tabbed, toggle split)
  132. bindsym $mod+s layout stacking
  133. bindsym $mod+w layout tabbed
  134. bindsym $mod+e layout toggle split
  135.  
  136. # toggle tiling / floating
  137. bindsym $mod+Shift+space floating toggle
  138.  
  139. # change focus between tiling / floating windows
  140. bindsym $mod+space focus mode_toggle
  141.  
  142. # focus the parent container
  143. bindsym $mod+a focus parent
  144.  
  145. # volume control (increment)
  146. bindsym $mod+F3 exec amixer -q sset Master 3%+
  147. bindsym $mod+F2 exec amixer -q sset Master 3%-
  148. bindsym $mod+F1 exec amixer -q sset Master toggle
  149.  
  150. # Sreen brightness controls
  151. bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness
  152. bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness
  153.  
  154.  
  155. # focus the child container
  156. #bindsym $mod+d focus child
  157.  
  158. # Define names for default workspaces for which we configure key bindings later on.
  159. # We use variables to avoid repeating the names in multiple places.
  160. set $ws1 "1"
  161. set $ws2 "2"
  162. set $ws3 "3"
  163. set $ws4 "4"
  164. set $ws5 "5"
  165. set $ws6 "6"
  166. set $ws7 "7"
  167. set $ws8 "8"
  168. set $ws9 "9"
  169. set $ws10 "10"
  170.  
  171. # switch to workspace
  172. bindsym $mod+1 workspace $ws1
  173. bindsym $mod+2 workspace $ws2
  174. bindsym $mod+3 workspace $ws3
  175. bindsym $mod+4 workspace $ws4
  176. bindsym $mod+5 workspace $ws5
  177. bindsym $mod+6 workspace $ws6
  178. bindsym $mod+7 workspace $ws7
  179. bindsym $mod+8 workspace $ws8
  180. bindsym $mod+9 workspace $ws9
  181. bindsym $mod+0 workspace $ws10
  182.  
  183. # move focused container to workspace
  184. bindsym $mod+Shift+1 move container to workspace $ws1
  185. bindsym $mod+Shift+2 move container to workspace $ws2
  186. bindsym $mod+Shift+3 move container to workspace $ws3
  187. bindsym $mod+Shift+4 move container to workspace $ws4
  188. bindsym $mod+Shift+5 move container to workspace $ws5
  189. bindsym $mod+Shift+6 move container to workspace $ws6
  190. bindsym $mod+Shift+7 move container to workspace $ws7
  191. bindsym $mod+Shift+8 move container to workspace $ws8
  192. bindsym $mod+Shift+9 move container to workspace $ws9
  193. bindsym $mod+Shift+0 move container to workspace $ws10
  194.  
  195. # reload the configuration file
  196. bindsym $mod+Shift+c reload
  197. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  198. bindsym $mod+Shift+r restart
  199. # exit i3 (logs you out of your X session)
  200. 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'"
  201.  
  202. # resize window (you can also use the mouse for that)
  203. # MOVE AND RESIZE WINDOWS
  204.  
  205. # use Mouse+$mod to drag floating windows to their wanted position
  206. floating_modifier $mod
  207.  
  208. # resize window (you can also use the mouse for that)
  209. bindsym $mod+r mode "resize"
  210.  
  211. mode "resize" {
  212. # These bindings trigger as soon as you enter the resize mode
  213.  
  214. # Pressing left will shrink the window’s width.
  215. # Pressing right will grow the window’s width.
  216. # Pressing up will shrink the window’s height.
  217. # Pressing down will grow the window’s height.
  218. bindsym j resize shrink width 10 px or 10 ppt
  219. bindsym k resize grow height 10 px or 10 ppt
  220. bindsym i resize shrink height 10 px or 10 ppt
  221. bindsym l resize grow width 10 px or 10 ppt
  222.  
  223. # same bindings, but for the arrow keys
  224. bindsym Left resize shrink width 10 px or 10 ppt
  225. bindsym Down resize grow height 10 px or 10 ppt
  226. bindsym Up resize shrink height 10 px or 10 ppt
  227. bindsym Right resize grow width 10 px or 10 ppt
  228.  
  229. # back to normal: Enter or Escape
  230. bindsym Return mode "default"
  231. bindsym Escape mode "default"
  232. }
  233.  
  234.  
  235. # START AND CONFIGURE i3bar
  236.  
  237.  
  238.  
  239. # LOCK, SUSPEND KEYBINDS
  240.  
  241. # bindsym Control+$mod+l exec --no-startup-id i3lock -i ~/lockimage.png && xrandr --output eDP-1 --brightness 0.3
  242. # bindsym Control+$mod+s exec --no-startup-id i3lock -i ~/lockimage.png && xrandr --output eDP-1 --brightness 0.3 && systemctl suspend
Advertisement
Add Comment
Please, Sign In to add comment