From c4411447bb2c79c8fb20553f4ee0d9f7f8acf999 Mon Sep 17 00:00:00 2001 From: FredzyW Date: Thu, 20 Jun 2024 21:57:44 +0200 Subject: [PATCH] fixed background in xinitrc --- .xinitrc | 2 +- .xinitrc.laptop | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 .xinitrc.laptop diff --git a/.xinitrc b/.xinitrc index 07d5d98..7ba1585 100755 --- a/.xinitrc +++ b/.xinitrc @@ -12,7 +12,7 @@ fi xrdb -merge ~/.Xresources setxkbmap -option caps:swapescape -feh --bg-center ~/nix/wallpapers/inverted.png +feh --bg-scale ~/nix/wallpapers/inverted.png dwmblocks & dunst & diff --git a/.xinitrc.laptop b/.xinitrc.laptop new file mode 100755 index 0000000..07d5d98 --- /dev/null +++ b/.xinitrc.laptop @@ -0,0 +1,21 @@ +#!/bin/sh +# +if test -z "$DBUS_SESSION_BUS_ADDRESS"; then + eval $(dbus-launch --exit-with-session --sh-syntax) +fi +systemctl --user import-environment DISPLAY XAUTHORITY + +if command -v dbus-update-activation-environment >/dev/null 2>&1; then + dbus-update-activation-environment DISPLAY XAUTHORITY +fi + +xrdb -merge ~/.Xresources +setxkbmap -option caps:swapescape + +feh --bg-center ~/nix/wallpapers/inverted.png + +dwmblocks & +dunst & +xbanish & + +exec dwm