Initial commit, v0.1
This commit is contained in:
commit
b7264c7329
|
@ -0,0 +1,37 @@
|
|||
# Maintainer: David Thurstenson <thurstylark@gmail.com>
|
||||
pkgname=greetd-tlgreet
|
||||
pkgver=0.1
|
||||
pkgrel=1
|
||||
pkgdesc="Thurstylark's greetd + wlgreet setup"
|
||||
arch=(any)
|
||||
url="https://git.thurstylark.com/greetd-tlgreet.git/"
|
||||
license=('GPL')
|
||||
depends=(greetd greetd-wlgreet waybar)
|
||||
source=("greetd.toml"
|
||||
"sway-wlgreet.conf"
|
||||
"wlgreet.toml"
|
||||
"waybar.conf"
|
||||
"waybar.css"
|
||||
"greetd.service.override.conf")
|
||||
md5sums=('db675a996223c3f155885d7494b16282'
|
||||
'87e66a9cba5b7446784d3ae7872c9017'
|
||||
'4c1b6e5dff4071bff81e935322743974'
|
||||
'bfdda1ad67829fd55d3612c857df18dc'
|
||||
'0b3156d2868912d8b4141428b72b4bbe'
|
||||
'6ee23a02a919d6a28f36d3627f3c6960')
|
||||
|
||||
package() {
|
||||
install -Dm644 ${srcdir}/greetd.service.override.conf \
|
||||
${pkgdir}/etc/systemd/system/greetd.service.d/override.conf
|
||||
for i in \
|
||||
greetd.toml \
|
||||
sway-wlgreet.conf \
|
||||
wlgreet.toml \
|
||||
waybar.conf \
|
||||
waybar.css
|
||||
do
|
||||
install -Dm644 ${srcdir}/${i} ${pkgdir}/etc/greetd/tlgreet/${i}
|
||||
done
|
||||
|
||||
install -dm755 ${pkgdir}/etc/greetd/tlgreet/wallpapers/
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=greetd -c /etc/greetd/tlgreet/greetd.toml
|
|
@ -0,0 +1,6 @@
|
|||
[terminal]
|
||||
vt = 1
|
||||
|
||||
[default_session]
|
||||
command = "sway --config /etc/greetd/tlgreet/sway-wlgreet.conf"
|
||||
user = "greeter"
|
|
@ -0,0 +1,54 @@
|
|||
# Sway Config: Greeter
|
||||
#
|
||||
# Thurstylark
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# Settings
|
||||
#
|
||||
|
||||
# Wallpapers dir
|
||||
set $wallpapers-path /etc/greetd/tlgreet/wallpapers/
|
||||
|
||||
# Cursor hide delay (in ms)
|
||||
set $cursor-delay "100"
|
||||
|
||||
# The input devices worth paying attention to
|
||||
set $touchpad "2:7:SynPS/2_Synaptics_Touchpad"
|
||||
set $trackpoint "2:10:TPPS/2_IBM_TrackPoint"
|
||||
|
||||
# wlgreet config location
|
||||
set $wlgreet-config /etc/greetd/tlgreet/wlgreet.toml
|
||||
|
||||
# wlgreet command
|
||||
set $wlgreet-command sway
|
||||
|
||||
# waybar config location
|
||||
set $waybar-config /etc/greetd/tlgreet/waybar.conf
|
||||
set $waybar-css /etc/greetd/tlgreet/waybar.css
|
||||
|
||||
|
||||
#
|
||||
# Setup
|
||||
#
|
||||
|
||||
# Set the wallpaper to a random file in the wallpapers dir
|
||||
output * bg `find $wallpapers-path -type f | shuf -n 1` fill $fallback-color
|
||||
|
||||
# Touchpad options
|
||||
input $touchpad {
|
||||
pointer_accel 0.5
|
||||
}
|
||||
|
||||
# Disable Trackpoint
|
||||
input $trackpoint events disabled
|
||||
|
||||
# Hide cursor after delay
|
||||
seat * hide_cursor $cursor-delay
|
||||
|
||||
# Start waybar
|
||||
exec "waybar --config $waybar-config --style $waybar-css"
|
||||
|
||||
# The greeter itself
|
||||
exec "wlgreet --command $wlgreet-command --config $wlgreet-config; swaymsg exit"
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 30,
|
||||
"modules-left": [],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["network", "battery"],
|
||||
"clock": {
|
||||
"timezone": "America/Chicago",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0));
|
||||
color: #ffffff;
|
||||
}
|
||||
#clock,
|
||||
#battery,
|
||||
#network{
|
||||
padding: 0 10px;
|
||||
margin: 0 4px;
|
||||
color: #ffffff;
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
outputMode = "active"
|
||||
scale = 1
|
||||
|
||||
[background]
|
||||
red = 0
|
||||
green = 0
|
||||
blue = 0
|
||||
opacity = 0.7
|
Loading…
Reference in New Issue