Last active
November 26, 2015 09:13
-
-
Save rynffoll/83c4c57951ae2ff1c201 to your computer and use it in GitHub Desktop.
i3wm + i3blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## vars | |
set $mod Mod4 | |
set $meta Mod1 | |
set $run i3-dmenu-desktop | |
#set $term i3-sensible-terminal | |
set $term xfce4-terminal | |
## colors | |
# class border backgr. text indicator | |
client.focused #4c7899 #285577 #ffffff #2e9ef4 | |
client.focused_inactive #333333 #5f676a #ffffff #484e50 | |
client.unfocused #333333 #222222 #888888 #292d2e | |
client.urgent #2f343a #900000 #ffffff #900000 | |
#font -*-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-* | |
font pango:DejaVu Sans Mono 9 | |
## options | |
workspace_layout tabbed | |
new_window pixel 2 | |
focus_follows_mouse no | |
default_orientation vertical | |
#popup_during_fullscreen leave_fullscreen | |
floating_modifier $mod | |
workspace_auto_back_and_forth yes | |
## bindkeys | |
bindsym $mod+Return exec $term | |
bindsym $mod+d exec --no-startup-id $run | |
#bindsym $meta+space exec xfce4-appfinder | |
bindsym $meta+space exec --no-startup-id j4-dmenu-desktop --display-binary --dmenu="rofi -dmenu -p run:" | |
bindsym $mod+w exec --no-startup-id rofi -show window | |
bindsym $mod+Shift+c kill | |
bindsym $mod+Tab workspace back_and_forth | |
# hjkl | |
bindsym $mod+h focus left | |
bindsym $mod+j focus down | |
bindsym $mod+k focus up | |
bindsym $mod+l focus right | |
bindsym $mod+Shift+h move left | |
bindsym $mod+Shift+j move down | |
bindsym $mod+Shift+k move up | |
bindsym $mod+Shift+l move right | |
bindsym $mod+f fullscreen | |
bindsym $mod+v split v | |
bindsym $mod+g split h | |
bindsym $mod+n layout stacking | |
bindsym $mod+m layout tabbed | |
bindsym $mod+u layout default | |
bindsym $mod+o layout toggle split | |
bindsym $mod+Shift+space floating toggle | |
bindsym $mod+space focus mode_toggle | |
bindsym $mod+t border toggle | |
bindsym $mod+p focus parent | |
bindsym $mod+c focus child | |
bindsym $mod+Shift+s move scratchpad | |
bindsym $mod+s scratchpad show | |
bindsym $mod+Shift+b bar mode toggle | |
bindsym $mod+1 workspace 1 | |
bindsym $mod+2 workspace 2 | |
bindsym $mod+3 workspace 3 | |
bindsym $mod+4 workspace 4 | |
bindsym $mod+5 workspace 5 | |
bindsym $mod+6 workspace 6 | |
bindsym $mod+7 workspace 7 | |
bindsym $mod+8 workspace 8 | |
bindsym $mod+9 workspace 9 | |
bindsym $mod+0 workspace 10 | |
bindsym $mod+Shift+1 move container to workspace 1 | |
bindsym $mod+Shift+2 move container to workspace 2 | |
bindsym $mod+Shift+3 move container to workspace 3 | |
bindsym $mod+Shift+4 move container to workspace 4 | |
bindsym $mod+Shift+5 move container to workspace 5 | |
bindsym $mod+Shift+6 move container to workspace 6 | |
bindsym $mod+Shift+7 move container to workspace 7 | |
bindsym $mod+Shift+8 move container to workspace 8 | |
bindsym $mod+Shift+9 move container to workspace 9 | |
bindsym $mod+Shift+0 move container to workspace 10 | |
bindsym $mod+Control+h move workspace to output left | |
bindsym $mod+Control+j move workspace to output down | |
bindsym $mod+Control+k move workspace to output up | |
bindsym $mod+Control+l move workspace to output right | |
#bindsym $mod+Shift+c reload | |
bindsym $mod+Shift+r restart | |
#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+q exec "i3 exit" | |
mode "resize" { | |
bindsym h resize shrink width 10 px or 10 ppt | |
bindsym j resize grow height 10 px or 10 ppt | |
bindsym k resize shrink height 10 px or 10 ppt | |
bindsym l resize grow width 10 px or 10 ppt | |
bindsym plus resize grow width 10 px or 10 ppt | |
bindsym minus resize shrink width 10 px or 10 ppt | |
bindsym Shift+plus resize grow height 10 px or 10 ppt | |
bindsym Shift+minus resize shrink height 10 px or 10 ppt | |
# bindsym Shift+greater resize grow width 10 px or 10 ppt | |
# bindsym Shift+less resize shrink width 10 px or 10 ppt | |
# back to normal | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
bindsym Control+g mode "default" | |
} | |
bindsym $mod+Control+r mode "resize" | |
## rules | |
# assign [class="Firefox"] 2 | |
# #assign [class="mplayer2"] 3 | |
# assign [class="Skype"] 5 | |
# assign [class="Steam"] 8 | |
# assign [class="VirtualBox"] 9 | |
#for_window [class="MPlayer"] floating enable | |
#for_window [title="qiv:"] floating enable | |
#for_window [class="Pqiv"] floating enable | |
#for_window [class="Gimp"] border normal | |
#for_window [class="Uzbl-core"] layout tabbed | |
for_window [title="rynffoll - Skype™"] floating enable | |
for_window [title="Ediff"] floating enable | |
for_window [class="Xfce4-appfinder"] floating enable | |
## statusbar | |
bar { | |
# mode hide | |
# hidden_state hide | |
# modifier $mod | |
#status_command i3status | |
font pango:DejaVu Sans Mono, FontAwesome 10 | |
status_command i3blocks | |
position top | |
colors { | |
background #222222 | |
statusline #cccccc | |
} | |
} | |
## autostart | |
# xfce4 | |
exec --no-startup-id xfce4-power-manager& | |
exec --no-startup-id xfce4-volumed& | |
#exec --no-startup-id xfsettingsd& | |
exec --no-startup-id xbindkeys& | |
exec --no-startup-id dropbox start -i& | |
exec --no-startup-id /home/rynffoll/bin/emacs-daemon-start.sh& | |
exec --no-startup-id nm-applet& | |
exec --no-startup-id skype& | |
exec --no-startup-id firefox& | |
#exec --no-startup-id xss-lock -- i3lock -c 333333 -p default -d -t & | |
exec --no-startup-id compton& | |
exec --no-startup-id kbdd& | |
exec --no-startup-id nitrogen --restore& |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i3blocks config file | |
# | |
# Please see man i3blocks for a complete reference! | |
# The man page is also hosted at http://vivien.github.io/i3blocks | |
# | |
# List of valid properties: | |
# | |
# align | |
# color | |
# command | |
# full_text | |
# instance | |
# interval | |
# label | |
# min_width | |
# name | |
# separator | |
# separator_block_width | |
# short_text | |
# signal | |
# urgent | |
# Global properties | |
separator_block_width=15 | |
[EMMS] | |
#label= | |
command=/home/rynffoll/bin/playnow bar | |
interval=5 | |
[memory] | |
label= | |
command=/usr/share/i3blocks/memory | |
interval=10 | |
[cpu] | |
label= | |
command=/usr/share/i3blocks/cpu_usage | |
min_width= 100.00% | |
interval=5 | |
[battery] | |
label= | |
command=/usr/share/i3blocks/battery | |
interval=10 | |
[time] | |
label= | |
command=date '+%d-%m-%Y %H:%M' | |
interval=5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment