1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 | # '####::'#######::'##:::::'##:'##::::'##:
# . ##::'##.... ##: ##:'##: ##: ###::'###:
# : ##::..::::: ##: ##: ##: ##: ####'####:
# : ##:::'#######:: ##: ##: ##: ## ### ##:
# : ##:::...... ##: ##: ##: ##: ##. #: ##:
# : ##::'##:::: ##: ##: ##: ##: ##:.:: ##:
# '####:. #######::. ###. ###:: ##:::: ##:
# ....:::.......::::...::...:::..:::::..::
############# 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 '#151515' -sb '#353535' -sf '#dddddd' -fn 'Terminus-11' -l 10"
##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="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 ::::::::::::::::::#
################################################################
# <normal|1pixel|pixel xx|none|pixel> #
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
position top
# mode dock
# workspace_buttons yes
# tray_output eDP1
height 22
font pango: ohsnap, awesome 10
separator_symbol "::"
colors {
background #030e10
statusline #adc6f3
separator #567ec5
# background $transparent
# Numix-Dark 1d2121 414848
#::::::::::::::::::::::: Indicadores ::::::::::::::::::::::::::#
################################################################
# border backgr. text
focused_workspace #567ec5 #040608 #567ec5
inactive_workspace #050809 #050809 #adc6f3
urgent_workspace #b8f2cf #adc6f3 #000000
}
}
################################################################
#:::::::::::::::: MARCO DE VENTANA ::::::::::::::::::#
################################################################
# class border backgr text indicator child_border
client.focused #000000 #000000 #adc6f3 #dddddd #6583a1
client.focused_inactive #adc6f3 #adc6f3 #000000 #484e50 #adc6f3
client.unfocused #adc6f3 #adc6f3 #000000 #bfbfbf #adc6f3
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 10
#gaps outer -4
set $default_gaps_inner 10
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 <px>
# 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 MOC
bindsym $mod+F4 workspace $WS5; exec xterm -e ncmpcpp -S visualizer
# 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 links
bindsym $mod+Shift+F1 workspace $WS2; exec xlinks
# llamar creador usb boot
bindsym $mod+Shift+F5 workspace $WS9; exec gksudo imagewriter
# llamar weechat
bindsym Shift+F6 workspace $WS6; exec xterm -e weechat
# 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 :::::::::::::::::::#
################################################################
# 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
# 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
exec conky -c ~/.conkyrc
################################################################
|
x
Notes
My setup inspired TronLegacy ENCOM
fsckoff said about 3 years ago
my homie… this isn’t an irssi theme. it’s an i3 config.