Update i3 configuration, move session commands in xinitrc.
This commit is contained in:
43
i3/i3/config
43
i3/i3/config
@@ -39,23 +39,16 @@
|
|||||||
set $signal_reboot reboot
|
set $signal_reboot reboot
|
||||||
set $signal_shutdown shutdown
|
set $signal_shutdown shutdown
|
||||||
|
|
||||||
# Path and options for the wallpaper changer script
|
set $workspace1 1
|
||||||
set $path_wallchanger ~/.i3/scripts/wallchanger.bash
|
set $workspace2 2
|
||||||
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 $workspace3 3
|
set $workspace3 3
|
||||||
set $workspace4 4
|
set $workspace4 4
|
||||||
set $workspace5 5
|
set $workspace5 5
|
||||||
set $workspace6 6
|
set $workspace6 6
|
||||||
set $workspace7 7
|
set $workspace7 7
|
||||||
set $workspace8 8:irc
|
set $workspace8 8
|
||||||
set $workspace9 9:im
|
set $workspace9 9
|
||||||
set $workspace10 10:skype
|
set $workspace10 10
|
||||||
|
|
||||||
set $key_workspace1 1
|
set $key_workspace1 1
|
||||||
set $key_workspace2 2
|
set $key_workspace2 2
|
||||||
@@ -73,7 +66,7 @@
|
|||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
|
|
||||||
set $splith g
|
set $splith c
|
||||||
set $splitv v
|
set $splitv v
|
||||||
|
|
||||||
set $fullscreen f
|
set $fullscreen f
|
||||||
@@ -99,8 +92,8 @@
|
|||||||
|
|
||||||
set $redshift_latitude 49.5
|
set $redshift_latitude 49.5
|
||||||
set $redshift_longitude 11
|
set $redshift_longitude 11
|
||||||
set $redshift_colortemp_day
|
set $redshift_colortemp_day 6500
|
||||||
set $redshift_colortemp_night
|
set $redshift_colortemp_night 4500
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
### KEYBINDINGS ################################################################
|
### KEYBINDINGS ################################################################
|
||||||
@@ -173,7 +166,8 @@
|
|||||||
bindsym $mod+Shift+$next_on_output move container to workspace next_on_output
|
bindsym $mod+Shift+$next_on_output move container to workspace next_on_output
|
||||||
|
|
||||||
# regenerate and reload the configuration file
|
# 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+$restart restart
|
||||||
bindsym $mod+$exit exit
|
bindsym $mod+$exit exit
|
||||||
@@ -293,16 +287,7 @@
|
|||||||
for_window [class="^Firefox$"] border 1pixel
|
for_window [class="^Firefox$"] border 1pixel
|
||||||
for_window [class="^Truecrypt$"] floating enable
|
for_window [class="^Truecrypt$"] floating enable
|
||||||
for_window [class="^URxvt$"] border 1pixel
|
for_window [class="^URxvt$"] border 1pixel
|
||||||
|
for_window [class="^Cairo-dock$"] floating enable ; border none
|
||||||
################################################################################
|
for_window [class="^Pavucontrol$"] floating enable
|
||||||
### APPLICATION AUTOSTART ######################################################
|
for_window [title="^Skype.*for Linux$" ] floating enable
|
||||||
################################################################################
|
for_window [class="^Chromium$" ] border none
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|||||||
39
i3/i3/config.d/notebook.config
Normal file
39
i3/i3/config.d/notebook.config
Normal 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
|
||||||
|
}
|
||||||
@@ -31,3 +31,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$SESSION_CONF"
|
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
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ lock()
|
|||||||
background_options="--color $FALLBACK_COLOR"
|
background_options="--color $FALLBACK_COLOR"
|
||||||
fi
|
fi
|
||||||
i3lock $background_options
|
i3lock $background_options
|
||||||
|
retval=$?
|
||||||
|
[[ -z "$1" ]] && sleep 1 && xset dpms force off
|
||||||
|
return $retval
|
||||||
}
|
}
|
||||||
|
|
||||||
log "[I] Received signal \"$1\"."
|
log "[I] Received signal \"$1\"."
|
||||||
@@ -43,7 +46,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
suspend)
|
suspend)
|
||||||
log "[I] Suspending."
|
log "[I] Suspending."
|
||||||
lock && systemctl suspend
|
lock "1" && systemctl suspend
|
||||||
;;
|
;;
|
||||||
hibernate)
|
hibernate)
|
||||||
log "[I] Hibernating."
|
log "[I] Hibernating."
|
||||||
|
|||||||
40
x/xinitrc
40
x/xinitrc
@@ -12,24 +12,52 @@ fi
|
|||||||
|
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
|
||||||
# keyboard options
|
# keyboard options
|
||||||
keyboard_layout=de
|
keyboard_layout=de
|
||||||
keyboard_variant=nodeadkeys
|
keyboard_variant=nodeadkeys
|
||||||
keyboard_repeat_delay=150
|
keyboard_repeat_delay=150
|
||||||
keyboard_repeat_speed=30
|
keyboard_repeat_speed=30
|
||||||
|
|
||||||
|
# path and options for the wallpaper changer script
|
||||||
|
path_wallchanger="$HOME/.i3/scripts/wallchanger.bash"
|
||||||
|
wallpaper_directory="$HOME/pictures/wallpaper/misc"
|
||||||
|
wallpaper_logfile="$HOME/.i3/logs/wallpaper.log"
|
||||||
|
wallpaper_fallback="$HOME/.i3/data/wallpaper/"
|
||||||
|
wallpaper_interval="900"
|
||||||
|
|
||||||
|
# redshift settings
|
||||||
|
redshift_lat_long="49.5:11"
|
||||||
|
redshift_colortemp="5500:3700"
|
||||||
|
|
||||||
|
# start the pulseaudio volume control tray applet
|
||||||
|
pasystray &
|
||||||
|
|
||||||
|
# start dropbox
|
||||||
|
dropboxd &
|
||||||
|
|
||||||
|
# start the wallpaper changer
|
||||||
|
$path_wallchanger "$wallpaper_directory" "$wallpaper_interval" "$wallpaper_fallback" > "$wallpaper_logfile" &
|
||||||
|
|
||||||
|
# start redshift
|
||||||
|
redshift-gtk -l "$redshift_lat_long" -t "$redshift_colortemp" &
|
||||||
|
|
||||||
|
# set keyboard layout
|
||||||
|
setxkbmap -layout "$keyboard_layout" -variant "$keyboard_variant" &
|
||||||
|
|
||||||
|
# set key repeat delay
|
||||||
|
xset r rate "$keyboard_repeat_delay" "$keyboard_repeat_speed" &
|
||||||
|
|
||||||
# execute the host-specific .xinitrc-addition
|
# execute the host-specific .xinitrc-addition
|
||||||
hostfile="$HOME/.xinitrc.d/$(hostname).xinitrc"
|
hostfile="$HOME/.xinitrc.d/$(hostname).xinitrc"
|
||||||
[[ -f "$hostfile" ]] && bash "$hostfile" &
|
[[ -f "$hostfile" ]] && bash "$hostfile" &
|
||||||
|
|
||||||
# set keyboard layout
|
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources &
|
||||||
setxkbmap -layout "$keyboard_layout" -variant "$keyboard_variant"
|
|
||||||
|
|
||||||
# set key repeat delay
|
LOG="$HOME/.i3/logs/i3.log"
|
||||||
xset r rate "$keyboard_repeat_delay" "$keyboard_repeat_speed"
|
LOGOLD="$HOME/.i3/logs/i3.log.old"
|
||||||
|
|
||||||
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
|
# simple logrotate so we can still get info about the last session
|
||||||
|
[[ -f "$LOG" ]] && mv -f "$LOG" "$LOGOLD"
|
||||||
|
|
||||||
SESSION_CONF=$(bash "$HOME/.i3/scripts/genconfig.bash")
|
SESSION_CONF=$(bash "$HOME/.i3/scripts/genconfig.bash")
|
||||||
exec i3 -c "$SESSION_CONF" >> ~/.i3/logs/i3.log
|
exec i3 -c "$SESSION_CONF" >> ~/.i3/logs/i3.log
|
||||||
|
|||||||
3
x/xinitrc.d/notebook.xinitrc
Normal file
3
x/xinitrc.d/notebook.xinitrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
xrandr --output eDP1 --primary
|
||||||
Reference in New Issue
Block a user