xinitrc, fish: respond to SYSTEM_PROFILE

This commit is contained in:
dogeystamp 2023-04-13 10:35:19 -04:00
parent 8fa79a5029
commit d7f13ff865
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
3 changed files with 19 additions and 5 deletions

View File

@ -17,17 +17,19 @@ set -gx MANPATH "$MANPATH:/home/dogeystamp/.cache/cppman/"
set fish_greeting ""
if status --is-interactive
source ~/.config/fish/functions/prompts.fish
source ~/.config/fish/functions/extra_prompt.fish
# Enable Vi bindings
fish_hybrid_key_bindings
source ~/.config/fish/functions/prompts.fish
set __fish_git_prompt_showdirtystate 1
set __fish_git_prompt_showupstream auto
set fish_color_param normal
set fish_color_cwd grey
rem.sh show
if test $SYSTEM_PROFILE = "DEFAULT"
source ~/.config/fish/functions/extra_prompt.fish
rem.sh show
end
end

View File

@ -1,4 +1,8 @@
function fish_right_prompt
if test $SYSTEM_PROFILE != "DEFAULT"
return
end
set -l usercolor (set_color $fish_color_cwd)
if command -sq cksum
# randomised color for user/hostname based on disco.fish

View File

@ -1,7 +1,15 @@
#!/bin/sh
mon-on
picom &
if [ $SYSTEM_PROFILE == "MINIMAL" ]; then
dwm
exit
fi
if [ $SYSTEM_PROFILE == "DEFAULT" ]; then
picom &
fi
xwallpaper --center .config/wall.png
# Host specific wallpapers
wallpaper