# '####::'#######::'##:::::'##:'##::::'##: # . ##::'##.... ##: ##:'##: ##: ###::'###: # : ##::..::::: ##: ##: ##: ##: ####'####: # : ##:::'#######:: ##: ##: ##: ## ### ##: # : ##:::...... ##: ##: ##: ##: ##. #: ##: # : ##::'##:::: ##: ##: ##: ##: ##:.:: ##: # '####:. #######::. ###. ###:: ##:::: ##: # ....:::.......::::...::...:::..:::::..:: ############# i3 TWM ############### # # # Mi configuración de i3 TWM # # Autor: Felix Molero # # Alias: Viru69 # # Email: elhackerliber@gmail.com # # Lic: GPL v2 # # # ############# i3 TWM ############### #::::::::::::::::: Tecla window por default::::::::::::::::::::# set $mod Mod4 # Fuente por dafault para ventanas y barra font pango:Monospace 9 # Modo del Mouse para ventanas flotantes floating_modifier $mod #### Comandos default #### # Iniciar una terminal #bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Return workspace $WS1; exec urxvt #termite # Salir de la ventana enfocada bindsym $mod+Shift+q kill # Llamar dmenu (menu) #bindsym $mod+d exec dmenu_run #bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu="dmenu -b -nb '#011015' -sb '#567ec5' -sf '#000000' -fn 'Terminus-11' -l 10" bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -dmenu' ##Font: Ubuntu Mono ################################################################ #::::::::::::::::: Control de volumen :::::::::::::::# bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute bindsym XF86AudioMute exec amixer -q set Master toggle # #media next and prev bindsym Shift+Control+j exec ncmpcpp next bindsym Shift+Control+k exec ncmpcpp prev bindsym Shift+Control+space exec ncmpcpp toggle # ################################################################ #:::::::::::::::::::::: Config default ::::::::::::::::::::::::# # 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 # customize workspace name set $WS1 1: set $WS2 2: set $WS3 3: set $WS4 4: set $WS5 5: set $WS6 6: set $WS7 7: set $WS8 8: set $WS9 9: set $WS0 10: # switch to workspace bindsym $mod+1 workspace $WS1 bindsym $mod+2 workspace $WS2 bindsym $mod+3 workspace $WS3 bindsym $mod+4 workspace $WS4 bindsym $mod+5 workspace $WS5 bindsym $mod+6 workspace $WS6 bindsym $mod+7 workspace $WS7 bindsym $mod+8 workspace $WS8 bindsym $mod+9 workspace $WS9 bindsym $mod+0 workspace $WS0 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $WS1 bindsym $mod+Shift+2 move container to workspace $WS2 bindsym $mod+Shift+3 move container to workspace $WS3 bindsym $mod+Shift+4 move container to workspace $WS4 bindsym $mod+Shift+5 move container to workspace $WS5 bindsym $mod+Shift+6 move container to workspace $WS6 bindsym $mod+Shift+7 move container to workspace $WS7 bindsym $mod+Shift+8 move container to workspace $WS8 bindsym $mod+Shift+9 move container to workspace $WS9 bindsym $mod+Shift+0 move container to workspace $WS0 #::::::::: Asignando programas a espacio de trabajo :::::::::::# ################################################################ assign [class="chromium"] $ws2 assign [class="Pale moon"] $ws2 assign [class="Thunar"] $ws3 assign [class="Mousepad"] $ws4 assign [class="Vlc"] $ws5 assign [class="mplayer"] $ws5 assign [class="Soundconverter"] $ws5 assign [class="Popcorn-Time"] $ws5 #assign [class="Termite"] $ws1 assign [class="urxvt"] $ws1 assign [class="Franz"] $ws6 assign [class="epdfview"] $ws7 assign [class="Gimp"] $ws7 assign [class="Inkscape"] $ws7 assign [class="Gnumeric"] $ws7 assign [class="libreoffice"] $ws7 assign [class="Transmission"] $ws8 assign [class="JDownloader"] $ws8 assign [class="Lxappearance"] $ws9 assign [class="Pavucontrol"] $ws9 assign [class="imagewriter"] $ws9 assign [class="(?i)virtualbox"] $ws9 assign [class="minecraft"] $ws0 ################################################################ #:::::: Programas que se inician en espacios de trabajo :::::::# ################################################################ #exec --no-startup-id i3-msg 'workspace 1 : ; exec chromium' #exec --no-startup-id i3-msg 'workspace 2 : ; exec thunar' #exec --no-startup-id i3-msg 'workspace 3 : ; exec mousepad' #exec --no-startup-id i3-msg 'workspace 4 : ; exec terminator -e mocp' #exec --no-startup-id i3-msg 'workspace 5 : ; exec terminator' ################################################################ #:::::::::::::::: Config de estilo de bordes ::::::::::::::::::# ################################################################ # # new_window pixel 1 new_float normal ################################################################ #:::::::::::: Desactivar los bordes de ventanas :::::::::::::::# ################################################################ hide_edge_borders none ################################################################ #::::::::::::::::: Ventanas modo flotante :::::::::::::::::::::# ################################################################ #|||||||||||||| Ventanas flotantes con bordes |||||||||||||||||# for_window [class="Galculator"] floating enable border normal for_window [class="Geany"] floating enable border normal for_window [class="GParted"] floating enable border normal for_window [class="JDownloader"] floating enable border normal for_window [class="Lightdm-gtk-greeter-settings"] floating enable border normal for_window [class="Lxappearance"] floating enable border normal for_window [class="Mousepad"] floating enable border normal for_window [class="Nitrogen"] floating enable border normal for_window [class="Pamac-update"] floating enable border normal for_window [class="Pavucontrol"] floating enable border normal for_window [class="Transmission-gtk"] floatingenable border normal for_window [class="(?i)virtualbox"] floating enable border normal #||||||||||||| Ventanas flotantes sin bordes ||||||||||||||||||# for_window [class="Firefox"] enable border pixel 1 for_window [class="Galculator"] floating enable border pixel 4 for_window [class="soundconverter"] floating enable border pixel 1 for_window [class="Sonata"] floating enable border pixel 4 for_window [class="Terminator"] floating enable border pixel 1 for_window [class="Termite"] floating enable border pixel 4 for_window [class="URxvt"] floating enable border pixel 4 for_window [class="Vlc"] floating enable border pixel 1 for_window [class="xarchiver"] floating enable border pixel 1 for_window [class="XTerm"] floating enable border pixel 4 for_window [class="imagewriter"] floating enable border pixel 4 ################################################################ #:::::::::: Posicion de ventana en esquina superior :::::::::::# ################################################################ bindsym $mod+Shift+p floating enable; resize set 560 px 340 px; sticky enable; move window to position 880 px 25 px bindsym $mod+Shift+m floating enable; resize set 1280 px 500 px; sticky enable; move window to position 10 px 390 px ################################################################ #::::::::::::::::::::: Minimizar ventana ::::::::::::::::::::::# # Mover ventana al scratchpad bindsym $mod+Shift+minus move scratchpad # Mostrar scratchpad bindsym $mod+minus scratchpad show ################################################################ #:::::::::::::::::::::: Config default ::::::::::::::::::::::::# ################################################################ # 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 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym ntilde resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" ################################################################ #:::::::::::::::::::::: Config del panel ::::::::::::::::::::::# ################################################################ bar { # id bar-1 status_command i3blocks -c ~/.config/i3/i3blocks.conf strip_workspace_numbers yes position top # mode dock # workspace_buttons yes # tray_output eDP1 height 18 font pango: Terminess Powerline, awesome 9 # separator_symbol "::" colors { background #012744 #005f87 #0088aa statusline #000000 separator #FF9955 # background $transparent #::::::::::::::::::::::: Indicadores ::::::::::::::::::::::::::# ################################################################ # border backgr. text focused_workspace #c07830 #c07830 #222222 inactive_workspace #186078 #186078 #f2dbae urgent_workspace #ef5350 #ef5350 #f2dbae } } ################################################################ #:::::::::::::::: MARCO DE VENTANA ::::::::::::::::::# ################################################################ # class border backgr text indicator child_border client.focused #607d8b #607d8b #DFDFDF #dddddd #607d8b client.focused_inactive #263238 #263238 #9a9b9c #111111 #263238 client.unfocused #455a64 #455a64 #a1a1a1 #bfbfbf #455a64 client.urgent #4a4b4c #4a4b4c #fdfdfd #fbfbfb #4a4c4b client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c client.background #111111 ################################################################ #::::::::::::::::::: Settings for i3-gaps :::::::::::::::::::::# ################################################################ # Set inner/outer gaps #gaps inner 8 #gaps outer -4 set $default_gaps_inner 8 set $default_gaps_outer -4 gaps inner $default_gaps_inner gaps outer $default_gaps_outer # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size. # gaps inner|outer current|all set|plus|minus # gaps inner all set 10 # gaps outer all plus 5 # Smart gaps (gaps used if only more than one container on the workspace) smart_gaps on # Smart borders (draw borders around container only if it is not the only container on this workspace) # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0) smart_borders on # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. set $mode_gaps Gaps: (o) outer, (i) inner set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) bindsym $mod+Shift+g mode "$mode_gaps" mode "$mode_gaps" { bindsym o mode "$mode_gaps_outer" bindsym i mode "$mode_gaps_inner" bindsym Return mode "default" bindsym Escape mode "default" } mode "$mode_gaps_inner" { bindsym plus gaps inner current plus 5 bindsym minus gaps inner current minus 5 bindsym 0 gaps inner current set 0 bindsym Shift+plus gaps inner all plus 5 bindsym Shift+minus gaps inner all minus 5 bindsym Shift+0 gaps inner all set 0 bindsym Return mode "default" bindsym Escape mode "default" } mode "$mode_gaps_outer" { bindsym plus gaps outer current plus 5 bindsym minus gaps outer current minus 5 bindsym 0 gaps outer current set 0 bindsym Shift+plus gaps outer all plus 5 bindsym Shift+minus gaps outer all minus 5 bindsym Shift+0 gaps outer all set 0 bindsym Return mode "default" bindsym Escape mode "default" } ################################################################ #:::::::::::::::::::: Salida del sistema ::::::::::::::::::::::# ################################################################ set $Locker i3lock && sleep 1 set $mode_system System: L :  | S :  | P :  | R :  | E :  mode "$mode_system" { bindsym l exec --no-startup-id i3lock-fancy, mode "default" bindsym s exec --no-startup-id $Lock systemctl suspend, mode "default bindsym p exec --no-startup-id systemctl poweroff -i, mode "default" bindsym r exec --no-startup-id systemctl reboot, mode "default" bindsym e exec --no-startup-id i3-msg exit, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+x mode "$mode_system" ################################################################ #:::::::::::::::::: Lanzador de aplicaciones ::::::::::::::::::# ################################################################ # llamar Web Browser bindsym $mod+F1 workspace $WS2; exec palemoon # llamar file manager bindsym $mod+F2 workspace $WS3; exec thunar # llamar Text Editor bindsym $mod+F3 workspace $WS4; exec mousepad # llamar Music Player ncmpcpp bindsym $mod+F4 exec sonata # llamar gparted bindsym $mod+F5 workspace $WS9; exec gksudo gparted # llamar lightsm setting bindsym $mod+F6 workspace $WS9; exec gksudo lightdm-gtk-greeter-settings # llamar lxappearance bindsym $mod+F7 workspace $WS9; exec lxappearance # llamar volumen control bindsym $mod+F8 workspace $WS9; exec pavucontrol # llamar vim editor bindsym $mod+F9 exec termite -e vim # llamar links bindsym $mod+Shift+F1 workspace $WS2; exec xlinks # llamar creador usb boot bindsym $mod+Shift+F5 workspace $WS9; exec gksudo imagewriter # llamar XTerm bindsym $mod+Shift+x exec xterm # llamar weechat bindsym Shift+F6 workspace $WS9; exec gksudo lightdm-gtk-greeter-settings # llamar editor de imagen gimp bindsym $mod+Shift+F8 workspace $WS7; exec gimp # llamar popcorntime bindsym $mod+m workspace $WS4; exec popcorntime # llamar nitrogen bindsym $mod+n exec nitrogen # llamar screenshoot bindsym $mod+p exec xfce4-screenshooter # llamar ncmpcpp bindsym Shift+F4 workspace $WS7; exec inkscape # Captura de pantalla bindsym $mod+Print --release exec "scrot -ue 'mv $f ~/Screenshots'; sleep 1; exec notify-send 'screenshot has been saved to ~/Screenshots'" ################################################################ #::::::::::::::::::: Aplicaciones al inicio :::::::::::::::::::# ################################################################ # DAEMON FILE MANAGER exec --no-startup-id thunar --daemon # WIFI #exec --no-startup-id nm-applet # wallpaper nitrogen exec --no-startup-id nitrogen --restore #; sleep 1; compton -b # Transparencia exec --no-startup-id compton -cCGb #exec --no-startup-id xcompmgr -c -f -n # Salva panlla #exec --no-startup-id xscreensaver -nosplash # Autobloqueo i3lock-fancy exec xautolock -time 10 -locker i3lock-fancy # Teclado numerico exec --no-startup-id numlockx on # Icono de volumen #exec --no-startup-id volumeicon # Notificador de Actualizaciones exec --no-startup-id aarchup # Notificador de actualizaciones octopi exec octopi-notifier # Servidor de musica exec --no-startup-id mpd # Oneko # exec oneko -rv -tofocus # Conky Monitor exec conky -d; sleep 1 && transset-df .5 -n Conky & # exec conky -c ~/.conkyrc ################################################################