Skip to content

Commit

Permalink
feat: introduce variable to purge cliphist on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland committed Oct 23, 2021
1 parent d9ab688 commit 588911b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions community/sway/etc/sway/modes/shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mode --pango_markup $mode_shutdown {
$bindsym l mode "default", exec $locking

# logout
$bindsym e exec loginctl terminate-user $USER&; rm -f $HOME/.cache/cliphist/db
$bindsym e exec [ $purge_cliphist == 'true' ] && rm -f $HOME/.cache/cliphist/db || exit 0; loginctl terminate-user $USER

# suspend
$bindsym u mode "default", exec systemctl suspend
Expand All @@ -23,10 +23,10 @@ mode --pango_markup $mode_shutdown {
$bindsym h mode "default", exec systemctl hibernate

# shutdown
$bindsym s exec systemctl poweroff&; rm -f $HOME/.cache/cliphist/db
$bindsym s exec [ $purge_cliphist == 'true' ] && rm -f $HOME/.cache/cliphist/db || exit 0; systemctl poweroff

# reboot
$bindsym r exec systemctl reboot&; rm -f $HOME/.cache/cliphist/db
$bindsym r exec [ $purge_cliphist == 'true' ] && rm -f $HOME/.cache/cliphist/db || exit 0; systemctl reboot

# Return to default mode.
$bindsym Escape mode "default"
Expand Down

0 comments on commit 588911b

Please sign in to comment.