Added display sleep functionality

This commit is contained in:
David Thurstenson 2021-02-22 12:46:28 -06:00
parent 13d9fde9f5
commit a9103d8a20
2 changed files with 13 additions and 3 deletions

View File

@ -1,12 +1,12 @@
# Maintainer: David Thurstenson <thurstylark@gmail.com> # Maintainer: David Thurstenson <thurstylark@gmail.com>
pkgname=greetd-tlgreet pkgname=greetd-tlgreet
pkgver=0.4 pkgver=0.5
pkgrel=1 pkgrel=1
pkgdesc="Thurstylark's greetd + wlgreet setup" pkgdesc="Thurstylark's greetd + wlgreet setup"
arch=(any) arch=(any)
url="https://git.thurstylark.com/greetd-tlgreet.git/" url="https://git.thurstylark.com/greetd-tlgreet.git/"
license=('GPL') license=('GPL')
depends=(greetd greetd-wlgreet sway waybar) depends=(greetd greetd-wlgreet sway swayidle waybar)
optdepends=(tl-wallpaper archlinux-wallpaper) optdepends=(tl-wallpaper archlinux-wallpaper)
source=("greetd.toml" source=("greetd.toml"
"sway-wlgreet.conf" "sway-wlgreet.conf"
@ -15,7 +15,7 @@ source=("greetd.toml"
"waybar.css" "waybar.css"
"greetd.service.override.conf") "greetd.service.override.conf")
md5sums=('db675a996223c3f155885d7494b16282' md5sums=('db675a996223c3f155885d7494b16282'
'167d68617d8ef5da0013449e27a4a495' '9624125091be5093046b5a5e095befed'
'4c1b6e5dff4071bff81e935322743974' '4c1b6e5dff4071bff81e935322743974'
'bfdda1ad67829fd55d3612c857df18dc' 'bfdda1ad67829fd55d3612c857df18dc'
'0b3156d2868912d8b4141428b72b4bbe' '0b3156d2868912d8b4141428b72b4bbe'

View File

@ -17,6 +17,13 @@ set $fallback-color "#333333"
# Cursor hide delay (in ms) # Cursor hide delay (in ms)
set $cursor-delay "100" 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 # The input devices worth paying attention to
set $touchpad "2:7:SynPS/2_Synaptics_Touchpad" set $touchpad "2:7:SynPS/2_Synaptics_Touchpad"
set $trackpoint "2:10:TPPS/2_IBM_TrackPoint" set $trackpoint "2:10:TPPS/2_IBM_TrackPoint"
@ -50,6 +57,9 @@ input $trackpoint events disabled
# Hide cursor after delay # Hide cursor after delay
seat * hide_cursor $cursor-delay seat * hide_cursor $cursor-delay
# Display sleep setup
exec swayidle timeout $dispsleep-time $dispsleep resume $dispwake
# Start waybar # Start waybar
exec "waybar --config $waybar-config --style $waybar-css" exec "waybar --config $waybar-config --style $waybar-css"