Files
dotfile/script/init-sway
T
2024-09-21 16:29:21 +02:00

14 lines
298 B
Bash

#!/bin/sh
export XDG_CURRENT_DESKTOP=sway
# Start sway
dbus-run-session sway -Vd
# dbus-launch
#sway -Vd
#pour la veille
swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'