Initial commit.

This commit is contained in:
2013-09-14 14:35:23 +02:00
commit 6252ec3a09
19 changed files with 959 additions and 0 deletions

267
i3/i3/config Normal file
View File

@@ -0,0 +1,267 @@
# 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!
# Use the win-key as modifier
set $mod Mod4
# The default terminal
set $terminal terminator
# Keyboard options
set $keyboard_layout de
set $keyboard_options nodeadkeys
# Mouse options
set $mouse_repeat_delay 150
set $mouse_repeat_speed 25
# Path to the exit script
set $path_i3exit ~/.i3/scripts/i3exit.bash
# Path and options for the wallpaper changer script
set $path_wallchanger ~/.i3/scripts/wallchanger.bash
set $wallpaper_directory "$HOME/Bilder/wallpaper/misc"
set $wallpaper_logfile "$HOME/.i3/logs/wallpaper.log"
set $wallpaper_interval 900
# Path to the config file for i3status
set $path_i3status_config ~/.i3/i3status.conf
# font for window titles. ISO 10646 = Unicode
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font pango:DejaVu Sans Mono 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier Mod1
# start a terminal
bindsym $mod+Return exec $terminal
# kill focused window
bindsym $mod+Shift+Q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+H move left
bindsym $mod+Shift+J move down
bindsym $mod+Shift+K move up
bindsym $mod+Shift+L 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+g 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, default)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout default
# 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
#bindcode $mod+d focus child
# switch to workspace
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
# move focused container to workspace
bindsym $mod+Shift+exclam move container to workspace 1
bindsym $mod+Shift+quotedbl move container to workspace 2
bindsym $mod+Shift+section move container to workspace 3
bindsym $mod+Shift+dollar move container to workspace 4
bindsym $mod+Shift+percent move container to workspace 5
bindsym $mod+Shift+ampersand move container to workspace 6
bindsym $mod+Shift+slash move container to workspace 7
bindsym $mod+Shift+parenleft move container to workspace 8
bindsym $mod+Shift+parenright move container to workspace 9
bindsym $mod+Shift+equal move container to workspace 10
# 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 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 windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
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
# same bindings, but for the arrow keys
bindsym 113 resize shrink width 10 px or 10 ppt
bindsym 116 resize grow height 10 px or 10 ppt
bindsym 111 resize shrink height 10 px or 10 ppt
bindsym 114 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"
# Default orientation for new workspaces will be derived from aspect ratio
default_orientation auto
# New containers will start in tiling mode
workspace_layout default
# Draw normal borders around all windows
new_window normal
new_float normal
# Do not show vertical borders between windows
hide_edge_borders vertical
# Focus follows mouse
focus_follows_mouse yes
# Only map a popup in fullscreen mode if it belongs to the fullscreen window
popup_during_fullscreen smart
# Do not always wrap but change to a container on the same level instead
force_focus_wrapping no
# Do no force xinerama
force_xinerama no
# Hit the current workspace button again to return to the previous workspace
workspace_auto_back_and_forth yes
# Draw a window as urgent when switching to its workspace, even if focused, for
# 500 ms
force_display_urgency_hint 500 ms
# Cycle through workspaces
bindsym $mod+u workspace prev_on_output
bindsym $mod+i workspace next_on_output
bindsym $mod+Shift+u move container to workspace prev_on_output
bindsym $mod+Shift+i move container to workspace next_on_output
# Always let the following applications float:
# The wicd client GUI
for_window [class="^Wicd-client.py$"] floating enable
# Notifications through xfce4-notifyd, e.g. notifications from wicd
for_window [class="^Xfce4-notifyd$"] floating enable
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
mode dock
position bottom
tray_output primary
font pango:DejaVu Sans Mono 8
workspace_buttons yes
colors {
background #000000
statusline #ffffff
separator #666666
focused_workspace #4c7899 #285577 #ffffff
active_workspace #333333 #5f676a #ffffff
inactive_workspace #333333 #222222 #888888
urgent_workspace #2f343a #900000 #ffffff
}
status_command i3status --config $path_i3status_config
}
# Start the wallpaper changer.
exec --no-startup-id $path_wallchanger $wallpaper_directory $wallpaper_interval > $wallpaper_logfile
# Set keyboard layout
exec --no-startup-id setxkbmap $keyboard_layout $keyboard_options
# Set key repeat delay
exec --no-startup-id xset r rate $mouse_repeat_delay $mouse_repeat_speed
# Start wicd in tray
exec --no-startup-id wicd-gtk --tray
# Enabling a mode to shutdown, reboot, lock screen and so on
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id $path_i3exit lock, mode "default"
bindsym e exec --no-startup-id $path_i3exit logout, mode "default"
bindsym s exec --no-startup-id $path_i3exit suspend, mode "default"
bindsym h exec --no-startup-id $path_i3exit hibernate, mode "default"
bindsym r exec --no-startup-id $path_i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Pause mode "$mode_system"
bindsym $mod+Shift+Pause exec --no-startup-id $path_i3exit lock
bindsym XF86Sleep exec --no-startup-id $path_i3exit suspend
bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master %5+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master %5-

BIN
i3/i3/data/lockscreen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

85
i3/i3/i3status.conf Normal file
View File

@@ -0,0 +1,85 @@
# 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 = 1
}
#order += "ipv6"
#order += "disk /"
#order += "disk /var"
order += "disk /home"
order += "cpu_temperature 0"
#order += "run_watch DHCP"
#order += "run_watch VPN"
order += "wireless wlp2s0"
order += "ethernet enp1s0"
#order += "ethernet eth0"
order += "battery 0"
order += "load"
order += "volume master"
order += "tztime local"
wireless wlp2s0 {
format_up = "W: %quality %ip"
# format_up = "W: %essid: %quality %ip"
format_down = "W: down"
}
ethernet enp1s0 {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
battery 0 {
format = "%status %remaining (%percentage)"
integer_battery_capacity = true
low_threshold = 10
threshold_type = percentage
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
}
load {
format = "L: %1min"
max_threshold = 5
}
disk "/" {
format = "/: %avail/%total free (%percentage_avail)"
}
disk "/var" {
format = "/var: %avail/%total free (%percentage_avail)"
}
disk "/home" {
format = "/home: %avail/%total free (%percentage_avail)"
}
cpu_temperature 0 {
format = "T: %degrees °C"
}
volume master {
format = "VOL: %volume"
device = "default"
mixer = "Master"
}

33
i3/i3/scripts/i3exit.bash Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
### From http://www.archlinux.org/index.php/i3
lock() {
i3lock --image="$HOME/.i3/data/lockscreen.png"
}
case "$1" in
lock)
lock
;;
logout)
i3-msg exit
;;
suspend)
lock && systemctl suspend
;;
hibernate)
lock && systemctl hibernate
;;
reboot)
systemctl reboot
;;
shutdown)
systemctl poweroff
;;
*)
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
exit 2
esac
exit 0

View File

@@ -0,0 +1 @@
/home/hannes/development/projects/wallchanger/wallchanger.bash