SHARE
TWEET

i3config

a guest Sep 21st, 2019 299 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. #lock screen config
  8. exec_always --no-startup-id xautolock -n -detectsleep -time 2 -locker "/usr/local/bin/lock_and_blur.sh"
  9. bindsym $mod+Delete exec --no-startup-id /usr/local/bin/lock_and_blur.sh
  10.  
  11. #lock on suspend
  12. #exec_always --no-startup-id xss-lock -- /usr/local/bin/lock_and_blur.sh
  13. # i3 config file (v4)
  14. #
  15. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  16. set $alt Mod4
  17. set $mod Mod1
  18.  
  19. # Font for window titles. Will also be used by the bar unless a different font
  20. # is used in the bar {} block below.
  21. font pango: Inconsolata 11
  22.  
  23. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  24. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  25. #font pango:DejaVu Sans Mono 8
  26.  
  27. # Before i3 v4.8, we used to recommend this one as the default:
  28. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  29. # The font above is very space-efficient, that is, it looks good, sharp and
  30. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  31. # X core fonts rendering does not support right-to-left and this being a bitmap
  32. # font, it doesn’t scale on retina/hidpi displays.
  33.  
  34. # Use Mouse+$mod to drag floating windows to their wanted position
  35. floating_modifier $mod
  36.  
  37. # start a terminal
  38. bindsym $mod+Return exec --no-startup-id terminator
  39. bindsym $mod+t exec --no-startup-id xfce4-terminal
  40.  
  41. # kill focused window
  42. bindsym $mod+Shift+q kill
  43. bindsym $mod+x kill
  44.  
  45. #Compton animation
  46. exec --no-startup-id compton -f --config ~/.config/compton.conf
  47.  
  48. # There also is the (new) i3-dmenu-desktop which only displays applications
  49. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  50. # installed.
  51. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  52. #Screenshot
  53. #bindsym Print exec --no-startup-id  scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Pictures/' | notify-send "Screenshot taken"
  54. # change focus
  55. bindsym $mod+j focus left
  56. bindsym $mod+k focus down
  57. bindsym $mod+l focus up
  58. bindsym $mod+semicolon focus right
  59.  
  60. # alternatively, you can use the cursor keys:
  61. bindsym $mod+Left focus left
  62. bindsym $mod+Down focus down
  63. bindsym $mod+Up focus up
  64. bindsym $mod+Right focus right
  65.  
  66. # move focused window
  67. bindsym $mod+Shift+j move left
  68. bindsym $mod+Shift+k move down
  69. bindsym $mod+Shift+l move up
  70. bindsym $mod+Shift+semicolon move right
  71.  
  72. # alternatively, you can use the cursor keys:
  73. bindsym $mod+Shift+Left move left
  74. bindsym $mod+Shift+Down move down
  75. bindsym $mod+Shift+Up move up
  76. bindsym $mod+Shift+Right move right
  77.  
  78. # split in horizontal orientation
  79. bindsym $mod+h split h
  80.  
  81. # split in vertical orientation
  82. bindsym $mod+v split v
  83.  
  84. # enter fullscreen mode for the focused container
  85. bindsym $mod+f fullscreen toggle
  86.  
  87. # change container layout (stacked, tabbed, toggle split)
  88. bindsym $mod+s layout stacking
  89. bindsym $mod+q layout tabbed
  90. bindsym $mod+e layout toggle split
  91.  
  92. # toggle tiling / floating
  93. bindsym $mod+Shift+space floating toggle
  94.  
  95. # change focus between tiling / floating windows
  96. bindsym $mod+space focus mode_toggle
  97.  
  98. # focus the parent container
  99. bindsym $mod+a focus parent
  100.  
  101. # focus the child container
  102. #bindsym $mod+d focus child
  103.  
  104. # switch to workspace
  105. bindsym $mod+1 workspace number 1
  106. bindsym $mod+2 workspace number 2
  107. bindsym $mod+3 workspace number 3
  108. bindsym $mod+4 workspace number 4
  109. bindsym $mod+5 workspace number 5
  110. bindsym $mod+6 workspace number 6
  111. bindsym $mod+7 workspace number 7
  112. bindsym $mod+8 workspace number 8
  113. bindsym $mod+9 workspace number 9
  114. bindsym $mod+0 workspace number 10
  115.  
  116. # move focused container to workspace
  117. bindsym $mod+Shift+1 move container to workspace number 1
  118. bindsym $mod+Shift+2 move container to workspace number 2
  119. bindsym $mod+Shift+3 move container to workspace number 3
  120. bindsym $mod+Shift+4 move container to workspace number 4
  121. bindsym $mod+Shift+5 move container to workspace number 5
  122. bindsym $mod+Shift+6 move container to workspace number 6
  123. bindsym $mod+Shift+7 move container to workspace number 7
  124. bindsym $mod+Shift+8 move container to workspace number 8
  125. bindsym $mod+Shift+9 move container to workspace number 9
  126. bindsym $mod+Shift+0 move container to workspace number 0
  127.  
  128. #Custom assignment of workspaces
  129. #set $ws1 1
  130. #set $ws2 2
  131. #set $ws3 3
  132. #set $ws4 4
  133. #set $ws5 5
  134. #set $ws6 6
  135. #set $ws7 7
  136. #set $ws8 8
  137. #set $ws9 9
  138. #set $ws0 10
  139.  
  140. # switch to workspace
  141. #bindsym $mod+1 workspace $ws1
  142. #bindsym $mod+2 workspace $ws2
  143. #bindsym $mod+3 workspace $ws3
  144. #bindsym $mod+4 workspace $ws4
  145. #bindsym $mod+5 workspace $ws5
  146. #bindsym $mod+6 workspace $ws6
  147. #bindsym $mod+7 workspace $ws7
  148. #bindsym $mod+8 workspace $ws8
  149. #bindsym $mod+9 workspace $ws9
  150. #bindsym $mod+0 workspace $ws0
  151.  
  152. # move focused container to workspace
  153. #bindsym $mod+Shift+1 move container to workspace $ws1
  154. #bindsym $mod+Shift+2 move container to workspace $ws2
  155. #bindsym $mod+Shift+3 move container to workspace $ws3
  156. #bindsym $mod+Shift+4 move container to workspace $ws4
  157. #bindsym $mod+Shift+5 move container to workspace $ws5
  158. #bindsym $mod+Shift+6 move container to workspace $ws6
  159. #bindsym $mod+Shift+7 move container to workspace $ws7
  160. #bindsym $mod+Shift+8 move container to workspace $ws8
  161. #bindsym $mod+Shift+9 move container to workspace $ws9
  162. #bindsym $mod+Shift+0 move container to workspace $ws0
  163.  
  164. # Renombrar workspace on the fly
  165. bindsym $mod+n exec i3-input -F 'rename workspace to "%s"' -P 'New name for this workspace: '
  166.  
  167. # reload the configuration file
  168. bindsym $mod+Shift+c reload
  169. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  170. bindsym $mod+Shift+r restart
  171. # exit i3 (logs you out of your X session)
  172. 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'"
  173.  
  174. # resize window (you can also use the mouse for that)
  175. mode "resize" {
  176.         # These bindings trigger as soon as you enter the resize mode
  177.  
  178.         # Pressing left will shrink the window’s width.
  179.         # Pressing right will grow the window’s width.
  180.         # Pressing up will shrink the window’s height.
  181.         # Pressing down will grow the window’s height.
  182.         bindsym j resize shrink width 10 px or 10 ppt
  183.         bindsym k resize grow height 10 px or 10 ppt
  184.         bindsym l resize shrink height 10 px or 10 ppt
  185.         bindsym semicolon resize grow width 10 px or 10 ppt
  186.  
  187.         # same bindings, but for the arrow keys
  188.         bindsym Left resize shrink width 10 px or 10 ppt
  189.         bindsym Down resize grow height 10 px or 10 ppt
  190.         bindsym Up resize shrink height 10 px or 10 ppt
  191.         bindsym Right resize grow width 10 px or 10 ppt
  192.  
  193.         # back to normal: Enter or Escape
  194.         bindsym Return mode "default"
  195.         bindsym Escape mode "default"
  196. }
  197.  
  198. # Resize floating window
  199. bindsym $mod+r mode "resize"
  200.  
  201. # Start i3bar to display a workspace bar (plus the system information i3status
  202. # finds out, if available)
  203. # RGB
  204. set $cyan0   #4ec2f7
  205. set $silver0 #e4e4e4
  206. set $orange  #ff8700
  207.  
  208. # RGBA
  209. set $cyan      #4ec2f799
  210. set $acqua   #00708999
  211. set $wine    #72003e99
  212. set $magenta #af005f99
  213. set $silver  #e4e4e499
  214. set $toxic   #8EC00099
  215. set $elegant #0A0A0A
  216. set $bg-color            #2F343F
  217. set $inactive-bg-color   #7A7A7A
  218. set $text-color          #f3f4f5
  219. set $inactive-text-color #676E7D
  220. set $urgent-bg-color     #E53935
  221.  
  222. # window colors
  223. #                       border              background         text                 indicator
  224. client.focused          #cd7056           #cd7056          $text-color          #cd7056
  225. client.unfocused        #91B490           #91B490          #81a586              #91B490
  226. client.focused_inactive #91B490           #91B490          #81a586              #91B490
  227. client.urgent           $urgent-bg-color    $urgent-bg-color   $text-color          #81a856
  228. hide_edge_borders both
  229.  
  230. # Ojo a la solución para transparencia, cuando la barra sea transparente, pasar este comando:
  231. # i3bar_command i3bar -t
  232. # Ponerlo debajo de status_command...
  233.  
  234.  bar {
  235.    
  236. # status_command i3blocks -c ~/.config/i3blocks/config
  237. status_command i3status -c ~/.config/i3/i3status.conf  
  238. # i3bar_command i3bar -t
  239.  
  240.     tray_output primary
  241.     font pango: Iosevka Light 10       
  242.     colors {
  243.         background $elegant
  244.             separator $elegant
  245.         #                  border             background         text
  246.         focused_workspace  $elegant          $elegant          $text-color
  247.         inactive_workspace $elegant $elegant   $inactive-text-color
  248.         urgent_workspace   $acqua   $acqua   $text-color
  249.     }
  250. }
  251. #Scroll config
  252. exec --no-startup-id synclient NaturalScrollling=1 VertScrollDelta=-113
  253. gaps inner 18
  254. gaps outer 0
  255. smart_gaps on
  256. smart_borders on
  257. new_window pixel 2
  258. for_window [class="^.*"] border pixel 4
  259.  
  260. #d-menu config
  261. bindsym $mod+d exec --no-startup-id dmenu_run -fn 'Iosevkalight:pixelsize=14'
  262.  
  263. #Volume config
  264. #bindsym XF86AudioRaiseVolume exec --no-startup-id amixer sset Master 5%+ ; exec --no-startup-id pkill -RTMIN+10 i3blocks
  265. #bindsym XF86AudioLowerVolume exec --no-startup-id  amixer sset Master 5%- ; exec --no-startup-id pkill -RTMIN+10 i3blocks
  266. #bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 1+ toggle ; exec --no-startup-id pkill -RTMIN+10 i3blocks
  267.  
  268. #Brightness config
  269. #bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5
  270. #bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5
  271.  
  272. #Controles de brillo y volumen para Chromebook
  273.  
  274. # Pulse Audio controls
  275. bindsym F10 exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  276. bindsym F9 exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  277. bindsym F8 exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
  278.  
  279. # Screen brightness controls es necesario instalar el paquete light
  280. # Este funciona mejor que xbacklight, que puede ser la alternativa en otros casos
  281. # Una vez instalado, light solo funciona con sudo, así que hay que hacer lo siguiente: sudo chmod a+w /sys/class/backlight/intel_backlight/brightness
  282. # O bien ver qué dispositivo controla el brillo dentro de /sys/class/backlight
  283. # Eso ya permite la ejecución de light por todos los usuarios
  284.  
  285. bindsym F7 exec --no-startup-id light -A 5 # increase screen brightness
  286. bindsym F6 exec --no-startup-id light -U 5
  287.  # decrease screen brightness
  288.  
  289. #Wallpaper confg
  290. exec_always --no-startup-id nitrogen --restore
  291.  
  292. #Custom Shortcuts
  293. bindsym $mod+w exec --no-startup-id google-chrome
  294. bindsym $alt+F4 kill
  295. # bindsym $alt+t exec --no-startup-id thunar --class=thunar
  296.  
  297. #Touchpad config
  298. #exec --no-startup-id xinput --set-prop 10 "Synaptics Two-Finger Scrolling" 1 0
  299. #exec --no-startup-id xinput --set-prop 10 "Synaptics Scrolling Distance" -113 -113
  300.  
  301. #floating max size
  302. #floating_maximum_size 650 x 350
  303.  
  304. #redshift config
  305. #exec_always --no-startup-id redshift-gtk
  306.  
  307. #for_window [class="^.*"] border pixel 0
  308.  
  309. # Ejecutar programas de inicio
  310.  
  311. # exec --no-startup-id dropbox start
  312. exec --no-startup-id nm-applet
  313. # exec --no-startup-id volumeicon
  314.  
  315.  
  316. # exec --no-startup-id blueman-applet
  317.  
  318. # Y esto para habilitar scroll horizontal y natural con dos dedos
  319. exec --no-startup-id synclient VertScrollDelta=111 HorizTwoFingerScroll=1
  320. #exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=secrets --password-store=gnome
  321. # Hacer que el persista el esquema de pywal
  322. # exec --no-startup-id wal -R
  323. # Updater
  324. # exec --no-startup-id pamac-tray
  325.  
  326. # bar toggle, hide or show
  327. bindsym $mod+b bar mode toggle
  328.  
  329. # Screenshoter de xfce4
  330. bindsym Shift+F5 exec --no-startup-id xfce4-screenshooter
  331.  
  332. # Ejecuta Insync como ventana flotante
  333. for_window [class="Insync"] floating enable
  334. exec --no-startup-id insync
  335.  
  336. # Ejecuta Nitrogen como ventana flotante
  337. for_window [class="Nitrogen"] floating enable
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top