Skip to content

Instantly share code, notes, and snippets.

@nanounanue
Forked from onimenotsuki/.i3status.conf
Created April 11, 2019 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanounanue/c2ba7fb361e647f9cde16d0a45371950 to your computer and use it in GitHub Desktop.
Save nanounanue/c2ba7fb361e647f9cde16d0a45371950 to your computer and use it in GitHub Desktop.
Configuration files for i3wm in manjaro
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = yes
interval = 5
color_good = "#2ECC71"
color_bad = "#E74C3C"
# color_degraded = " "
}
order += "cpu_usage"
order += "load"
order += "disk /"
order += "disk /home"
order += "wireless wlp5s0"
order += "ethernet enp1s0f0"
order += "tztime local"
order += "battery 0"
# order += "run_watch DHCP"
# order += "run_watch VPN"
cpu_usage {
format = " %usage"
}
load {
format = " %1min"
# max_threshold = 0.3
}
disk "/" {
# format = " hdd %avail "
format = " %avail"
}
disk "/home" {
format = " %avail "
}
wireless wlp5s0 {
format_up = " %quality  %essid  %ip"
# format_up = "wlp5s0  %quality  %essid  %bitrate  %ip"
format_down = "⬇"
}
ethernet enp1s0f0 {
format_up = " eth0   %quality  %essid  %bitrate  %ip"
format_down = ""
}
battery 0 {
format = "%status %percentage"
# format = " %status %percentage "
format_down = "  "
last_full_capacity = true
integer_battery_capacity = true
status_chr = "  "
status_bat = "  "
status_full = "  "
low_threshold = 15
threshold_type = time
}
tztime local {
# format = "%Y-%m-%d %H:%M:%S"
# format = " %d.%m. %H:%M "
format = " %d %b  %H:%M"
}
# run_watch DHCP {
# pidfile = "/var/run/dhclient*.pid"
# }
# run_watch VPN {
# pidfile = "/var/run/vpnc/pid"
# }
# i3 config file v4
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# setup color
set $col1 #277a6d
set $col2 #1c574d
set $col3 #dddddd
set $col4 #1199aa
set $col5 #1180aa
font pango:Droid Sans, FontAwesome 11px
# Layout colors bord bg text
client.background #121212
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
new_window 1pixel
new_float 1pixel
# Hide borders
hide_edge_borders none
# bindsym $mod+t border normal
bindsym $mod+y border pixel 3
bindsym $mod+u border none
bindsym $mod+Return exec hyper
# bindsym $mod+Return exec urxvt -e zsh -c "tmux -q has-session && exec tmux -2 attach-session -d || exec tmux -2 new-session -n$USER -s$USER -s$USER@$HOSTNAME"
# Bind shortcuts
bindsym $mod+Shift+q kill
bindsym $mod+m bar mode invisible
# bindsym $mod+F12 exec i3lock -c "#121212"
bindsym XF86AudioRaiseVolume exec amixer -D pulse set Master '5%+'
bindsym XF86AudioLowerVolume exec amixer -D pulse set Master '5%-'
bindsym XF86AudioMute exec amixer set Master toggle
bindsym Print exec scrot '%F--%I:%M:%S:%p--$wx$h--workspace.png' -e 'mv $f /home/edgar/Pictures/Screenshots' && sleep 1 && exec notify-send 'screenshot has been saved to ~/Pictures/Screenshots'
bindsym $mod+Print exec scrot '%F--%I:%M:%S:%p--$wx$h--window.png' -ue 'mv $f /home/edgar/Pictures/Screenshots' && sleep 1 && exec notify-send 'screenshot has been saved to ~/Pictures/Screenshots'
# bindsym $mod+Shift+Print exec notify-send 'selection will be saved to ~/Imágenes/Screenshots' && exec scrot '%F--%I:%M:%S:%p--$wx$h--selection.png' -se 'mv $f ~/Imágenes/Screenshots' && sleep 1 && exec notify-send 'screenshot has been saved in ~/Imágenes/Screenshots'
bindsym XF86MonBrightnessUp exec xbacklight -inc 2 && exec notify-send " $( xbacklight -get )%"
bindsym XF86MonBrightnessDown exec xbacklight -dec 2 && exec notify-send " $( xbacklight -get )%"
# dmenu archlinux theme
# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -y 500 -h 40 -i -nb '#333333' -nf '#1793D1' -sf '#333333' -sb '#1793D1'"
# rofi
bindsym $mod+d exec "rofi -show run"
# Start applications for manjaro i3
bindsym $mod+Shift+F3 exec gksu pcmanfm
bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
# Bindings for scratchpad
bindsym mod1+space move scratchpad
bindsym mod1+Tab scratchpad show
# Change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+ntilde focus right
bindsym $mod+c move absolute position center
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
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
bindsym $mod+b workspace back_and_forth
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
bindsym $mod+x mode "$mode_system"
set $mode_system  (l)lock, (e)logout, (s)suspend, (h)hibernate, (r)reboot, (x)shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym x exec --no-startup-id i3exit shutdown, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# Cycle through active workspaces
bindsym $mod+n workspace next
bindsym $mod+p workspace prev
# split in horizontal orientation
bindsym $mod+h split h;exec notify-send 'horizontal'
# split in vertical orientation
bindsym $mod+v split v;exec notify-send 'vertical'
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# 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+q focus child
set $WS1 
set $WS2 
set $WS3 
set $WS4 
set $WS5 
set $WS6 
set $WS7 
set $WS8 
set $WS9 
set $WS0 
# 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
# Lock screen
bindsym $mod+Control+l exec --no-startup-id ~/i3lock-fancy-multimonitor/lock
# Replace polybar instead of i3status
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# # Start i3bar to display a workspace bar (plus the system information i3status if available)
# bar {
# # status_command i3status
# # status_command polybar
# position top
# # position bottomm
# font pango:Droid Sans Mono, FontAwesome 13px
# separator_symbol " "
# mode invisible
# colors {
# background "#242C33"
# statusline "#ECEDEE"
# separator "#242C33"
# focused_workspace "#242c33" "#1A8FD5" "#CACACA"
# active_workspace "#242c33" "#242C33" "#797979"
# inactive_workspace "#242C33" "#242C33" "#CACACA"
# urgent_workspace "#242C33" "#242C33" "#FF9D17"
# }
# }
# Workspace for multiple monitor
bindsym $mod+minus move workspace to output right
bindsym $mod+plus move container to output right
bindsym $mod+Shift+s exec ~/.i3/scripts/swap-workspace.py
# move to urgent workspace when launch an application
bindsym $mod+i [urgent=latest] focus
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
set $mode_resize  resize
mode "$mode_resize" {
bindsym j resize shrink width 5 px or 5 ppt
bindsym k resize grow height 5 px or 5 ppt
bindsym l resize shrink height 5 px or 5 ppt
bindsym ntilde resize grow width 5 px or 5 ppt
bindsym Left resize shrink width 5 px or 5 ppt
bindsym Down resize grow height 5 px or 5 ppt
bindsym Up resize shrink height 5 px or 5 ppt
bindsym Right resize grow width 5 px or 5 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "$mode_resize"
mode "open app" {
bindsym f exec firefox, mode "default"
bindsym p exec pcmanfm, mode "default"
bindsym o exec opera, mode "default"
bindsym t exec transmission-gtk, mode "default"
bindsym j exec blockify, mode "default"
bindsym v exec mpv, mode "default"
bindsym g exec gimp, mode "default"
bindsym s exec spotify, mode "default"
bindsym b exec xfburn, mode "default"
bindsym c exec google-chrome-stable, mode "default"
bindsym Ctrl-c exec compton && exec notify-send 'exec compton', mode "default"
bindsym r exec $HOME/.config/polybar/launch.sh
bindsym k exec klavaro, mode "default"
bindsym e exec emacs, mode "default"
bindsym n exec nitrogen, mode "default"
bindsym q exec qtqr, mode "default"
bindsym z exec zathura, mode "default"
bindsym a exec pavucontrol, mode "default"
bindsym m exec ~/.robo3t/bin/robo3t, mode "default"
bindsym Shift-e exec ~/expo-xde.AppImage, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+o mode "open app"
mode "open layout" {
bindsym d exec ~/.i3/scripts/layout_dev.sh, mode "default"
bindsym m exec ~/.i3/scripts/layout_mongo.sh, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+z mode "open layout"
# Open morc_menu
bindsym $mod+Shift+m exec morc_menu
bindsym $mod+Shift+x exec xmodmap ~/.Xmodmap && exec notify-send 'exec xmodmap'
mode "$set_display" {
bindsym r exec xrandr --output LVDS --auto --output DFP1 --auto --right-of LVDS, mode "default"
bindsym l exec xrandr --output LVDS --auto --output DFP1 --auto --left-of LVDS, mode "default"
bindsym d exec xrandr --output LVDS --auto --output DFP1 --auto --same-as LVDS, mode "default"
bindsym i exec xrandr --output DFP1 --off --output LVDS --auto, mode "default"
bindsym x exec xrandr --output DFP1 --auto --output LVDS --off, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "VGA" {
bindsym r exec xrandr --output CRT1 --auto --right-of LVDS, mode "default"
bindsym l exec xrandr --output CRT1 --auto --left-of LVDS, mode "default"
bindsym s exec xrandr --output CRT1 --auto --same-as LVDS, mode "default"
bindsym o exec xrandr --output CRT1 --off, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
set $set_display Display: (d)Duplicate | Extend: (r)right - (l)left | Only: (x)external - (i)integrated
bindsym $mod+Shift+d mode "$set_display"
# Configurations for controling media players
mode "$mode_player" {
bindsym s exec playerctl play-pause
bindsym n exec playerctl next
bindsym p exec playerctl previous
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Control+ntilde mode "$mode_player"
set $mode_player ♬ - (s)play/pause, (n)next, (p)previous
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioStop exec playerctl stop
# Disable window titlebars entirely
for_window [class="^.*"] border pixel 3
# Gaps
set $default_gaps_inner 10
set $default_gaps_outer 5
gaps inner $default_gaps_inner
gaps outer $default_gaps_outer
# 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 no_gaps
# 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"
}
# Startup applications
exec_always --no-startup-id pulseaudio --start
exec --no-startup-id pulseaudio --kill
exec --no-startup-id pulseaudio --start
exec --no-startup-id nm-pavucontrol
exec --no-startup-id conky
# exec --no-startup-id dropbox start -i
exec --no-startup-id cbatticon
exec --no-startup-id compton --config ~/.config/compton.conf -b
# Optional if login manager is slim
# exec --no-startup-id xmodmap ~/.Xmodmap
exec_always --no-startup-id xrdb -load .Xresources
# exec --no-startup-id xfce4-panel --disable-wm-check
exec_always --no-startup-id ~/scripts/autodetect-display.sh # exec monitor detection automatically and set correctly
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id nitrogen --restore
exec --no-startup-id nm-applet
exec --no-startup-id volumeicon
# exec --no-startup-id xfce4-power-manager
# exec --no-startup-id pamac-tray
exec --no-startup-id clipit
exec --no-startup-id redshift-gtk
exec --no-startup-id blueman
# exec_always --no-startup-id sbxkb
exec --no-startup-id unclutter
exec --no-startup-id xautolock -time 5 -locker /home/edgar/i3lock-fancy-multimonitor/lock -detectsleep
# Assign applications to workspaces
assign [class="(?i)brasero"] $WS4
# assign [class="(?i)opera"] $WS1
assign [class="(?i)gimp"] $WS6
assign [class="(?i)robomongo"] $WS5
assign [class="(?i)smplayer"] $WS4
assign [class="(?i)mpv"] $WS4
# assign [instance="spotify"] $WS4
assign [class="(?i)inkscape"] $WS6
assign [class="(?i)libreoffice"] $WS7
assign [instance="transmission-gtk"] $WS9
assign [instance="engrampa"] $WS9
assign [instance="qpdfview"] $WS8
assign [class="Klavaro"] $WS5
assign [class="Qtqr"] $WS5
assign [instance="crx_ocgddccilgpeepgglnlpchkpgamkgmld"] $WS5
assign [instance="crx_mojepfklcankkmikonjlnidiooanmpbb"] $WS5
assign [class="(?i)pcmanfm"] $WS9
assign [class="(?i)zathura"] $WS8
assign [class="(?i)pavucontrol"] $WS5
assign [class="(?i)jd-Main"] $WS9
assign [class="(?i)klavaro"] $WS5
for_window [window_role="pop-up"] floating enable
for_window [instance="engrampa"] floating enable, move absolute center
for_window [window_role="GtkFileChooserDialog"] move absolute center
for_window [instance="crx_ocgddccilgpeepgglnlpchkpgamkgmld"] move scratchpad
for_window [instance="crx_ocgddccilgpeepgglnlpchkpgamkgmld"] move absolute center
for_window [instance="(?i)Hyper"] move scratchpad
for_window [instance="(?i)Hyper"] move absolute center
for_window [class="Spotify"] move scratchpad # Works on recent versions of spotify
for_window [class="Spotify"] move absolute center # Works on recent versions of spotify
for_window [instance="pavucontrol"] move scratchpad
for_window [instance="pavucontrol"] move absolute center
for_window [instance="(?i)Franz"] move scratchpad
for_window [instance="(?i)Franz"] move absolute center
for_window [class="gcolor2"] floating enable, move absolute center
for_window [title="alsamixer"] floating enable border pixel 3
for_window [class="Calamares"] floating enable border normal
for_window [class="Clipgrab"] floating enable
for_window [title="File Transfer*"] floating enable
for_window [class="Galculator"] floating enable border pixel 3
for_window [class="GParted"] floating enable border normal
for_window [title="i3_help"] floating enable border normal
for_window [class="Lightdm-gtk-greeter-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="manjaro-settings-manager-gui"] floating enable border normal
for_window [class="Manjaro Welcome"] floating enable
for_window [title="MuseScore: Play Panel"] floating enable
for_window [class="Nitrogen"] floating enable border normal
for_window [class="Oblogout"] fullscreen enable
for_window [class="octopi"] floating enable
for_window [class="Pamac-manager"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="Qtconfig-qt4"] floating enable border normal
for_window [class="Simple-scan"] floating enable border normal
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Skype"] floating enable border normal
for_window [class="Thus"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal
# fix graphics glitch
for_window [class="(?i)xfce4-notifyd"] border none
for_window [class="(?i)nitrogen"] floating enable, move absolute center
# My startup layout for dev workspace
# exec --no-startup-id "i3-msg 'workspace 1:dev; append_layout /home/onimeno/.i3/layouts/development.json'"
# Exec applications for my layout in dev
# exec --no-startup-id emacs
# exec --no-startup-id chromium
# # # Color themes
# # Archlinux
# client.focused #0088CC #0088CC #ffffff #dddddd
# client.focused_inactive #333333 #333333 #888888 #292d2e
# client.unfocused #333333 #333333 #888888 #292d2e
# client.urgent #2f343a #900000 #ffffff #900000c
# # Lime
# client.focused #4E9C00 #4E9C00 #FFFFFF #FFFFFF
# client.focused_inactive #1B3600 #1B3600 #888888 #FFFFFF
# client.unfocused #333333 #333333 #888888 #FFFFFF
# client.urgent #C20000 #C20000 #FFFFFF #FFFFFF
# # Okraits
# # client.focused #888888 #dddddd #222222 #2e9ef4
# client.focused #888888 #d8dfbc #222222 #d8dfbc
# client.focused_inactive #333333 #555555 #bbbbbb #484e50
# client.unfocused #333333 #333333 #888888 #292d2e
# client.urgent #2f343a #900000 #ffffff #900000
# # Seti
# client.focused #4F99D3 #4F99D3 #151718 #9FCA56
# client.focused_inactive #1f2326 #1f2326 #AAAAAA #A074C4
# client.unfocused #1f2326 #1f2326 #AAAAAA #A074C4
# client.urgent #CE4045 #CE4045 #FFFFFF #DCCD69
# # Slate
# client.focused #586e75 #586e75 #fdf6e3 #268bd2
# client.focused_inactive #073642 #073642 #93a1a1 #002b36
# client.unfocused #002b36 #002b36 #586e75 #002b36
# client.urgent #dc322f #dc322f #fdf6e3 #dc322f
# # Solarized
# client.focused #859900 #859900 #fdf6e3 #859900
# # client.focused_inactive #073642 #073642 #eee8d5 #6c71c4
# client.focused_inactive #073642 #073642 #eee8d5 #073642
# client.unfocused #073642 #073642 #93a1a1 #586e75
# client.urgent #d33682 #d33682 #fdf6e3 #dc322f
# # Debian
# client.focused #d70a53 #d70a53 #ffffff #8c0333
# client.focused_inactive #333333 #333333 #888888 #333333
# client.unfocused #333333 #333333 #888888 #333333
# client.urgent #eb709b #eb709b #ffffff #eb709b
# Onimeno theme color
# class border background text indicator child_border
client.focused #c6c6c6 #c6c6c6 #1f1f1f #c6c6c6 #c6c6c6
client.unfocused #282A36 #282A36 #c6c6c6 #282A36 #282A36
client.focused_inactive #c6c6c6 #1f1f1f #c6c6c6 #282A36 #282A36
client.urgent #c6c6c6 #1f1f1f #c6c6c6 #828282 #828282
client.placeholder #c6c6c6 #1f1f1f #c6c6c6 #828282 #828282
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment