351 lines
13 KiB
Plaintext
351 lines
13 KiB
Plaintext
# 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 xfce4-terminal
|
||
|
||
# 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 "#212121" -nf "#BDBDBD" -sf "#FFFF00" -fn Hack
|
||
# Rofi menu
|
||
bindsym $mod+d exec "rofi -modi window,drun,run -show drun -sidebar-mode -color-window '#002B36, #002B36, #6C71C4' -color-normal '#002B36, #CACCD1, #002B36, #6C71C4, #FDF6E3' -color-active '#6C71C4, #FDF6E3, #6C71C4, #6C71C4, #FDF6E3' -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=Xfce4-terminal] $tag1
|
||
assign [class=Iceweasel|Gajim|qTox|Transmission-gtk] $tag2
|
||
assign [class=File-roller|Thunar] $tag3
|
||
assign [class=Emacs|Epdfview|Geany|Gucharmap|libreoffice*|Soffice] $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="Xfce4-terminal"] 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 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"
|
||
|
||
# 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 compton -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 pulse sset Master 5%+ && pkill -SIGRTMIN+10 i3blocks #increase sound volume
|
||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D pulse sset Master 5%- && pkill -SIGRTMIN+10 i3blocks #decrease sound volume
|
||
bindsym XF86AudioMute exec --no-startup-id amixer -q -D pulse 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 "sh $HOME/.config/i3/scripts/i3lock.sh"
|
||
|
||
## 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 VGA1 --auto --right-of LVDS1, mode "default"
|
||
bindsym h exec --no-startup-id xrandr --output HDMI1 --auto --right-of LVDS1, mode "default"
|
||
bindsym x exec --no-startup-id xrandr --output VGA1 --auto --off, mode "default"
|
||
bindsym y exec --no-startup-id xrandr --output HDMI1 --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 "firejail --seccomp --noroot --disable-mnt iceweasel-uxp", mode "default"
|
||
bindsym Shift+i exec "firejail --seccomp --private iceweasel-uxp", mode "default"
|
||
bindsym d exec "firejail --seccomp --noroot --disable-mnt icedove-uxp", mode "default"
|
||
bindsym Shift+d exec "firejail --seccomp --private icedove-uxp", 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
|
||
bindsym XF86AudioPrev exec playerctl previous
|
||
bindsym XF86AudioNext exec playerctl next
|
||
bindsym XF86AudioPlay exec playerctl play-pause
|
||
bindsym XF86AudioStop exec playerctl stop
|
||
|
||
# IRC weechat
|
||
bindsym $mod+Shift+w exec --no-startup-id termite --name=irc -e "firejail --seccomp --noroot --disable-mnt weechat"
|
||
|
||
# Colors
|
||
client.focused #6C71C4 #6C71C4 #FDF6E3 #6C71C4
|
||
client.focused_inactive #073642 #073642 #EEE8D5 #6C71C4
|
||
client.unfocused #073642 #073642 #93A1A1 #586E75
|
||
client.urgent #D33682 #D33682 #FDF6E3 #DC322F
|
||
|
||
# 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 #268BD2 # Color de separadores
|
||
background #002B36 # Color del panel
|
||
statusline #FAFAFA # Color del status
|
||
#::::::::::::::::::::::: Indicadores ::::::::::::::::::::::::::#
|
||
# bordes backgr text
|
||
focused_workspace #FDF6E3 #6C71C4 #FDF6E3
|
||
active_workspace #FDF6E3 #6C71C4 #FDF6E3
|
||
inactive_workspace #002B36 #586E75 #002B36
|
||
urgent_workspace #D33682 #D33682 #FDF6E3
|
||
}
|
||
}
|