Merge branch 'master' of http://www.github.com/whatevsz/dotfiles
This commit is contained in:
1
i3/i3/.gitignore
vendored
Normal file
1
i3/i3/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
session.config
|
||||
45
i3/i3/config
45
i3/i3/config
@@ -15,14 +15,6 @@ 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
|
||||
|
||||
@@ -222,45 +214,17 @@ for_window [class="^Xfce4-notifyd$"] floating enable
|
||||
|
||||
for_window [class="^Conky$" ] 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
|
||||
|
||||
# Start conky
|
||||
exec --no-startup-id conky
|
||||
#exec --no-startup-id conky
|
||||
|
||||
# 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
|
||||
@@ -278,10 +242,3 @@ mode "$mode_system" {
|
||||
}
|
||||
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-
|
||||
|
||||
3
i3/i3/config.d/default
Normal file
3
i3/i3/config.d/default
Normal file
@@ -0,0 +1,3 @@
|
||||
bar {
|
||||
status_command i3status
|
||||
}
|
||||
38
i3/i3/config.d/netbook
Normal file
38
i3/i3/config.d/netbook
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
# bind some keys
|
||||
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-
|
||||
|
||||
# start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
# always show at the bottom of the screen
|
||||
mode dock
|
||||
position bottom
|
||||
|
||||
# show a tray area
|
||||
tray_output primary
|
||||
|
||||
# show workspace buttons
|
||||
workspace_buttons yes
|
||||
|
||||
id bar-1
|
||||
|
||||
font pango:DejaVu Sans Mono 8
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
i3bar_command i3bar
|
||||
status_command i3status --config $path_i3status_config
|
||||
}
|
||||
31
i3/i3/genconfig.bash
Normal file
31
i3/i3/genconfig.bash
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
# main configuration file that is always used
|
||||
MAIN_CONF="$HOME/.i3/config"
|
||||
# temporary configuration file used for this session
|
||||
SESSION_CONF="$HOME/.i3/session.config"
|
||||
# directory that contains host specific configuration
|
||||
CONF_DIR="$HOME/.i3/config.d"
|
||||
# file that should be used when no host specific configuration present
|
||||
DEFAULT_CONF="$CONF_DIR/default"
|
||||
|
||||
host_specific_conf="$CONF_DIR/$(hostname).config"
|
||||
|
||||
# if it's a symlink to $MAIN_CONF, cat will fail
|
||||
[[ -f "$SESSION_CONF" ]] && rm "$SESSION_CONF"
|
||||
|
||||
if [[ ! -f "$host_specific_conf" ]] && [[ ! -f "$DEFAULT_CONF" ]]; then
|
||||
# if there is no host-specific configuration and no default one, just use
|
||||
# the main config
|
||||
ln -sf "$MAIN_CONF" "$SESSION_CONF"
|
||||
else
|
||||
# either use the host specific config if present, or the default if not
|
||||
if [[ -f "$host_specific_conf" ]]; then
|
||||
conf_to_use="$host_specific_conf"
|
||||
else
|
||||
conf_to_use="$DEFAULT_CONF"
|
||||
fi
|
||||
cat "$MAIN_CONF" "$conf_to_use" > "$SESSION_CONF"
|
||||
fi
|
||||
|
||||
echo "$SESSION_CONF"
|
||||
@@ -54,7 +54,7 @@ run_watch VPN {
|
||||
}
|
||||
|
||||
tztime local {
|
||||
format = "%Y-%m-%d %H:%M:%S"
|
||||
format = "%a %Y-%m-%d %H:%M:%S"
|
||||
}
|
||||
|
||||
load {
|
||||
|
||||
Reference in New Issue
Block a user