sway, zsh: small fixes
This commit is contained in:
@@ -60,7 +60,7 @@ bindswitch --reload --locked lid:off output $laptop enable
|
|||||||
|
|
||||||
# Idle configuration
|
# Idle configuration
|
||||||
# set lock and save to script, so other programs can also use it
|
# set lock and save to script, so other programs can also use it
|
||||||
set $lock 'swaylock -f --image /tmp/lock.png --indicator-idle-visible -F'
|
set $lock 'loginctl lock-session && swaylock -f --image /tmp/lock.png --indicator-idle-visible -F'
|
||||||
exec_always echo $lock > ~/.local/bin/lock.sh
|
exec_always echo $lock > ~/.local/bin/lock.sh
|
||||||
exec_always chmod +x ~/.local/bin/lock.sh
|
exec_always chmod +x ~/.local/bin/lock.sh
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ DIR="%{$fg[blue]%}%~"
|
|||||||
GIT="%{$fg[red]%}\$vcs_info_msg_0_"
|
GIT="%{$fg[red]%}\$vcs_info_msg_0_"
|
||||||
HOSTN="%{$fg[yellow]%}%m "
|
HOSTN="%{$fg[yellow]%}%m "
|
||||||
|
|
||||||
export PROMPT="${HOSTN}${DIR}${GIT} ${ICON}%{$reset_color%} "
|
BREAK=''
|
||||||
|
[ $(tput cols) -lt 150 ] && BREAK=$'\n'
|
||||||
|
|
||||||
|
export PROMPT="${HOSTN}${DIR}${GIT} ${BREAK}${ICON}%{$reset_color%} "
|
||||||
zstyle ':vcs_info:git:*' formats ' (%b )'
|
zstyle ':vcs_info:git:*' formats ' (%b )'
|
||||||
|
|
||||||
# show info in bar
|
# show info in bar
|
||||||
|
|||||||
Reference in New Issue
Block a user