disable qt csd, wait 30 minute before locking
This commit is contained in:
parent
435e18e449
commit
261c686d3d
|
@ -6,9 +6,9 @@ PartOf=graphical-session.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/swayidle -w \
|
ExecStart=/usr/bin/swayidle -w \
|
||||||
timeout 300 'lock' \
|
timeout 1800 'swaymsg "output * dpms off"' \
|
||||||
timeout 600 'swaymsg "output * dpms off"' \
|
|
||||||
resume 'swaymsg "output * dpms on"' \
|
resume 'swaymsg "output * dpms on"' \
|
||||||
|
timeout 1810 'lock' \
|
||||||
before-sleep 'lock'
|
before-sleep 'lock'
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -13,6 +13,10 @@ import-gsettings() {
|
||||||
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
|
||||||
|
# Qt
|
||||||
|
export QT_QPA_PLATFORM=wayland
|
||||||
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||||
|
|
||||||
# GTK
|
# GTK
|
||||||
export CLUTTER_BACKEND=wayland
|
export CLUTTER_BACKEND=wayland
|
||||||
export GTK_CSD=0
|
export GTK_CSD=0
|
||||||
|
|
Loading…
Reference in New Issue