summaryrefslogtreecommitdiffstats
path: root/.config/x11/xinitrc
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-06-17 22:01:54 +0200
committerJoe <rbo@gmx.us>2024-06-17 22:01:54 +0200
commitc196c8321ac3328869fe7569cda943aeb6b39cd6 (patch)
treed13c6b5d1077ab9c12cf54d529c6f8100c263d59 /.config/x11/xinitrc
parentup (diff)
downloaddotfiles-bsd-c196c8321ac3328869fe7569cda943aeb6b39cd6.tar.gz
dotfiles-bsd-c196c8321ac3328869fe7569cda943aeb6b39cd6.tar.bz2
dotfiles-bsd-c196c8321ac3328869fe7569cda943aeb6b39cd6.tar.xz
dotfiles-bsd-c196c8321ac3328869fe7569cda943aeb6b39cd6.tar.zst
dotfiles-bsd-c196c8321ac3328869fe7569cda943aeb6b39cd6.zip
up
Diffstat (limited to '.config/x11/xinitrc')
-rw-r--r--.config/x11/xinitrc73
1 files changed, 73 insertions, 0 deletions
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
index ddfb330..82bbdd2 100644
--- a/.config/x11/xinitrc
+++ b/.config/x11/xinitrc
@@ -2,3 +2,76 @@
#cool-retro-term &
#exec dwm
+# vim: ft=sh
+#exec dbus-launch openbox-session
+case $(hostname -s) in
+ mother)
+ icon=" "
+ mpd="mpd"
+ xscr="xscreensaver --no-splash"
+ sleep="sleep 1"
+ ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1"
+ ;;
+ po-rbo)
+ icon=" "
+ mpd="mpd"
+ xscr="xscreensaver"
+ sleep="sleep 1"
+ ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1"
+ ;;
+ mars)
+ icon=" "
+ mpd="musicpd"
+ xscr="xscreensaver --no-splash"
+ sleep="gsleep 1"
+ ping="ping -c1 -t1 9.9.9.9 >/dev/null 2>&1"
+ ;;
+esac
+
+doas mkdir /var/run/jozan && doas chown -v jozan: /var/run/jozan
+
+$ping && git --git-dir="$HOME"/docs/dotfiles-bsd --work-tree="$HOME" pull
+
+startif() {
+ pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 &
+}
+
+export LANG='en_US.UTF-8'
+[ "$(hostname -s)" = "mother" ] && xrandr --output HDMI-0 --off \
+ --output DP-0 --mode 1440x900 --pos 0x0 --rotate normal \
+ --output DP-2 --mode 1440x900 --pos 3120x0 --rotate normal \
+ --output DP-4 --primary --mode 1680x1050 --pos 1440x0 --rotate normal \
+ --output DP-1 --off \
+ --output DP-3 --off \
+ --output DP-5 --off
+[ "$(hostname -s)" = "po-rbo" ] && xrandr \
+ --output eDP-1 --mode 1920x1200 --pos 5120x0 --rotate normal \
+ --output DP-1 --mode 2560x1440 --pos 0x0 --rotate normal \
+ --output HDMI-1 --primary --mode 2560x1440 --pos 2560x0 --rotate normal \
+ --output HDMI-2 --off \
+ --output VIRTUAL-1 --off
+
+startif dunst
+startif picom
+startif mpd-notification
+pgrep $mpd >/dev/null || $mpd >/dev/null 2>&1
+"$HOME"/.local/bin/setwp "$HOME"/pics/the_wall.png
+"$HOME"/.local/bin/kb
+xset s off
+xset -dpms
+startif $xscr
+# doas rc-service wireguard start &&
+# notify-send -u normal 'wireguard' 'WireGuard started'
+# $sleep
+startif pipewire
+$sleep
+startif pipewire-pulse
+$sleep
+startif wireplumber
+startif copyq
+startif nextcloud
+cd "$HOME"
+xrdb "$HOME"/.config/x11/xresources
+notify-send -u normal 'Welcome' "$icon Welcome back, partner!"
+
+# exec dbus-launch dwm