From 0e675619a2672c6bf711c10ca729d5eca94f15e9 Mon Sep 17 00:00:00 2001 From: exu Date: Fri, 24 Nov 2023 17:04:03 +0100 Subject: [PATCH] Create exit script for sway --- .../{i3-scripts/i3exit.sh => sway-scripts/exit.sh} | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) rename arch-config/.config/sway/{i3-scripts/i3exit.sh => sway-scripts/exit.sh} (66%) diff --git a/arch-config/.config/sway/i3-scripts/i3exit.sh b/arch-config/.config/sway/sway-scripts/exit.sh similarity index 66% rename from arch-config/.config/sway/i3-scripts/i3exit.sh rename to arch-config/.config/sway/sway-scripts/exit.sh index ca1d1714..5d1b3b41 100755 --- a/arch-config/.config/sway/i3-scripts/i3exit.sh +++ b/arch-config/.config/sway/sway-scripts/exit.sh @@ -1,20 +1,17 @@ -#!/bin/sh - +#!/usr/bin/env sh case "$1" in lock) - #betterlockscreen -l; dunstctl set-paused true - betterlockscreen -l + swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen" ;; logout) - i3-msg exit + swaymsg exit ;; suspend) - #betterlockscreen -s systemctl suspend ;; hibernate) - systemctl hibernate + exit 1 ;; reboot) systemctl reboot