dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 916cd9a275e21cb553f11e57abc47eb0fe889e99
parent 0fc9e196aea9102804113e6fa95a6e84dc8d146c
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Tue, 14 Mar 2023 17:52:57 -0400

Update xenodm configuration

Diffstat:
Msetup.sh | 3++-
Mxenodm.Xresources | 61+++++++++++++++++++++++++++++++++++++++++++------------------
Mxenodm.Xsetup_0 | 27++++++++++++++++++++++++++-
3 files changed, 71 insertions(+), 20 deletions(-)

diff --git a/setup.sh b/setup.sh @@ -48,4 +48,5 @@ else echo "Done!" fi -echo "Don't forget to set up/run power-management utilities if on a laptop" +echo "Don't forget to enable obsdfreqd and apmd if on a laptop." +echo "Add 'pkill xmessage' to /etc/X11/xenodm/GiveConsole and tweak pixel offsets for current resolution." diff --git a/xenodm.Xresources b/xenodm.Xresources @@ -1,21 +1,46 @@ -xlogin.Login.echoPasswd: true -xlogin.Login.fail: ACCESS\040DENIED -xlogin.Login.greeting: -xlogin.Login.namePrompt: \040login:\040 -xlogin.Login.passwdPrompt: passwd:\040 +! Thanks to www.tumfatig.net for the inspiration +#define BLACK #111111 +#define WHITE #FCFCFC +#define RED #FF0000 -xlogin.Login.height: 300 -xlogin.Login.width: 800 -xlogin.Login.y: 200 -xlogin.Login.frameWidth: 0 -xlogin.Login.innerFramesWidth: 0 +xroot.background: WHITE -xlogin.Login.background: black -xlogin.Login.foreground: #eeeeee -xlogin.Login.failColor: red -xlogin.Login.inpColor: black -xlogin.Login.promptColor: #eeeeee +xlogin.Login.echoPasswd: true +xlogin.Login.allowRootLogin: false +xlogin.Login.greeting: Authenticate +xlogin.Login.namePrompt: +xlogin.Login.passwdPrompt: +xlogin.Login.fail: -- ACCESS DENIED -- + +xlogin.Login.width: 400 +xlogin.Login.height: 300 +xlogin.Login.x: 420 +xlogin.Login.y: 220 +xlogin*borderWidth: 0 +xlogin.Login.sepWidth: 0 +xlogin.Login.frameWidth: 10 +xlogin.Login.innerFramesWidth: 1 + +xlogin.Login.background: WHITE +xlogin.Login.foreground: BLACK +xlogin.Login.failColor: RED +xlogin.Login.greetColor: BLACK +xlogin.Login.inpColor: WHITE +xlogin.Login.promptColor: BLACK +xlogin.Login.hiColor: BLACK +xlogin.Login.shdColor: BLACK + +! Needs pkg_add spleen +xlogin.Login.face: spleen-14 +xlogin.Login.failFace: spleen-16 +xlogin.Login.greetFace: spleen-14 +xlogin.Login.promptFace: spleen-14 + +! XMessage +xmessage*background: WHITE +xmessage*foreground: BLACK +xmessage*borderWidth: 0 +xmessage*message.scrollHorizontal: Never +xmessage*message.scrollVertical: Never +xmessage*timeout: 0 -xlogin.Login.face: IBMPlexMono-14 -xlogin.Login.failFace: IBMPlexMono-14 -xlogin.Login.promptFace: IBMPlexMono-14 diff --git a/xenodm.Xsetup_0 b/xenodm.Xsetup_0 @@ -1,2 +1,27 @@ #!/bin/sh -xsetroot -solid black +# Thanks to www.tumfatig.net for the inspiration + +xsetroot -solid "#FCFCFC" + +# Sleep / Restart / Shutdown bar +( while true; do + xmessage -geometry +500-32 -buttons "[ Sleep ]":20,"[ Restart ]":21,"[ Shutdown ]":22 "" + ACTION=$? + echo "Xmessage said: $ACTION" + if [ $ACTION -eq 20 ]; then + /usr/sbin/zzz + elif [ $ACTION -eq 21 ]; then + xsetroot -cursor_name watch + /sbin/shutdown -r now + elif [ $ACTION -eq 22 ]; then + xsetroot -cursor_name watch + /sbin/shutdown -p now + else + echo "Xmessage error" + fi + # Stop looping if xmessage died (hopefully killed by GiveConsole) + if [ -z "$(pgrep -U root xclock)" ]; then break; fi +done) & + +# Message with OS and release number +xmessage -geometry +580-0 -buttons "" "($(uname -sr))" &