Created
July 24, 2015 16:07
-
-
Save yotamN/945f83dbd190e73ff5c1 to your computer and use it in GitHub Desktop.
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 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 | |
color_good = "#a3be8c" | |
color_bad = "#bf616a" | |
color_degraded = "#d08770" | |
output_format = "i3bar" | |
interval = 1 | |
} | |
#order += "disk /home" | |
#order += "volume master" | |
order += "cpu_usage 0" | |
#order += "cpu_temperature 0" | |
#order += "ipv6" | |
#order += "run_watch DHCP" | |
#order += "run_watch VPN" | |
#order += "wireless wlan0" | |
#order += "ethernet eth0" | |
#order += "battery 0" | |
#order += "load" | |
order += "tztime local" | |
wireless wlan0 { | |
format_up = "W: (%quality at %essid, %bitrate) %ip" | |
format_down = "W: down" | |
} | |
ethernet eth0 { | |
# if you use %speed, i3status requires root privileges | |
format_up = "E: %ip" | |
format_down = "E: down" | |
} | |
battery 0 { | |
format = "%status %percentage %remaining" | |
last_full_capacity = true | |
low_threshold = 10 | |
} | |
cpu_usage { | |
format = "CPU: %usage" | |
} | |
run_watch DHCP { | |
pidfile = "/var/run/dhclient*.pid" | |
} | |
run_watch VPN { | |
pidfile = "/var/run/vpnc/pid" | |
} | |
tztime local { | |
format = "%d/%m %H:%M" | |
} | |
load { | |
format = "%1min" | |
} | |
disk "/home" { | |
format = "|Home:%free" | |
} | |
cpu_temperature 0 { | |
format ="T:%degrees°C" | |
max_threshold = 65 | |
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon0/temp1_input" | |
} | |
volume master { | |
format = "Vol:%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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
set $mod Mod4 | |
set $bordersize 5 | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. ISO 10646 = Unicode | |
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
# The font above is very space-efficient, that is, it looks good, sharp and | |
# clear in small sizes. However, if you need a lot of unicode glyphs or | |
# right-to-left text rendering, you should instead use pango for rendering and | |
# chose a FreeType font, such as: | |
# font pango:DejaVu Sans Mono 10 | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
# start a terminal | |
bindsym $mod+Return exec i3-sensible-terminal | |
# kill focused window | |
bindsym $mod+Shift+q kill | |
# start dmenu (a program launcher) | |
bindsym $mod+d exec dmenu_run | |
# There also is the (new) i3-dmenu-desktop which only displays applications | |
# shipping a .desktop file. It is a wrapper around dmenu, so you need that | |
# installed. | |
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | |
# change focus | |
bindsym $mod+j focus left | |
bindsym $mod+k focus down | |
bindsym $mod+l focus up | |
bindsym $mod+semicolon 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+semicolon 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 | |
# 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+d focus child | |
### Workspace variables - change the workspace labels here! | |
set $WS1 1 term | |
set $WS2 2 www | |
set $WS3 3 dev | |
set $WS4 4 irc | |
set $WS5 5 files | |
set $WS6 6 graphics | |
set $WS7 7 games | |
set $WS8 8 | |
set $WS9 9 | |
set $WS10 10 | |
### Switch workspaces | |
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 $WS10 | |
### Send 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'" | |
# 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 semicolon 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" | |
# Start i3bar to display a workspace bar (plus the system information i3status | |
# finds out, if available) | |
#bar { | |
# status_command i3status | |
# font pango: Ubuntu Mono 10 | |
# tray_output none | |
# | |
# colors{ | |
# background #232323 | |
# statusline #DCDCDC | |
# } | |
#} | |
# Startup applications | |
exec synapse | |
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 | |
exec --no-startup-id feh --bg-scale ~/Pictures/background.jpg | |
exec --no-startup-id nm-applet | |
exec --no-startup-id pulseaudio | |
# Applications shortcuts | |
bindsym $mod+F1 exec firefox | |
# Client style | |
#client.focused #1C2023 #1C2023 #00BAA7 #00DA8E | |
#client.focused_inactive #1C2023 #1C2023 #ffffff #484e50 | |
#client.unfocused #1C2023 #1C2023 #888888 #292d2e | |
#client.urgent #C10004 #900000 #ffffff #900000 | |
#name #top #border #text | |
client.focused #402e2e #978965 #402e2e #978965 | |
client.unfocused #402e2e #402e2e #978965 #402e2e | |
client.focused_inactive #402e2e #402e2e #978965 #402e2e | |
client.urgent #402e2e #402e2e #978965 #402e2e | |
### Init i3bar and set colors | |
bar { | |
status_command i3status | |
# strip_workspace_numbers yes | |
tray_output none | |
colors { | |
statusline #978965 | |
background #1f1f1f | |
#name #border #bg #text | |
focused_workspace #978965 #402e2e #978965 | |
active_workspace #402e2e #402e2e #978965 | |
inactive_workspace #402e2e #402e2e #978965 | |
urgent_workspace #402e2e #402e2e #978965 | |
} | |
} | |
# System Font | |
font pango: Ubuntu Mono 10 | |
# Windowtype | |
# none = no border, normal = default i3, 1pixel = 1pixel border | |
bindsym $mod+Shift+x border none | |
bindsym $mod+Shift+n border normal | |
bindsym $mod+Shift+o border pixel 5 | |
# Move workspace between screen | |
bindsym Mod1+Ctrl+Shift+Left move workspace to output left | |
bindsym Mod1+Ctrl+Shift+Right move workspace to output right | |
# Style the border | |
new_float pixel $bordersize | |
new_window pixel $bordersize | |
# Taking screenshot | |
bindsym Print exec "scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/shots' -s" | |
bindsym Shift+Print exec scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/shots' | |
# App To Workspace | |
assign [class="Gimp"] $WS6 | |
assign [class="PhpStorm"] $WS3 | |
assign [class="Steam"] $WS7 | |
assign [class="Natilus"] $WS5 | |
assign [class="Files"] $WS5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment