Added display sleep functionality
This commit is contained in:
parent
13d9fde9f5
commit
a9103d8a20
6
PKGBUILD
6
PKGBUILD
|
@ -1,12 +1,12 @@
|
|||
# Maintainer: David Thurstenson <thurstylark@gmail.com>
|
||||
pkgname=greetd-tlgreet
|
||||
pkgver=0.4
|
||||
pkgver=0.5
|
||||
pkgrel=1
|
||||
pkgdesc="Thurstylark's greetd + wlgreet setup"
|
||||
arch=(any)
|
||||
url="https://git.thurstylark.com/greetd-tlgreet.git/"
|
||||
license=('GPL')
|
||||
depends=(greetd greetd-wlgreet sway waybar)
|
||||
depends=(greetd greetd-wlgreet sway swayidle waybar)
|
||||
optdepends=(tl-wallpaper archlinux-wallpaper)
|
||||
source=("greetd.toml"
|
||||
"sway-wlgreet.conf"
|
||||
|
@ -15,7 +15,7 @@ source=("greetd.toml"
|
|||
"waybar.css"
|
||||
"greetd.service.override.conf")
|
||||
md5sums=('db675a996223c3f155885d7494b16282'
|
||||
'167d68617d8ef5da0013449e27a4a495'
|
||||
'9624125091be5093046b5a5e095befed'
|
||||
'4c1b6e5dff4071bff81e935322743974'
|
||||
'bfdda1ad67829fd55d3612c857df18dc'
|
||||
'0b3156d2868912d8b4141428b72b4bbe'
|
||||
|
|
|
@ -17,6 +17,13 @@ set $fallback-color "#333333"
|
|||
# Cursor hide delay (in ms)
|
||||
set $cursor-delay "100"
|
||||
|
||||
# Display sleep idle time
|
||||
set $dispsleep-time "10"
|
||||
|
||||
# Display sleep and wake commands
|
||||
set $dispsleep 'swaymsg "output * dpms off"'
|
||||
set $dispwake 'swaymsg "output * dpms on"'
|
||||
|
||||
# The input devices worth paying attention to
|
||||
set $touchpad "2:7:SynPS/2_Synaptics_Touchpad"
|
||||
set $trackpoint "2:10:TPPS/2_IBM_TrackPoint"
|
||||
|
@ -50,6 +57,9 @@ input $trackpoint events disabled
|
|||
# Hide cursor after delay
|
||||
seat * hide_cursor $cursor-delay
|
||||
|
||||
# Display sleep setup
|
||||
exec swayidle timeout $dispsleep-time $dispsleep resume $dispwake
|
||||
|
||||
# Start waybar
|
||||
exec "waybar --config $waybar-config --style $waybar-css"
|
||||
|
||||
|
|
Loading…
Reference in New Issue