From 6fe18a850534b05c231329eb7567bf312d138cc3 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 17 Sep 2023 12:09:00 +0200 Subject: fix non-working i3 startup scripts --- .config/i3/autostart##template | 9 +++++---- .profile | 9 ++++++--- .xprofile | 1 - 3 files changed, 11 insertions(+), 8 deletions(-) mode change 100644 => 100755 .config/i3/autostart##template diff --git a/.config/i3/autostart##template b/.config/i3/autostart##template old mode 100644 new mode 100755 index 23eb199..6618474 --- a/.config/i3/autostart##template +++ b/.config/i3/autostart##template @@ -1,5 +1,5 @@ #!/bin/sh -. ~/.profile +. "$HOME/.profile" /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & cat "$XDG_CONFIG_HOME/X11/$(cat "$XDG_DATA_HOME/mode/active")" | xrdb -merge & polybar & @@ -9,7 +9,7 @@ xbanish & dunst & autocutsel & fcitx5 -d -xbindkeys -f "~/.config/xbindkeys/main" +xbindkeys -f "$XDG_CONFIG_HOME/xbindkeys/main" {% if yadm.hostname == "thoncc" %} xdimmer -t 45 -p 3 & light-locker --no-late-locking & @@ -20,9 +20,10 @@ nicotine & flashfocus & # bw unlock --raw | keyctl padd user bw_session @u -sh ~/.config/i3/unlock_bitwarden & +# sh $HOME/.config/i3/unlock_bitwarden & +[ -f "$XDG_CONFIG_HOME/i3/unlock_bitwarden" ] && "$XDG_CONFIG_HOME/i3/unlock_bitwarden" & # auto start lazy script after everything else sleep 2 -[ -f "~/do.sh" ] && . "~/do.sh" +[ -f "$HOME/do.sh" ] && . "$HOME/do.sh" diff --git a/.profile b/.profile index fd2312c..93ec840 100644 --- a/.profile +++ b/.profile @@ -1,8 +1,11 @@ #!/bin/sh # -# this file should only contain posix-compliant shell customizations. -# shell-specific customizations should be done in the respective shell's -# profile or init file (e.g. .zshrc, .bash_profile, etc.) +# this file should only contain posix-compliant shell customizations and +# environment variables. shell-specific customizations should be done in the +# respective shell's profile or init file (e.g. .zshrc, .bash_profile, etc.) + +# AJATT (user account only because TTYs don't render non-ascii characters) +export LANG="ja_JP.UTF-8" # aliases alias cls="clear" diff --git a/.xprofile b/.xprofile index 04dc85c..525a48f 100755 --- a/.xprofile +++ b/.xprofile @@ -7,6 +7,5 @@ xrdb -merge "$XDG_CONFIG_HOME/X11/base" # https://github.com/swaywm/sway/wiki#gtk-applications-take-20-seconds-to-start dbus-update-activation-environment --systemd DISPLAY - i3 -- cgit v1.2.3