summaryrefslogtreecommitdiffstats
path: root/.config/x11/xinitrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/x11/xinitrc')
-rw-r--r--.config/x11/xinitrc37
1 files changed, 8 insertions, 29 deletions
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
index 2b73786..5e0efb3 100644
--- a/.config/x11/xinitrc
+++ b/.config/x11/xinitrc
@@ -3,8 +3,6 @@
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"
host="mother"
@@ -12,8 +10,6 @@ case $(hostname -s) in
;;
po-rbo)
icon=" "
- mpd="mpd"
- xscr="xscreensaver"
sleep="sleep 0.1"
ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1"
host="po-rbo"
@@ -21,8 +17,6 @@ case $(hostname -s) in
;;
mars)
icon=" "
- mpd="musicpd"
- xscr="xscreensaver --no-splash"
sleep="gsleep 1"
ping="ping -c1 -t1 9.9.9.9 >/dev/null 2>&1"
host="mars"
@@ -35,41 +29,31 @@ esac
$ping && git --git-dir="$HOME"/docs/dotfiles-bsd --work-tree="$HOME" pull
startif() {
- pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 &
+ pidof "$(basename "$1")" >/dev/null || $@ >/dev/null 2>&1 &
}
dunst_shit() {
sleep 1
- [ $host = "po-rbo" ] && startif /home/r_bousset/.nix-profile/bin/dunst || startif dunst
+ startif dunst
sleep 2
- startif mpd-notification
startif lowbat
for pid in $(ps aux | grep local/bin/kb | awk '{print $2}'); do
kill -9 $pid
done
- [ $host = "mother" ] && "$HOME"/.local/bin/setwp "$HOME"/pics/wp.png || "$HOME"/.local/bin/setwp "$HOME"/pics/wp/129.jpg
+ [ $host = "mother" ] && "$HOME"/.local/bin/setwp "$HOME"/pics/wp.png || "$HOME"/.local/bin/setwp "$HOME"/pics/wp/desert
"$HOME"/.local/bin/kb &
}
start_apps() {
- [ $host = "po-rbo" ] && /home/r_bousset/.local/bin/pipe
CM_SELECTIONS=clipboard startif clipmenud
startif copyq
startif nextcloud
- QT_SCALE_FACTOR=1.35 startif rclone-browser
- startif nixGL teams-for-linux
- startif thunderbird
- startif firefox
+ startif ckb-next --background
+ # [ $host = "po-rbo" ] && QT_SCALE_FACTOR=1.35 startif rclone-browser
}
export LANG='en_US.UTF-8'
-[ $host = "mother" ] && xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1440x0 --rotate normal \
- --output DP-0 --mode 1680x1050 --pos 3360x0 --rotate normal \
- --output DP-1 --off \
- --output DP-2 --off \
- --output DP-3 --off \
- --output DP-4 --mode 1440x900 --pos 0x0 --rotate normal \
- --output DP-5 --off
+[ $host = "mother" ] && "$HOME"/.local/bin/scr2
[ $host = "po-rbo" ] && xrandr \
--output eDP-1 --mode 1920x1200 --pos 0x0 --rotate normal \
--output HDMI-1 --primary --mode 2560x1440 --pos 1920x0 --rotate normal \
@@ -78,14 +62,9 @@ export LANG='en_US.UTF-8'
--output VIRTUAL-1 --off
dunst_shit
-startif picom
-pgrep $mpd >/dev/null || $mpd >/dev/null 2>&1
+[ $host = "po-rbo" ] && startif picom
xset s off
xset -dpms
-startif $xscr
-# doas rc-service wireguard start &&
-# notify-send -u normal 'wireguard' 'WireGuard started'
-# $sleep
pkill wireplumber
pkill pipewire-pulse
pkill pipewire
@@ -103,4 +82,4 @@ xrdb "$HOME"/.config/x11/xresources
start_apps &
notify-send -u normal 'Welcome' "$icon Welcome back, partner!"
-[ $host = "po-rbo" ] && exec dwm
+[ $host = "po-rbo" ] && exec dbus-run-session dwm