Commit 7f716dbb authored by Guilherme Semente's avatar Guilherme Semente 🌱

Small improvements

parent f2280501
......@@ -24,8 +24,8 @@ fi
# auto lock screen after TIME minutes of inactivity
# suspend-then-hibernate after KILLTIME minutes
xautolock -detectsleep \
-time "$X_LOCKTIME" -locker "xlock" \
-killtime "$X_KILLTIME" -killer "systemctl suspend-then-hibernate" &
-time "${X_LOCKTIME:-5}" -locker "xlock" \
-killtime "${X_KILLTIME:-30}" -killer "${X_KILLTIME_COMMAND:-systemctl suspend-then-hibernate}" &
# start notification server
/usr/lib/notification-daemon/notification-daemon &
......
......@@ -15,6 +15,7 @@
# set wallpaper to filename or solid color
export X_WALLPAPER="${X_WALLPAPER:-#222222}"
export X_MONOCLE_WALLPAPER="${X_MONOCLE_WALLPAPER:-$X_WALLPAPER}"
# bspwm
export BSPWM_BORDER_COLOR="${BSPWM_BORDER_COLOR:-#888888}"
......@@ -23,8 +24,9 @@ export BSPWM_PRESEL_COLOR="${BSPWM_PRESEL_COLOR:-$BSPWM_FOCUSED_COLOR}"
export BSPWM_SCRATCH_TERM_COMMAND
# xautolock
export X_LOCKTIME="${X_LOCKTIME:-8}"
export X_KILLTIME="${X_KILLTIME:-24}"
export X_LOCKTIME
export X_KILLTIME
export X_KILLTIME_COMMAND
# power management
export X_DPMS="${X_DPMS:-yes}"
......
......@@ -78,6 +78,8 @@ if [ -n "$ZSH_VERSION" ]; then
_set_gpg_tty
_set_ssh_agent
test -e /etc/zsh_command_not_found && . /etc/zsh_command_not_found
# Zsh reads ~/.zshrc in all interactive shells, whether they
# are login shells or not, we don't need load ~/.zshrc here
:
......
......@@ -110,7 +110,7 @@ else
setopt PROMPT_SUBST
PROMPT="
%B%{$fg[magenta]%} » \${?##0} %{$reset_color%}%B%{$fg[green]%}%{$reset_color%}"
%B%{$fg[magenta]%} » %{$reset_color%}%{$fg[magenta]%}\${?##0} %{$reset_color%}%B%{$fg[green]%}%{$reset_color%}"
RPROMPT="%B%{$fg[white]%}\${vcs_info_msg_0_}%B%{$fg[blue]%}%~%{$reset_color%}%B%{$reset_color%}"
# more extensive tab completion
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment