Update i3 configuration, move session commands in xinitrc.

This commit is contained in:
2014-04-17 19:35:04 +02:00
parent 7563d55f2e
commit 2e85f7d684
6 changed files with 99 additions and 36 deletions

View File

@@ -39,23 +39,16 @@
set $signal_reboot reboot
set $signal_shutdown shutdown
# 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_fallback "$HOME/.i3/data/wallpaper/"
set $wallpaper_interval 900
set $workspace1 1:www
set $workspace2 2:mail
set $workspace1 1
set $workspace2 2
set $workspace3 3
set $workspace4 4
set $workspace5 5
set $workspace6 6
set $workspace7 7
set $workspace8 8:irc
set $workspace9 9:im
set $workspace10 10:skype
set $workspace8 8
set $workspace9 9
set $workspace10 10
set $key_workspace1 1
set $key_workspace2 2
@@ -73,7 +66,7 @@
set $up k
set $right l
set $splith g
set $splith c
set $splitv v
set $fullscreen f
@@ -99,8 +92,8 @@
set $redshift_latitude 49.5
set $redshift_longitude 11
set $redshift_colortemp_day
set $redshift_colortemp_night
set $redshift_colortemp_day 6500
set $redshift_colortemp_night 4500
################################################################################
### KEYBINDINGS ################################################################
@@ -173,7 +166,8 @@
bindsym $mod+Shift+$next_on_output move container to workspace next_on_output
# regenerate and reload the configuration file
bindsym $mod+$reload exec --no-startup-id bash ~/.i3/scripts/genconfig.bash ; reload
# if genconfig gets any paramters, it will invoke i3-msg reload
bindsym $mod+$reload exec --no-startup-id bash ~/.i3/scripts/genconfig.bash 1
bindsym $mod+$restart restart
bindsym $mod+$exit exit
@@ -293,16 +287,7 @@
for_window [class="^Firefox$"] border 1pixel
for_window [class="^Truecrypt$"] floating enable
for_window [class="^URxvt$"] border 1pixel
################################################################################
### APPLICATION AUTOSTART ######################################################
################################################################################
set $redshift_lat_long 49.5:11
set $redshift_colortemp 5500:3700
exec --no-startup-id $path_wallchanger $wallpaper_directory $wallpaper_interval $wallpaper_fallback > $wallpaper_logfile &
exec --no-startup-id wicd-gtk --tray &
exec --no-startup-id gtk-redshift -l $redshift_lat_long -t $redshift_colortemp &
#exec --no-startup-id conky
for_window [class="^Cairo-dock$"] floating enable ; border none
for_window [class="^Pavucontrol$"] floating enable
for_window [title="^Skype.*for Linux$" ] floating enable
for_window [class="^Chromium$" ] border none

View File

@@ -0,0 +1,39 @@
# 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-
# keys seemingly switched
bindsym XF86MonBrightnessUp exec --no-startup-id sudo /usr/local/bin/backlight.sh -10
bindsym XF86MonBrightnessDown exec --no-startup-id sudo /usr/local/bin/backlight.sh +10
# start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
# always show at the top of the screen
mode dock
position top
tray_output primary
# show workspace buttons
workspace_buttons yes
id bar-0
font pango:DejaVu Sans Mono, Icons 10
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 bash ~/.i3/i3bar_wrapper.bash ~/.i3/conky/virtualarch.conkyrc
}

View File

@@ -31,3 +31,8 @@ else
fi
echo "$SESSION_CONF"
# if we got any parameters, tell i3 to reload the config
# so the script can be used both on startup without reload (as i3 is not even
# running yet) and later when reloading
[[ -n "$1" ]] && i3-msg reload

View File

@@ -28,6 +28,9 @@ lock()
background_options="--color $FALLBACK_COLOR"
fi
i3lock $background_options
retval=$?
[[ -z "$1" ]] && sleep 1 && xset dpms force off
return $retval
}
log "[I] Received signal \"$1\"."
@@ -43,7 +46,7 @@ case "$1" in
;;
suspend)
log "[I] Suspending."
lock && systemctl suspend
lock "1" && systemctl suspend
;;
hibernate)
log "[I] Hibernating."