# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # # i3 config file (v4) # # Please see http://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # Before i3 v4.8, we used to recommend this one as the default: # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 # The font above is very space-efficient, that is, it looks good, sharp and # clear in small sizes. However, its unicode glyph coverage is limited, the old # X core fonts rendering does not support right-to-left and this being a bitmap # font, it doesn’t scale on retina/hidpi displays. # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal # bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Return exec sakura # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) # bindsym $mod+d exec dmenu_run # bindsym $mod+d exec dmenu_run -p Menu: -l 3 -nb "#616161" -nf "#BDBDBD" -sf "#FFFF00" -fn Hack # Rofi menu 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'" # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+ntilde focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+ntilde move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child set $tag1 "1: " set $tag2 "2: " set $tag3 "3: " set $tag4 "4: " set $tag5 "5: " set $tag6 "6: " set $tag7 "7: " set $tag8 "8: " set $tag9 "9: " set $tag0 "10: " # switch to workspace bindsym $mod+1 workspace $tag1 bindsym $mod+2 workspace $tag2 bindsym $mod+3 workspace $tag3 bindsym $mod+4 workspace $tag4 bindsym $mod+5 workspace $tag5 bindsym $mod+6 workspace $tag6 bindsym $mod+7 workspace $tag7 bindsym $mod+8 workspace $tag8 bindsym $mod+9 workspace $tag9 bindsym $mod+0 workspace $tag0 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $tag1 bindsym $mod+Shift+2 move container to workspace $tag2 bindsym $mod+Shift+3 move container to workspace $tag3 bindsym $mod+Shift+4 move container to workspace $tag4 bindsym $mod+Shift+5 move container to workspace $tag5 bindsym $mod+Shift+6 move container to workspace $tag6 bindsym $mod+Shift+7 move container to workspace $tag7 bindsym $mod+Shift+8 move container to workspace $tag8 bindsym $mod+Shift+9 move container to workspace $tag9 bindsym $mod+Shift+0 move container to workspace $tag0 # Assign to programs assign [class=Sakura] $tag1 assign [class=Iceweasel|Gajim|qTox|Transmission-gtk] $tag2 assign [class=File-roller|Thunar] $tag3 assign [class=Emacs|Epdfview|Geany|Gucharmap] $tag4 assign [instance="soffice" class="libreoffice"] $tag4 assign [class="libreoffice"] $tag4 assign [class="^(?i)libreoffice-*"] $tag4 assign [class="^(?i)libreoffice.*"] $tag4 assign [class=Icedove] $tag5 assign [class=Ardour|Audacious|Audacity|Cheese|Ghb|Gimp*|Inkscape|mpv|Mumble|Simplescreenrecorder|Vlc|Xfburn] $tag6 assign [instance=irc] $tag7 assign [class=Arandr|Gparted|Lxappearance|Lxrandr|Lxtask|Pavucontrol] $tag8 # Programs floating # class for_window [class="(?i)firetools"] floating enable for_window [class="(?i)lxappearance"] floating enable for_window [class="(?i)pavucontrol"] floating enable, move position mouse for_window [class="(?i)pinentry"] floating enable for_window [class="(?i)simplescreenrecorder"] floating enable for_window [class="(?i)transmission"] floating enable # title for_window [title="(?i)pulseaudio multiband EQ"] floating enable # window_role for_window [window_role="(?i)about"] floating enable for_window [window_role="(?i)organizer"] floating enable for_window [window_role="(?i)pop-up"] floating enable for_window [window_role="(?i)task_dialog"] floating enable # Programs focus for_window [class="Sakura"] focus for_window [class="Emacs"] focus # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) 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'" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym j resize shrink width 3 px or 3 ppt bindsym k resize grow height 3 px or 3 ppt bindsym l resize shrink height 3 px or 3 ppt bindsym ntilde resize grow width 3 px or 3 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 3 px or 3 ppt bindsym Down resize grow height 3 px or 3 ppt bindsym Up resize shrink height 3 px or 3 ppt bindsym Right resize grow width 3 px or 3 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" # My configurations # Sreen brightness controls bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness # Authentication agents # exec --no-startup-id lxsession # Captura de pantalla: pacman -S scrot bindsym Print exec scrot -e 'mv $f ~/Descargas/' # Fondo de pantalla exec_always --no-startup-id "feh --bg-scale $HOME/.config/i3/images/background.png" # Transparencia exec --no-startup-id picom -cCGb # conky exec --no-startup-id conky # Teclado numerico # exec --no-startup-id numlockx on # Applet de volumen # exec --no-startup-id volumeicon # Notificador de Actualizaciones # exec --no-startup-id aarchup # Pulse Audio controls exec --no-startup-id pulseaudio --start bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q -D default sset Master 5%+ && pkill -SIGRTMIN+10 i3blocks #increase sound volume bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D default sset Master 5%- && pkill -SIGRTMIN+10 i3blocks #decrease sound volume bindsym XF86AudioMute exec --no-startup-id amixer -q -D default sset Master toggle && pkill -SIGRTMIN+10 i3blocks # mute sound # Enable devices USB # Declare here the shortcut to mount-device, require udisks2 set $mode_mount Launch: Shift unmount devices (u) USB, (c) DVD/CD, (s) Stick mode "$mode_mount" { bindsym u exec --no-startup-id "udevil mount /dev/sdb1", mode "default" bindsym Shift+u exec --no-startup-id "udevil umount /dev/sdb1", mode "default" bindsym c exec --no-startup-id "udevil mount /dev/sr0", mode "default" bindsym Shift+c exec --no-startup-id "udevil umount /dev/sr0 || eject -r", mode "default" bindsym s exec --no-startup-id "udevil mount /dev/sdb", mode "default" bindsym Shift+s exec --no-startup-id "udevil umount /dev/sdb", mode "default" # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } # Declare here the shortcut to mount-device selection menu bindsym $mod+m mode "$mode_mount" # i3lock bindsym Pause exec "bash $HOME/.config/i3/scripts/i3lock.bash" ## Manual management of external displays # Set the shortcuts and what they do set $mode_display Ext Screen (v) VGA ON, (h) HDMI ON, (x) VGA OFF, (y) HDMI OFF mode "$mode_display" { bindsym v exec --no-startup-id xrandr --output VGA-1 --auto --right-of LVDS-1, mode "default" bindsym h exec --no-startup-id xrandr --output HDMI-1 --auto --right-of LVDS-1, mode "default" bindsym x exec --no-startup-id xrandr --output VGA-1 --auto --off, mode "default" bindsym y exec --no-startup-id xrandr --output HDMI-1 --auto --off, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } # Declare here the shortcut to bring the display selection menu bindsym $mod+x mode "$mode_display" # System poweroff, reboot, logout, hibernate, suspend, switch_user set $mode_system System (e) logout, (u) switch_user, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown mode "$mode_system" { bindsym s exec --no-startup-id loginctl suspend, mode "default" bindsym u exec --no-startup-id i3exit switch_user, mode "default" bindsym e exec --no-startup-id i3-msg exit, mode "default" bindsym h exec --no-startup-id loginctl hibernate, mode "default" bindsym r exec --no-startup-id loginctl reboot, mode "default" bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+Pause mode "$mode_system" # Manual display on and off # Disables the black screen that appears to save the monitor's power # when you do not touch the computer in a few minutes. set $mode_display_on_off Black energy-saving screen: (y) enable, (n) disable mode "$mode_display_on_off" { bindsym y exec --no-startup-id xset s on && xset s blank && xset +dpms, mode "default" bindsym n exec --no-startup-id xset s off && xset s noblank && xset -dpms, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+Shift+p mode "$mode_display_on_off" # Press $mod+o followed by either i, d, Escape or Return to launch Iceweasel-UXP, # Icedove-UXP or return to the default mode, respectively. set $mode_apps Launch: Shift enable mode private apps [i]ceweasel-uxp ice[d]ove-uxp mode "$mode_apps" { bindsym i exec "bash $HOME/.config/bwrap/iceweasel-uxp.bash", mode "default" bindsym Shift+i exec "bash $HOME/.config/bwrap/iceweasel-uxp-private.bash", mode "default" bindsym d exec "bash $HOME/.config/bwrap/icedove-uxp.bash", mode "default" bindsym Shift+d exec "bash $HOME/.config/bwrap/icedove-uxp-private.bash", mode "default" # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+o mode "$mode_apps" # players global horkeys, require D-Bus # bindsym XF86AudioPrev exec playerctl previous # bindsym XF86AudioNext exec playerctl next # bindsym XF86AudioPlay exec playerctl play-pause # bindsym XF86AudioStop exec playerctl stop # class border background text indicator child_border client.focused #424242 #424242 #FFFFFF #FFFFFF #9E9E9E client.focused_inactive #212121 #212121 #424242 #9E9E9E #212121 client.unfocused #212121 #212121 #424242 #9E9E9E #212121 client.urgent #DC322F #DC322F #FFFFFF #DC322F #DC322F client.placeholder #000000 #212121 #FFFFFF #9E9E9E #212121 client.background #FFFFFF # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) # bar { # status_command i3status # } bar { position top status_command i3blocks -c $HOME/.config/i3/i3blocks.conf # Mostrar status de monitoreo # status_command 2>/tmp/i3blocks.err i3blocks -vvv -c $HOME/.config/i3/i3blocks.conf | tee /tmp/i3blocks.out # Debug font pango:Hack 8 colors { separator #616161 # Separator color background #212121 # Panel color statusline #FFFFFF # Status color #::::::::::::::::::::::: Indicadores ::::::::::::::::::::::::::# # bordes background text focused_workspace #FFFFFF #616161 #FFFFFF active_workspace #FFFFFF #616161 #FFFFFF inactive_workspace #212121 #757575 #212121 urgent_workspace #212121 #B71C1C #FFFFFF } }