dobrado

i3

May 5th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.22 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 4
  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. # Network applet
  59. exec --no-startup-id nm-applet
  60.  
  61. # i3-gaps
  62. # smart_borders on # borders only if more than one container in the workspace
  63. # smart_gaps on # gaps only if more than one container in the workspace
  64. gaps inner 10 # global gap size
  65.  
  66. # Font for window titles. Will also be used by the bar unless a different font
  67. # is used in the bar {} block below.
  68. font pango:Roboto 8
  69.  
  70. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  71. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  72. #font pango:DejaVu Sans Mono 8
  73.  
  74. # Before i3 v4.8, we used to recommend this one as the default:
  75. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  76. # The font above is very space-efficient, that is, it looks good, sharp and
  77. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  78. # X core fonts rendering does not support right-to-left and this being a bitmap
  79. # font, it doesn’t scale on retina/hidpi displays.
  80.  
  81. # Use Mouse+$mod to drag floating windows to their wanted position
  82. floating_modifier $mod
  83.  
  84. # start a terminal
  85. bindsym $mod+T exec tilix
  86.  
  87. # Run Rofi
  88. bindsym $mod+Return exec "rofi -modi run,drun -show drun -xoffset 14 -yoffset -52 -line-padding 4 -columns 1 -width 20 -lines 10 -padding 25 -hide-scrollbar -show-icons -drun-icon-theme"
  89.  
  90. # kill focused window
  91. bindsym $mod+Shift+q kill
  92.  
  93. # start dmenu (a program launcher)
  94. bindsym $mod+d exec dmenu_run
  95. # There also is the (new) i3-dmenu-desktop which only displays applications
  96. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  97. # installed.
  98. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  99.  
  100. # change focus
  101. bindsym $mod+j focus left
  102. bindsym $mod+k focus down
  103. bindsym $mod+l focus up
  104. bindsym $mod+ccedilla focus right
  105.  
  106. # alternatively, you can use the cursor keys:
  107. bindsym $mod+Left focus left
  108. bindsym $mod+Down focus down
  109. bindsym $mod+Up focus up
  110. bindsym $mod+Right focus right
  111.  
  112. # move focused window
  113. bindsym $mod+Shift+j move left
  114. bindsym $mod+Shift+k move down
  115. bindsym $mod+Shift+l move up
  116. bindsym $mod+Shift+ccedilla move right
  117.  
  118. # alternatively, you can use the cursor keys:
  119. bindsym $mod+Shift+Left move left
  120. bindsym $mod+Shift+Down move down
  121. bindsym $mod+Shift+Up move up
  122. bindsym $mod+Shift+Right move right
  123.  
  124. # split in horizontal orientation
  125. bindsym $mod+h split h
  126.  
  127. # split in vertical orientation
  128. bindsym $mod+v split v
  129.  
  130. # enter fullscreen mode for the focused container
  131. bindsym $mod+f fullscreen toggle
  132.  
  133. # change container layout (stacked, tabbed, toggle split)
  134. bindsym $mod+s layout stacking
  135. bindsym $mod+w layout tabbed
  136. bindsym $mod+e layout toggle split
  137.  
  138. # toggle tiling / floating
  139. bindsym $mod+Shift+space floating toggle
  140.  
  141. # change focus between tiling / floating windows
  142. bindsym $mod+space focus mode_toggle
  143.  
  144. # focus the parent container
  145. bindsym $mod+a focus parent
  146.  
  147. # volume control (increment)
  148. bindsym $mod+F3 exec amixer -q sset Master 3%+
  149. bindsym $mod+F2 exec amixer -q sset Master 3%-
  150. bindsym $mod+F1 exec amixer -q sset Master toggle
  151.  
  152. # Sreen brightness controls
  153. bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness
  154. bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness
  155.  
  156.  
  157. # focus the child container
  158. #bindsym $mod+d focus child
  159.  
  160. # Define names for default workspaces for which we configure key bindings later on.
  161. # We use variables to avoid repeating the names in multiple places.
  162. set $ws1 "1"
  163. set $ws2 "2"
  164. set $ws3 "3"
  165. set $ws4 "4"
  166. set $ws5 "5"
  167. set $ws6 "6"
  168. set $ws7 "7"
  169. set $ws8 "8"
  170. set $ws9 "9"
  171. set $ws10 "10"
  172.  
  173. # switch to workspace
  174. bindsym $mod+1 workspace $ws1
  175. bindsym $mod+2 workspace $ws2
  176. bindsym $mod+3 workspace $ws3
  177. bindsym $mod+4 workspace $ws4
  178. bindsym $mod+5 workspace $ws5
  179. bindsym $mod+6 workspace $ws6
  180. bindsym $mod+7 workspace $ws7
  181. bindsym $mod+8 workspace $ws8
  182. bindsym $mod+9 workspace $ws9
  183. bindsym $mod+0 workspace $ws10
  184.  
  185. # move focused container to workspace
  186. bindsym $mod+Shift+1 move container to workspace $ws1
  187. bindsym $mod+Shift+2 move container to workspace $ws2
  188. bindsym $mod+Shift+3 move container to workspace $ws3
  189. bindsym $mod+Shift+4 move container to workspace $ws4
  190. bindsym $mod+Shift+5 move container to workspace $ws5
  191. bindsym $mod+Shift+6 move container to workspace $ws6
  192. bindsym $mod+Shift+7 move container to workspace $ws7
  193. bindsym $mod+Shift+8 move container to workspace $ws8
  194. bindsym $mod+Shift+9 move container to workspace $ws9
  195. bindsym $mod+Shift+0 move container to workspace $ws10
  196.  
  197. # reload the configuration file
  198. bindsym $mod+Shift+c reload
  199. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  200. bindsym $mod+Shift+r restart
  201. # exit i3 (logs you out of your X session)
  202. 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'"
  203.  
  204. # resize window (you can also use the mouse for that)
  205. # MOVE AND RESIZE WINDOWS
  206.  
  207. # use Mouse+$mod to drag floating windows to their wanted position
  208. floating_modifier $mod
  209.  
  210. # resize window (you can also use the mouse for that)
  211. bindsym $mod+r mode "resize"
  212.  
  213. mode "resize" {
  214. # These bindings trigger as soon as you enter the resize mode
  215.  
  216. # Pressing left will shrink the window’s width.
  217. # Pressing right will grow the window’s width.
  218. # Pressing up will shrink the window’s height.
  219. # Pressing down will grow the window’s height.
  220. bindsym j resize shrink width 10 px or 10 ppt
  221. bindsym k resize grow height 10 px or 10 ppt
  222. bindsym i resize shrink height 10 px or 10 ppt
  223. bindsym l resize grow width 10 px or 10 ppt
  224.  
  225. # same bindings, but for the arrow keys
  226. bindsym Left resize shrink width 10 px or 10 ppt
  227. bindsym Down resize grow height 10 px or 10 ppt
  228. bindsym Up resize shrink height 10 px or 10 ppt
  229. bindsym Right resize grow width 10 px or 10 ppt
  230.  
  231. # back to normal: Enter or Escape
  232. bindsym Return mode "default"
  233. bindsym Escape mode "default"
  234. }
  235.  
  236.  
  237. # START AND CONFIGURE i3bar
  238.  
  239.  
  240.  
  241. # LOCK, SUSPEND KEYBINDS
  242.  
  243. # bindsym Control+$mod+l exec --no-startup-id i3lock -i ~/lockimage.png && xrandr --output eDP-1 --brightness 0.3
  244. # 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