From 8604092e811e341854ff99850e732eea4b8a25c2 Mon Sep 17 00:00:00 2001 From: ziro Date: Tue, 3 Jan 2023 13:56:37 +0700 Subject: [PATCH] refactor: some experiment --- .config/xprofile | 18 +++++++++++------- .config/zsh/.zshenv | 3 +++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.config/xprofile b/.config/xprofile index 91ed4d0..448030e 100644 --- a/.config/xprofile +++ b/.config/xprofile @@ -12,13 +12,17 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then # Slow app startup fix (for flatpaks) dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY - # Universal Autostarts - # fcitx5 -d & - xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources & - unclutter & - dunst & - numlockx & - lxpolkit & + if [[ "1$(pidof dwm)" == "1" ]]; then + echo "" + else + # Autostarts for DWM + # fcitx5 -d & + xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources & + unclutter & + dunst & + numlockx & + lxpolkit & + fi # Custom Resolutions xrandr --newmode "768x432" 25.75 768 792 864 960 432 435 440 450 -hsync +vsync diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv index ca18525..a1647ad 100644 --- a/.config/zsh/.zshenv +++ b/.config/zsh/.zshenv @@ -32,6 +32,9 @@ export QT_IM_MODULE="ibus" export GLFW_IM_MODULE="ibus" export XMODIFIERS=@im="ibus" +# -- rootless docker +export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock + # -- DEFAULT export QT_QPA_PLATFORMTHEME="qt5ct" if [[ -n $SSH_CONNECTION ]]; then