aboutsummaryrefslogtreecommitdiff
path: root/openbsd/xenodm
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-03 00:37:03 +0200
committerMateja <mail@matejamaric.com>2021-04-03 00:37:03 +0200
commita945feb02f6d64df2219ea1044251a7fe2ea98fc (patch)
treefe0242495eb35317fd5358e403a047657dfa04b5 /openbsd/xenodm
downloadmisc-a945feb02f6d64df2219ea1044251a7fe2ea98fc.tar.gz
misc-a945feb02f6d64df2219ea1044251a7fe2ea98fc.zip
Initial commit.
Diffstat (limited to 'openbsd/xenodm')
-rw-r--r--openbsd/xenodm/GiveConsole18
-rw-r--r--openbsd/xenodm/Xresources174
-rw-r--r--openbsd/xenodm/Xsetup_018
3 files changed, 210 insertions, 0 deletions
diff --git a/openbsd/xenodm/GiveConsole b/openbsd/xenodm/GiveConsole
new file mode 100644
index 0000000..079392f
--- /dev/null
+++ b/openbsd/xenodm/GiveConsole
@@ -0,0 +1,18 @@
+#!/bin/sh
+# Assign ownership of the console to the invoking user
+# $OpenBSD: GiveConsole,v 1.3 2019/05/12 11:53:06 jsg Exp $
+#
+# By convention, both xconsole and xterm -C check that the
+# console is owned by the invoking user and is readable before attaching
+# the console output. This way a random user can invoke xterm -C without
+# causing serious grief.
+#
+pkill xclock
+chown $USER /dev/console
+if [ -c /dev/drm0 ]; then
+ chown $USER /dev/drm0
+fi
+if [ -c /dev/drmR128 ]; then
+ chown $USER /dev/drmR128
+fi
+/usr/X11R6/bin/sessreg -a -l $DISPLAY -u none $USER
diff --git a/openbsd/xenodm/Xresources b/openbsd/xenodm/Xresources
new file mode 100644
index 0000000..17d8e41
--- /dev/null
+++ b/openbsd/xenodm/Xresources
@@ -0,0 +1,174 @@
+#define WHITE #EDF6E6
+#define BLACK #252123
+#define RED #DA9B9A
+#define BLUE #7AADD9
+#define DKBLUE #6187AD
+#define GRAY #54697F
+#define DKGRAY #4A566B
+
+xroot.background: BLACK
+
+xclock*background: BLACK
+xclock*foreground: WHITE
+xclock*borderWidth: 0
+xclock*geometry: -0+0
+xclock.Clock.analog: false
+xclock.Clock.chime: false
+xclock.Clock.render: true
+xclock.Clock.twentyfour:true
+xclock.Clock.update: 10
+
+
+xlogin*login.translations: #override \
+ <Key>F1: set-session-argument(failsafe) finish-field()\n\
+ <Key>Left: move-backward-character()\n\
+ <Key>Right: move-forward-character()\n\
+ <Key>Home: move-to-begining()\n\
+ <Key>End: move-to-end()\n\
+ Ctrl<Key>KP_Enter: set-session-argument(failsafe) finish-field()\n\
+ <Key>KP_Enter: set-session-argument() finish-field()\n\
+ Ctrl<Key>Return: set-session-argument(failsafe) finish-field()\n\
+ <Key>Return: set-session-argument() finish-field()
+
+#xlogin*greeting: CLIENTHOST
+#xlogin*greeting: Please, enter your login credentials.
+#greeting text
+xlogin*greeting:
+xlogin*namePrompt: \040\040\040\040\040\040\040Login:\040
+xlogin*passwdPrompt: Password:\040
+#fail text
+xlogin*fail: Login incorrect or forbidden
+#background color (not prompt)
+xlogin*background: BLACK
+#prompt text color
+xlogin*foreground: WHITE
+#boreder around
+xlogin*borderWidth: 0
+#what?
+xlogin*frameWidth: 0
+#what?
+xlogin*innerFramesWidth: 0
+xlogin.Login.innerFramesWidth: 0
+#line below greeting
+xlogin*sepWidth: 0
+#inside prompt color
+xlogin*inpColor: BLACK
+#prompt text color
+xlogin*promptColor: WHITE
+#fail text color
+xlogin*failColor: WHITE
+#fonts passwd and prompt-text
+xlogin*face: DejaVu Sans-18
+xlogin*promptFace: DejaVu Sans-18
+
+##if WIDTH > 800
+#xlogin*greetFont: -adobe-helvetica-bold-o-normal--24-240-75-75-p-138-iso8859-1
+#xlogin*font: -adobe-helvetica-medium-r-normal--18-180-75-75-p-98-iso8859-1
+#xlogin*promptFont: -adobe-helvetica-bold-r-normal--18-180-75-75-p-103-iso8859-1
+#xlogin*failFont: -adobe-helvetica-bold-r-normal--18-180-75-75-p-103-iso8859-1
+#xlogin*greetFace: DejaVu Sans Condensed-22:bold:italic:dpi=75
+#xlogin*face: DejaVu Sans Condensed-16:dpi=75
+#xlogin*promptFace: DejaVu Sans Condensed-16:bold:dpi=75
+#xlogin*failFace: DejaVu Sans Condensed-16:bold:dpi=75
+##else
+#xlogin*greetFont: -adobe-helvetica-bold-o-normal--17-120-100-100-p-92-iso8859-1
+#xlogin*font: -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
+#xlogin*promptFont: -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
+#xlogin*failFont: -adobe-helvetica-bold-o-normal--14-140-75-75-p-82-iso8859-1
+#xlogin*greetFace: DejaVu Sans Condensed-18:bold:italic:dpi=75
+#xlogin*face: DejaVu Sans Condensed-12:dpi=75
+#xlogin*promptFace: DejaVu Sans Condensed-12:bold:dpi=75
+#xlogin*failFace: DejaVu Sans Condensed-12:bold:dpi=75
+##endif
+#
+##if !(defined(bpp1) || defined(bpp4) || defined(bpp8) || defined(bpp15))
+## if PLANES < 4
+## ifndef bpp1
+## define bpp1
+## endif
+## else
+## if PLANES > 4
+## if PLANES > 8
+## ifndef bpp15
+## define bpp15
+## endif
+## else
+## ifndef bpp8
+## define bpp8
+## endif bpp8
+## endif
+## else
+## ifndef bpp4
+## define bpp4
+## endif
+## endif
+## endif
+##endif /* If manual override */
+#
+##ifndef bpp1
+#xlogin*borderWidth: 1
+#xlogin*frameWidth: 2
+#xlogin*innerFramesWidth: 0
+#
+#xlogin.Login.sepWidth: 0
+#
+#! top/left border
+# xlogin*hiColor: #667788
+#
+#! bottom/right border
+#xlogin*shdColor: #667788
+#
+#! 'Welcome to..' text color
+#xlogin*greetColor: #fef886
+##if defined(bpp4) || defined(bpp8) || defined(bpp15)
+#! flood fill
+#xlogin*background: #798a99
+#xlogin*inpColor: #99aab9
+##endif
+#xlogin*failColor: #aa0000
+#
+#! 'Login:' and 'Password:'
+#*Foreground: #eeeeff
+#
+#! border/shadow
+#*Background: #000000
+##else
+#xlogin*borderWidth: 3
+#xlogin*frameWidth: 5
+#xlogin*innerFramesWidth: 1
+#xlogin*shdColor: white
+#xlogin*hiColor: white
+#xlogin*greetColor: white
+#xlogin*background: black
+#xlogin*failColor: white
+#xlogin*promptColor: white
+#*Foreground: white
+#*Background: black
+##endif
+##ifdef bpp1
+#xlogin*logoFileName: /etc/X11/xenodm/pixmaps/OpenBSD_1bpp.xpm
+##endif
+##ifdef bpp4
+#xlogin*logoFileName: /etc/X11/xenodm/pixmaps/OpenBSD_4bpp.xpm
+##endif
+##ifdef bpp8
+#xlogin*logoFileName: /etc/X11/xenodm/pixmaps/OpenBSD_8bpp.xpm
+##endif
+##ifdef bpp15
+#xlogin*logoFileName: /etc/X11/xenodm/pixmaps/OpenBSD_15bpp.xpm
+##endif
+#
+#xlogin*useShape: true
+#xlogin*logoPadding: 10
+#
+#! uncomment to disable logins
+#! xlogin.Login.allowRootLogin: false
+#
+#XConsole*background: black
+#XConsole*foreground: white
+#XConsole*borderWidth: 2
+#XConsole*borderColor: grey
+#XConsole.text.geometry: 480x130
+#XConsole.verbose: true
+#XConsole*iconic: true
+#XConsole*font: fixed
diff --git a/openbsd/xenodm/Xsetup_0 b/openbsd/xenodm/Xsetup_0
new file mode 100644
index 0000000..a9c7c16
--- /dev/null
+++ b/openbsd/xenodm/Xsetup_0
@@ -0,0 +1,18 @@
+#!/bin/sh
+# $OpenBSD: Xsetup_0,v 1.6 2019/06/29 13:33:06 espie Exp $
+
+#xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
+
+# install package openbsd-backgrounds
+# then uncomment:
+#
+# if test -x /usr/local/bin/openbsd-wallpaper
+# then
+# /usr/local/bin/openbsd-wallpaper
+# fi
+
+# sxpm OpenBSD.xpm &
+
+xrandr --output default --dpi 96
+xsetroot -solid $(xrdb -query | awk '/xroot.background/ { print $2 }')
+xclock -strftime "%A %d %b %Y %H:%M" &