add lightdm

This commit is contained in:
thomasabishop 2024-12-01 17:55:07 +00:00
parent d998d4e91d
commit 5ce34217ff
5 changed files with 120 additions and 5 deletions

View file

@ -1,9 +1,15 @@
include ./theme.conf include ./theme.conf
font_family PragmataPro Mono Liga # font_family PragmataPro Mono Liga
bold_font PragmataPro Mono Liga Bold # bold_font PragmataPro Mono Liga Bold
italic_font PragmataPro Mono Liga Italic # italic_font PragmataPro Mono Liga Italic
bold_italic_font PragmataPro Mono Liga Bold Italic # bold_italic_font PragmataPro Mono Liga Bold Italic
font_family JetBrainsMonoNL Nerd Font
bold_font auto
italic_font auto
bold_italic_font auto
# font_family Liberation Mono # font_family Liberation Mono
# bold_font Liberation Mono Bold # bold_font Liberation Mono Bold
@ -16,7 +22,7 @@ bold_italic_font PragmataPro Mono Liga Bold Italic
# bold_italic_font TerminusTTF-Bold-Italic # bold_italic_font TerminusTTF-Bold-Italic
font_size 12 font_size 10
clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask
window_padding_width 3 window_padding_width 3

7
lightdm/display_setup.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
if xrandr | grep "HDMI-1 connected"; then
xrandr --output HDMI-1 --primary --mode 3440x1440 --output eDP-1 --off
else
xrandr --output eDP-1 --primary --auto --output HDMI-1 --off
fi

View file

@ -0,0 +1,88 @@
# LightDM Mini Greeter Configuration
#
# To test your configuration out, run: lightdm --test-mode
[greeter]
# The user to login as.
user = thomas
# Whether to show the password input's label.
show-password-label = true
# The text of the password input's label.
password-label-text = Password:
# The text shown when an invalid password is entered. May be blank.
invalid-password-text = Invalid Password
# Show a blinking cursor in the password input.
show-input-cursor = true
# The text alignment for the password input. Possible values are:
# "left", "center", or "right"
password-alignment = right
# The number of characters that should fit into the password input.
# A value of -1 will use GTK's default width.
# Note: The entered width is a suggestion, GTK may render a narrower input.
password-input-width = -1
# Show the background image on all monitors or just the primary monitor.
show-image-on-all-monitors = false
[greeter-hotkeys]
# The modifier key used to trigger hotkeys. Possible values are:
# "alt", "control" or "meta"
# meta is also known as the "Windows"/"Super" key
mod-key = meta
# Power management shortcuts (single-key, case-sensitive)
shutdown-key = s
restart-key = r
hibernate-key = h
suspend-key = u
[greeter-theme]
# A color from X11's `rgb.txt` file, a quoted hex string(`"#rrggbb"`) or a
# RGB color(`rgb(r,g,b)`) are all acceptable formats.
# The font to use for all text
font = "Sans"
# The font size to use for all text
font-size = 1em
# The font weight to use for all text
font-weight = bold
# The font style to use for all text
font-style = normal
# The default text color
text-color = "#282828"
# The color of the error text
error-color = "#F8F8F0"
# An absolute path to an optional background image.
# The image will be displayed centered & unscaled.
# Note: The file should be somewhere that LightDM has permissions to read
# (e.g., /etc/lightdm/).
background-image = ""
# The screen's background color.
background-color = "#282828"
# The password window's background color
window-color = "#E78A4E"
# The color of the password window's border
border-color = "#E78A4E"
# The width of the password window's border.
# A trailing `px` is required.
border-width = 2px
# The pixels of empty space around the password input.
# Do not include a trailing `px`.
layout-space = 15
# The character used to mask your password. Possible values are:
# "-1", "0", or a single unicode character(including emojis)
# A value of -1 uses the default bullet & 0 displays no characters when you
# type your password.
password-character = -1
# The color of the text in the password input.
password-color = "#D4BE98"
# The background color of the password input.
password-background-color = "#282828"
# The color of the password input's border.
# Falls back to `border-color` if missing.
password-border-color = "#282828"
# The width of the password input's border.
# Falls back to `border-width` if missing.
password-border-width = 2px
# The border radius of the password input.
password-border-radius = 0

5
lightdm/lightdm.conf Normal file
View file

@ -0,0 +1,5 @@
[Seat:*]
greeter-session=lightdm-mini-greeter
user-session=xfce
session-wrapper=/etc/lightdm/Xsession
display-setup-script=/etc/lightdm/display_setup.sh

View file

@ -5,6 +5,7 @@ alias vim="nvim"
alias cat="bat" alias cat="bat"
alias grep="rg" alias grep="rg"
alias tw="timew" alias tw="timew"
alias zj="zellij"
alias z="cd /home/thomas/repos/eolas/zk" alias z="cd /home/thomas/repos/eolas/zk"
alias zn="/home/thomas/repos/eolas/scripts/new_zk_note.sh" alias zn="/home/thomas/repos/eolas/scripts/new_zk_note.sh"
alias dot="cd /home/thomas/dotfiles" alias dot="cd /home/thomas/dotfiles"
@ -44,3 +45,11 @@ export PATH="$HOME/.local/bin:$PATH"
# export OPENAI_API_KEY=${OPENAI_API_KEY} # export OPENAI_API_KEY=${OPENAI_API_KEY}
# #
if [ -e /home/thomas/.nix-profile/etc/profile.d/nix.sh ]; then . /home/thomas/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
## [Completion]
## Completion scripts setup. Remove the following line to uninstall
[[ -f /home/thomas/.config/.dart-cli-completion/zsh-config.zsh ]] && . /home/thomas/.config/.dart-cli-completion/zsh-config.zsh || true
## [/Completion]