config 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. # i3 config file (v4)
  8. #
  9. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  10. set $mod Mod4
  11. # Font for window titles. Will also be used by the bar unless a different font
  12. # is used in the bar {} block below.
  13. font pango:monospace 8
  14. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  15. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  16. #font pango:DejaVu Sans Mono 8
  17. # Before i3 v4.8, we used to recommend this one as the default:
  18. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  19. # The font above is very space-efficient, that is, it looks good, sharp and
  20. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  21. # X core fonts rendering does not support right-to-left and this being a bitmap
  22. # font, it doesn’t scale on retina/hidpi displays.
  23. # Use Mouse+$mod to drag floating windows to their wanted position
  24. floating_modifier $mod
  25. # start a terminal
  26. # bindsym $mod+Return exec i3-sensible-terminal
  27. bindsym $mod+Return exec sakura
  28. # kill focused window
  29. bindsym $mod+Shift+q kill
  30. # start dmenu (a program launcher)
  31. # bindsym $mod+d exec dmenu_run
  32. # bindsym $mod+d exec dmenu_run -p Menu: -l 3 -nb "#616161" -nf "#BDBDBD" -sf "#FFFF00" -fn Hack
  33. # Rofi menu
  34. bindsym $mod+d exec "rofi -modi window,drun,run -show drun -sidebar-mode -color-window '#212121, #212121, #616161' -color-normal '#212121, #CACCD1, #212121, #616161, #FFFFFF' -color-active '#616161, #FFFFFF, #616161, #616161, #FFFFFF' -font 'Noto Sans 12'"
  35. # There also is the (new) i3-dmenu-desktop which only displays applications
  36. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  37. # installed.
  38. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  39. # change focus
  40. bindsym $mod+j focus left
  41. bindsym $mod+k focus down
  42. bindsym $mod+l focus up
  43. bindsym $mod+ntilde focus right
  44. # alternatively, you can use the cursor keys:
  45. bindsym $mod+Left focus left
  46. bindsym $mod+Down focus down
  47. bindsym $mod+Up focus up
  48. bindsym $mod+Right focus right
  49. # move focused window
  50. bindsym $mod+Shift+j move left
  51. bindsym $mod+Shift+k move down
  52. bindsym $mod+Shift+l move up
  53. bindsym $mod+Shift+ntilde move right
  54. # alternatively, you can use the cursor keys:
  55. bindsym $mod+Shift+Left move left
  56. bindsym $mod+Shift+Down move down
  57. bindsym $mod+Shift+Up move up
  58. bindsym $mod+Shift+Right move right
  59. # split in horizontal orientation
  60. bindsym $mod+h split h
  61. # split in vertical orientation
  62. bindsym $mod+v split v
  63. # enter fullscreen mode for the focused container
  64. bindsym $mod+f fullscreen toggle
  65. # change container layout (stacked, tabbed, toggle split)
  66. bindsym $mod+s layout stacking
  67. bindsym $mod+w layout tabbed
  68. bindsym $mod+e layout toggle split
  69. # toggle tiling / floating
  70. bindsym $mod+Shift+space floating toggle
  71. # change focus between tiling / floating windows
  72. bindsym $mod+space focus mode_toggle
  73. # focus the parent container
  74. bindsym $mod+a focus parent
  75. # focus the child container
  76. #bindsym $mod+d focus child
  77. set $tag1 "1: "
  78. set $tag2 "2: "
  79. set $tag3 "3: "
  80. set $tag4 "4: "
  81. set $tag5 "5: "
  82. set $tag6 "6: "
  83. set $tag7 "7: "
  84. set $tag8 "8: "
  85. set $tag9 "9: "
  86. set $tag0 "10: "
  87. # switch to workspace
  88. bindsym $mod+1 workspace $tag1
  89. bindsym $mod+2 workspace $tag2
  90. bindsym $mod+3 workspace $tag3
  91. bindsym $mod+4 workspace $tag4
  92. bindsym $mod+5 workspace $tag5
  93. bindsym $mod+6 workspace $tag6
  94. bindsym $mod+7 workspace $tag7
  95. bindsym $mod+8 workspace $tag8
  96. bindsym $mod+9 workspace $tag9
  97. bindsym $mod+0 workspace $tag0
  98. # move focused container to workspace
  99. bindsym $mod+Shift+1 move container to workspace $tag1
  100. bindsym $mod+Shift+2 move container to workspace $tag2
  101. bindsym $mod+Shift+3 move container to workspace $tag3
  102. bindsym $mod+Shift+4 move container to workspace $tag4
  103. bindsym $mod+Shift+5 move container to workspace $tag5
  104. bindsym $mod+Shift+6 move container to workspace $tag6
  105. bindsym $mod+Shift+7 move container to workspace $tag7
  106. bindsym $mod+Shift+8 move container to workspace $tag8
  107. bindsym $mod+Shift+9 move container to workspace $tag9
  108. bindsym $mod+Shift+0 move container to workspace $tag0
  109. # Assign to programs
  110. assign [class=Sakura] $tag1
  111. assign [class=Iceweasel|Gajim|qTox|Transmission-gtk] $tag2
  112. assign [class=File-roller|Thunar] $tag3
  113. assign [class=Emacs|Epdfview|Geany|Gucharmap] $tag4
  114. assign [instance="soffice" class="libreoffice"] $tag4
  115. assign [class="libreoffice"] $tag4
  116. assign [class="^(?i)libreoffice-*"] $tag4
  117. assign [class="^(?i)libreoffice.*"] $tag4
  118. assign [class=Icedove] $tag5
  119. assign [class=Ardour|Audacious|Audacity|Cheese|Ghb|Gimp*|Inkscape|mpv|Mumble|Simplescreenrecorder|Vlc|Xfburn] $tag6
  120. assign [instance=irc] $tag7
  121. assign [class=Arandr|Gparted|Lxappearance|Lxrandr|Lxtask|Pavucontrol] $tag8
  122. # Programs floating
  123. # class
  124. for_window [class="(?i)firetools"] floating enable
  125. for_window [class="(?i)lxappearance"] floating enable
  126. for_window [class="(?i)pavucontrol"] floating enable, move position mouse
  127. for_window [class="(?i)pinentry"] floating enable
  128. for_window [class="(?i)simplescreenrecorder"] floating enable
  129. for_window [class="(?i)transmission"] floating enable
  130. # title
  131. for_window [title="(?i)pulseaudio multiband EQ"] floating enable
  132. # window_role
  133. for_window [window_role="(?i)about"] floating enable
  134. for_window [window_role="(?i)organizer"] floating enable
  135. for_window [window_role="(?i)pop-up"] floating enable
  136. for_window [window_role="(?i)task_dialog"] floating enable
  137. # Programs focus
  138. for_window [class="Sakura"] focus
  139. for_window [class="Emacs"] focus
  140. # reload the configuration file
  141. bindsym $mod+Shift+c reload
  142. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  143. bindsym $mod+Shift+r restart
  144. # exit i3 (logs you out of your X session)
  145. 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'"
  146. # resize window (you can also use the mouse for that)
  147. mode "resize" {
  148. # These bindings trigger as soon as you enter the resize mode
  149. # Pressing left will shrink the window’s width.
  150. # Pressing right will grow the window’s width.
  151. # Pressing up will shrink the window’s height.
  152. # Pressing down will grow the window’s height.
  153. bindsym j resize shrink width 3 px or 3 ppt
  154. bindsym k resize grow height 3 px or 3 ppt
  155. bindsym l resize shrink height 3 px or 3 ppt
  156. bindsym ntilde resize grow width 3 px or 3 ppt
  157. # same bindings, but for the arrow keys
  158. bindsym Left resize shrink width 3 px or 3 ppt
  159. bindsym Down resize grow height 3 px or 3 ppt
  160. bindsym Up resize shrink height 3 px or 3 ppt
  161. bindsym Right resize grow width 3 px or 3 ppt
  162. # back to normal: Enter or Escape
  163. bindsym Return mode "default"
  164. bindsym Escape mode "default"
  165. }
  166. bindsym $mod+r mode "resize"
  167. # My configurations
  168. # Sreen brightness controls
  169. bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
  170. bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
  171. # Authentication agents
  172. # exec --no-startup-id lxsession
  173. # Captura de pantalla: pacman -S scrot
  174. bindsym Print exec scrot -e 'mv $f ~/Descargas/'
  175. # Fondo de pantalla
  176. exec_always --no-startup-id "feh --bg-scale $HOME/.config/i3/images/background.png"
  177. # Transparencia
  178. exec --no-startup-id picom -cCGb
  179. # conky
  180. exec --no-startup-id conky
  181. # Teclado numerico
  182. # exec --no-startup-id numlockx on
  183. # Applet de volumen
  184. # exec --no-startup-id volumeicon
  185. # Notificador de Actualizaciones
  186. # exec --no-startup-id aarchup
  187. # Pulse Audio controls
  188. exec --no-startup-id pulseaudio --start
  189. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q -D default sset Master 5%+ && pkill -SIGRTMIN+10 i3blocks #increase sound volume
  190. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D default sset Master 5%- && pkill -SIGRTMIN+10 i3blocks #decrease sound volume
  191. bindsym XF86AudioMute exec --no-startup-id amixer -q -D default sset Master toggle && pkill -SIGRTMIN+10 i3blocks # mute sound
  192. # Enable devices USB
  193. # Declare here the shortcut to mount-device, require udisks2
  194. set $mode_mount Launch: Shift unmount devices (u) USB, (c) DVD/CD, (s) Stick
  195. mode "$mode_mount" {
  196. bindsym u exec --no-startup-id "udevil mount /dev/sdb1", mode "default"
  197. bindsym Shift+u exec --no-startup-id "udevil umount /dev/sdb1", mode "default"
  198. bindsym c exec --no-startup-id "udevil mount /dev/sr0", mode "default"
  199. bindsym Shift+c exec --no-startup-id "udevil umount /dev/sr0 || eject -r", mode "default"
  200. bindsym s exec --no-startup-id "udevil mount /dev/sdb", mode "default"
  201. bindsym Shift+s exec --no-startup-id "udevil umount /dev/sdb", mode "default"
  202. # back to normal: Enter or Escape
  203. bindsym Return mode "default"
  204. bindsym Escape mode "default"
  205. }
  206. # Declare here the shortcut to mount-device selection menu
  207. bindsym $mod+m mode "$mode_mount"
  208. ## Manual management of external displays
  209. # Set the shortcuts and what they do
  210. set $mode_display Ext Screen (v) VGA ON, (h) HDMI ON, (x) VGA OFF, (y) HDMI OFF
  211. mode "$mode_display" {
  212. bindsym v exec --no-startup-id xrandr --output VGA-1 --auto --right-of LVDS-1, mode "default"
  213. bindsym h exec --no-startup-id xrandr --output HDMI-1 --auto --right-of LVDS-1, mode "default"
  214. bindsym x exec --no-startup-id xrandr --output VGA-1 --auto --off, mode "default"
  215. bindsym y exec --no-startup-id xrandr --output HDMI-1 --auto --off, mode "default"
  216. # back to normal: Enter or Escape
  217. bindsym Return mode "default"
  218. bindsym Escape mode "default"
  219. }
  220. # Declare here the shortcut to bring the display selection menu
  221. bindsym $mod+x mode "$mode_display"
  222. # System poweroff, reboot, logout, hibernate, suspend, switch_user
  223. set $mode_system System (e) logout, (u) switch_user, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  224. mode "$mode_system" {
  225. bindsym s exec --no-startup-id loginctl suspend, mode "default"
  226. bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  227. bindsym e exec --no-startup-id i3-msg exit, mode "default"
  228. bindsym h exec --no-startup-id loginctl hibernate, mode "default"
  229. bindsym r exec --no-startup-id loginctl reboot, mode "default"
  230. bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default"
  231. # back to normal: Enter or Escape
  232. bindsym Return mode "default"
  233. bindsym Escape mode "default"
  234. }
  235. bindsym $mod+Pause mode "$mode_system"
  236. # Manual display on and off
  237. # Disables the black screen that appears to save the monitor's power
  238. # when you do not touch the computer in a few minutes.
  239. set $mode_display_on_off Black energy-saving screen: (y) enable, (n) disable
  240. mode "$mode_display_on_off" {
  241. bindsym y exec --no-startup-id xset s on && xset s blank && xset +dpms, mode "default"
  242. bindsym n exec --no-startup-id xset s off && xset s noblank && xset -dpms, mode "default"
  243. # back to normal: Enter or Escape
  244. bindsym Return mode "default"
  245. bindsym Escape mode "default"
  246. }
  247. bindsym $mod+Shift+p mode "$mode_display_on_off"
  248. # Press $mod+o followed by either i, d, Escape or Return to launch Iceweasel-UXP,
  249. # Icedove-UXP or return to the default mode, respectively.
  250. set $mode_apps Launch: Shift enable mode private apps [i]ceweasel-uxp ice[d]ove-uxp
  251. mode "$mode_apps" {
  252. bindsym i exec "bash $HOME/.config/bwrap/iceweasel-uxp.bash", mode "default"
  253. bindsym Shift+i exec "bash $HOME/.config/bwrap/iceweasel-uxp-private.bash", mode "default"
  254. bindsym d exec "bash $HOME/.config/bwrap/icedove-uxp.bash", mode "default"
  255. bindsym Shift+d exec "bash $HOME/.config/bwrap/icedove-uxp-private.bash", mode "default"
  256. # back to normal: Enter or Escape
  257. bindsym Return mode "default"
  258. bindsym Escape mode "default"
  259. }
  260. bindsym $mod+o mode "$mode_apps"
  261. # players global horkeys, require D-Bus
  262. # bindsym XF86AudioPrev exec playerctl previous
  263. # bindsym XF86AudioNext exec playerctl next
  264. # bindsym XF86AudioPlay exec playerctl play-pause
  265. # bindsym XF86AudioStop exec playerctl stop
  266. # class border background text indicator child_border
  267. client.focused #424242 #424242 #FFFFFF #FFFFFF #9E9E9E
  268. client.focused_inactive #212121 #212121 #424242 #9E9E9E #212121
  269. client.unfocused #212121 #212121 #424242 #9E9E9E #212121
  270. client.urgent #DC322F #DC322F #FFFFFF #DC322F #DC322F
  271. client.placeholder #000000 #212121 #FFFFFF #9E9E9E #212121
  272. client.background #FFFFFF
  273. # Start i3bar to display a workspace bar (plus the system information i3status
  274. # finds out, if available)
  275. # bar {
  276. # status_command i3status
  277. # }
  278. bar {
  279. position top
  280. status_command i3blocks -c $HOME/.config/i3/i3blocks.conf # Mostrar status de monitoreo
  281. # status_command 2>/tmp/i3blocks.err i3blocks -vvv -c $HOME/.config/i3/i3blocks.conf | tee /tmp/i3blocks.out # Debug
  282. font pango:Hack 8
  283. colors {
  284. separator #616161 # Separator color
  285. background #212121 # Panel color
  286. statusline #FFFFFF # Status color
  287. #::::::::::::::::::::::: Indicadores ::::::::::::::::::::::::::#
  288. # bordes background text
  289. focused_workspace #FFFFFF #616161 #FFFFFF
  290. active_workspace #FFFFFF #616161 #FFFFFF
  291. inactive_workspace #212121 #757575 #212121
  292. urgent_workspace #212121 #B71C1C #FFFFFF
  293. }
  294. }