From fe8e9af8107e680e9f339b459bd3937c87d85ce1 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 13 Jun 2023 13:21:57 -0400 Subject: [PATCH] xinitrc: moved to .config --- src/.config/xinitrc | 1 + src/.profile | 2 ++ src/.xinitrc | 55 --------------------------------------------- 3 files changed, 3 insertions(+), 55 deletions(-) create mode 120000 src/.config/xinitrc delete mode 100755 src/.xinitrc diff --git a/src/.config/xinitrc b/src/.config/xinitrc new file mode 120000 index 0000000..7f7d16f --- /dev/null +++ b/src/.config/xinitrc @@ -0,0 +1 @@ +/home/dogeystamp/dox/proj/dots/src/.xinitrc \ No newline at end of file diff --git a/src/.profile b/src/.profile index 6f8ecf2..205e955 100644 --- a/src/.profile +++ b/src/.profile @@ -8,6 +8,8 @@ export XDG_DOWNLOAD_DIR="$HOME"/quar/ # Clean up home directory dotfiles +# xinit +export XINITRC="$XDG_CONFIG_HOME"/xinitrc # XAuthority export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority # GTK2 diff --git a/src/.xinitrc b/src/.xinitrc deleted file mode 100755 index 530925d..0000000 --- a/src/.xinitrc +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh - -mon-on - -if [ $SYSTEM_PROFILE = "MINIMAL" ]; then - dwm - exit -fi - -if [ $SYSTEM_PROFILE = "DEFAULT" ]; then - picom & -fi -battwatch.sh & -xwallpaper --center .config/wall.png -# Host specific wallpapers -wallpaper -xss-lock -- slock & -dunst & -xrdb .Xresources -if ! pgrep pipewire; then - gentoo-pipewire-launcher & -fi - -# DBus -export NO_AT_BRIDGE=1 -eval $(dbus-launch --sh-syntax) -export DBUS_SESSION_BUS_ADDRESS -export DBUS_SESSION_BUS_PID -export DBUS_SESSION_BUS_WINDOWID - -# IME -export GTK_IM_MODULE=fcitx -export QT_IM_MODULE=fcitx -# for some reason this breaks deadkeys -#export XMODIFIERS=@im=fcitx - -# set up keyboard -keyboard.sh -export XCOMPOSEFILE="$XDG_CONFIG_HOME"/xcompose/main - -while true; do - DATE=$(date +'%H:%M:%S %a %b %d') - #TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))C" - BAT="$(acpi -b | head -n 1 | awk -F'[,:]' '{print $3}' | tr -d '[:space:]')" - if command -v xkblayout-state print &> /dev/null; then - KEY="$(xkblayout-state print '%s')" - else - KEY="??" - fi - - xsetroot -name " $DATE // $BAT // $KEY" - sleep 1 -done & - -dwm