Skip to content

Instantly share code, notes, and snippets.

@oscarmlage
Created January 20, 2017 12:24
Show Gist options
  • Save oscarmlage/3e4ee63160246dfc60a136a7e92bccaf to your computer and use it in GitHub Desktop.
Save oscarmlage/3e4ee63160246dfc60a136a7e92bccaf to your computer and use it in GitHub Desktop.
i3wm config
#::::::::::::::::: Tecla window por default::::::::::::::::::::#
# Alt_L
set $mod Mod4
set $base00 #101218
set $base01 #1f222d
set $base02 #252936
set $base03 #7780a1
set $base04 #C0C5CE
set $base05 #d1d4e0
set $base06 #C9CCDB
set $base07 #ffffff
set $base08 #ee829f
set $base09 #f99170
set $base0A #ffefcc
set $base0B #a5ffe1
set $base0C #97e0ff
set $base0D #97bbf7
set $base0E #c0b7f9
set $base0F #fcc09e
set $rofi_options rofi -show run -lines 3 -eh 2 -bg "#222222" -hlbg "#2B83A6" -opacity "80" -width 100 -padding 340 -bw 0 -separator-style none -hide-scrollbar -fg "#FFFFFF"
set $rofi_options_startup rofi -key-window mod4+Tab -lines 3 -eh 2 -bg "#222222" -hlbg "#2B83A6" -bc "#2B83A6" -opacity "100" -bw 3 -font "Source Sans Pro 11" -separator-style none -hide-scrollbar -fg "#FFFFFF" -hlbg-active "#2B83A6" -hlfg-active "#FFFFFF"
# Fuente por dafault para ventanas y barra
font pango:System San Francisco Display 9
# Modo del Mouse para ventanas flotantes
floating_modifier $mod
# start a terminal
bindsym $mod+Return workspace $ws1; exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
bindsym $mod+F4 kill
#:::::::::::::::::::::: Config default ::::::::::::::::::::::::#
# Fancy names for workspaces
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 $ws10 10
# next/previous workspace
bindsym $mod+Right workspace next
bindsym $mod+Left workspace prev
# start dmenu (a program launcher)
bindsym Control+space exec --no-startup-id $rofi_options
bindsym $mod+space exec --no-startup-id $rofi_options
bindsym $mod+d exec --no-startup-id $rofi_options
# Change focus with cursor keys:
bindsym Shift+Mod5+Left move left
bindsym Shift+Mod5+Down move down
bindsym Shift+Mod5+Up move up
bindsym Shift+Mod5+Right move right
bindsym $mod+Tab focus left
bindsym $mod+Shift+Tab focus right
# move focused window with cursor keys:
bindsym $mod+Shift+Left focus left
bindsym $mod+Shift+Down focus down
bindsym $mod+Shift+Up focus up
bindsym $mod+Shift+Right focus right
# split in horizontal orientation
bindsym $mod+v split h
# split in vertical orientation
bindsym $mod+h 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
# 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 $ws10
# 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'"
bindsym $mod+Shift+x exec i3lock
bindsym $mod+Shift+z exec "i3-msg exit"
# Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% # increase vol
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% # decrease vol
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # toggle mute
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
# Print controls
bindsym Print exec "scrot ~/Descargas/Screenshot%Y-%m-%d%H:%M:%S.png"
bindsym $mod+Print exec "scrot -s ~/Descargas/Screenshot%Y-%m-%d%H:%M:%S.png"
# Startup programs
exec --no-startup-id i3-msg workspace $ws1
exec --no-startup-id xautolock -time 10 -locker "i3lock --color 4D5254"
exec --no-startup-id nm-applet # wifi manager
exec --no-startup-id thunar --daemon # file manager
exec_always --no-startup-id feh --bg-fill ~/Documentos/wallpapers/76698.jpg
exec --no-startup-id $rofi_options_startup
exec_always compton -f
exec_always xset r rate 160 60
exec --no-startup-id subl
exec --no-startup-id google-chrome-stable
exec --no-startup-id Telegram
exec --no-startup-id thunderbird
#:::::::::::::::::::::: Floating windows ::::::::::::::::::::::#
################################################################
for_window [class="Gimp"] floating enable
#::::::::: Asignando programas a espacio de trabajo :::::::::::#
################################################################
#assign [class="X-terminal-emulator"] $ws1
assign [class="Sublime_text"] $ws2
assign [class="Google-chrome"] $ws3
assign [class="TelegramDesktop"] $ws4
assign [class="Thunderbird"] $ws4
assign [class="Thunar"] $ws5
################################################################
#:::::::::::::::: 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
################################################################
# 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"
# Colors
# Widow Colours
client.focused $base0D $base0D $base00 $base01
client.focused_inactive $base02 $base02 $base03 $base01
client.unfocused $base01 $base01 $base03 $base01
client.urgent $base02 $base08 $base07 $base08
# Bar
bar {
#status_command i3status
position top
status_command i3blocks -c ~/.i3/i3blocks.conf
tray_output primary
colors {
separator $base03
background $base01
statusline $base05
focused_workspace $base0C $base0D $base00
active_workspace $base02 $base02 $base07
inactive_workspace $base01 $base01 $base03
urgent_workspace $base08 $base08 $base07
}
}
# i3blocks config file
# Global properties
command=/usr/share/i3blocks/$BLOCK_NAME
separator_block_width=15
#markup=none
markup=pango
[volume]
label=
instance=Master
interval=once
signal=10
[memory]
label=
interval=30
[load]
label=
command=/usr/share/i3blocks/load_average
interval=10
color=#6c71c4
[disk]
label=
#instance=/mnt/data
interval=30
[iface]
label=
#instance=wlan0
color=#00FF00
interval=10
#separator=false
[bandwidth]
#instance=eth0
interval=5
[cpu_usage]
label=CPU
interval=10
min_width=CPU: 100.00%
#separator=false
[battery]
label=
#label=⚡
#instance=1
interval=30
[time]
# command=date '+%Y-%m-%d %H:%M:%S'
label=
command=date '+%H:%M'
interval=5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment