-
-
Save nmeln/68a35e6c6ea7fb1c34b1cfd7db82f66c to your computer and use it in GitHub Desktop.
i3 kickstart
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
## ~/.i3status.conf | |
# 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 = true | |
interval = 5 | |
} | |
order += "battery 0" | |
order += "volume master" | |
order += "tztime local" | |
wireless wlan0 { | |
format_up = "W: (%quality at %essid) %ip" | |
format_down = "W: down" | |
} | |
ethernet eth0 { | |
# if you use %speed, i3status requires root privileges | |
format_up = "E: %ip (%speed)" | |
format_down = "E: down" | |
} | |
battery 0 { | |
format = "%percentage" | |
} | |
run_watch DHCP { | |
pidfile = "/var/run/dhclient*.pid" | |
} | |
run_watch VPN { | |
pidfile = "/var/run/vpnc/pid" | |
} | |
tztime local { | |
format = "%d.%m.%Y | %H:%M" | |
} | |
load { | |
format = "%1min" | |
} | |
disk "/" { | |
format = "%avail" | |
} | |
volume master { | |
format = "♪: %volume" | |
device = "default" | |
mixer = "Master" | |
mixer_idx = 0 | |
} |
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
## ~/.i3/config | |
set $mod Mod4 | |
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
bindsym $mod+Return exec i3-sensible-terminal | |
bindsym $mod+Shift+q kill | |
bindsym $mod+d exec dmenu_run | |
bindsym $mod+j focus down | |
bindsym $mod+k focus up | |
bindsym $mod+h focus left | |
bindsym $mod+l focus right | |
bindsym $mod+Shift+j move left | |
bindsym $mod+Shift+k exec killall chrome | |
bindsym $mod+Shift+l move up | |
bindsym $mod+Shift+semicolon move right | |
bindsym $mod+g split h | |
bindsym $mod+v split v | |
bindsym $mod+f fullscreen | |
bindsym $mod+s layout stacking | |
bindsym $mod+w layout tabbed | |
bindsym $mod+e layout toggle split | |
bindsym $mod+Shift+space floating toggle | |
bindsym $mod+space focus mode_toggle | |
bindsym $mod+a focus parent | |
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+z workspace skype | |
bindsym $mod+m workspace mc | |
bindsym $mod+c workspace cmus | |
bindsym $mod+Shift+z move container to workspace skype | |
bindsym $mod+Shift+m move container to workspace mc | |
bindsym $mod+Shift+c move container to workspace cmus | |
#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'" | |
mode "resize" { | |
bindsym h resize shrink width 8 px or 8 ppt | |
bindsym j resize grow height 8 px or 8 ppt | |
bindsym k resize shrink height 8 px or 8 ppt | |
bindsym l resize grow width 8 px or 8 ppt | |
bindsym Right resize shrink width 1 px or 1 ppt | |
bindsym Down resize grow height 1 px or 1 ppt | |
bindsym Up resize shrink height 1 px or 1 ppt | |
bindsym Left resize grow width 1 px or 1 ppt | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} | |
bindsym $mod+r mode "resize" | |
bar { | |
status_command /bin/conky-i3bar | |
colors { | |
separator #888888 | |
background #333333 | |
statusline #FFFFFF | |
focused_workspace #516D7B #516D7B #FFFFFF | |
active_workspace #333333 #333333 #FFFFFF | |
inactive_workspace #333333 #333333 #888888 | |
urgent_workspace #C20000 #C20000 #FFFFFF | |
} | |
} | |
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && killall -SIGUSR1 i3status | |
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && killall -SIGUSR1 i3status | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle | |
client.focused #516D7B #516D7B #FFFFFF #FFFFFF | |
client.focused_inactive #333333 #516D7B #888888 #FFFFFF | |
client.unfocused #333333 #333333 #888888 #FFFFFF | |
client.urgent #C20000 #C20000 #FFFFFF #FFFFFF | |
exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" | |
exec xrdb -merge ~/.Xresources | |
exec ntpd -sd | |
exec stty -ixon | |
exec xset -dpms;xset s off | |
new_window 1pixel | |
hide_edge_borders both |
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
## /bin/conky-i3bar | |
#!/bin/sh | |
echo '{"version":1}' | |
echo '[' | |
echo '[],' | |
exec conky -c $HOME/.conkyrc |
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
## ~/.i3/i3init.sh | |
#!/bin/bash | |
i3status --config ~/.i3status.conf | while: | |
do | |
read line | |
LG=$(setxkbmap -query | awk '/layout/{print $2}') | |
echo "$LG | $line" || exit 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment