Compare commits
No commits in common. "f7c45ac2ea31bd380124d6bdc8b9730ddd00b92d" and "1a4a0bbe18ec0af508435cdec5fe5ebfc57813fd" have entirely different histories.
f7c45ac2ea
...
1a4a0bbe18
3 changed files with 14 additions and 26 deletions
|
@ -6,7 +6,7 @@
|
|||
}
|
||||
{
|
||||
"label" : "logout",
|
||||
"action" : "~/.config/zsh/.zlogout",
|
||||
"action" : "hyprctl dispatch exit",
|
||||
"text" : "Logout",
|
||||
"keybind" : "e"
|
||||
}
|
||||
|
|
27
.config/zsh/.zlogout
Executable file → Normal file
27
.config/zsh/.zlogout
Executable file → Normal file
|
@ -1,21 +1,6 @@
|
|||
#!/bin/zsh
|
||||
|
||||
# Clear clipboard
|
||||
if [[ -n $WAYLAND_DISPLAY ]]; then
|
||||
wl-copy -c
|
||||
cliphist wipe
|
||||
fi
|
||||
|
||||
# Kill ssh-agent if it's the only opened session for this user
|
||||
if [[ $(who | grep "$USER" | wc -l) -le 1 ]]; then
|
||||
ssh-add -D
|
||||
pkill -u "$USER" -9 ssh-agent
|
||||
fi
|
||||
|
||||
if [[ -n $HYPRLAND_INSTANCE_SIGNATURE ]]; then
|
||||
HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')
|
||||
hyprctl -q --batch "$HYPRCMDS"
|
||||
hyprctl dispatch exit
|
||||
fi
|
||||
|
||||
loginctl terminate-session $XDG_SESSION_ID
|
||||
wl-copy -c
|
||||
cliphist wipe
|
||||
pkill -u "$USER" -9 ssh-agent
|
||||
pkill -u "$USER" -9 pipewire
|
||||
pkill -u "$USER" -9 dbus-daemon
|
||||
killall -u "$USER" -9 kill-wine-explorer.sh
|
||||
|
|
|
@ -53,10 +53,13 @@ autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
|||
zle -N up-line-or-beginning-search
|
||||
zle -N down-line-or-beginning-search
|
||||
|
||||
if [[ -z $SSH_TTY ]]; then
|
||||
(cat ~/.cache/wal/sequences &)
|
||||
# source ~/.cache/wal/colors-tty.sh
|
||||
fi
|
||||
# Import colorscheme from 'wal' asynchronously
|
||||
# & # Run the process in the background.
|
||||
# # ( ) # Hide shell job control messages.
|
||||
# # Not supported in the "fish" shell.
|
||||
(cat ~/.cache/wal/sequences &)
|
||||
# # To add support for TTYs this line can be optionally added.
|
||||
source ~/.cache/wal/colors-tty.sh
|
||||
|
||||
# create a zkbd compatible hash;
|
||||
# to add other keys to this hash, see: man 5 terminfo
|
||||
|
|
Loading…
Reference in a new issue