xinitrc, fish: respond to SYSTEM_PROFILE
This commit is contained in:
parent
8fa79a5029
commit
d7f13ff865
@ -17,17 +17,19 @@ set -gx MANPATH "$MANPATH:/home/dogeystamp/.cache/cppman/"
|
|||||||
set fish_greeting ""
|
set fish_greeting ""
|
||||||
|
|
||||||
if status --is-interactive
|
if status --is-interactive
|
||||||
source ~/.config/fish/functions/prompts.fish
|
|
||||||
source ~/.config/fish/functions/extra_prompt.fish
|
|
||||||
|
|
||||||
# Enable Vi bindings
|
# Enable Vi bindings
|
||||||
fish_hybrid_key_bindings
|
fish_hybrid_key_bindings
|
||||||
|
|
||||||
|
source ~/.config/fish/functions/prompts.fish
|
||||||
|
|
||||||
set __fish_git_prompt_showdirtystate 1
|
set __fish_git_prompt_showdirtystate 1
|
||||||
set __fish_git_prompt_showupstream auto
|
set __fish_git_prompt_showupstream auto
|
||||||
|
|
||||||
set fish_color_param normal
|
set fish_color_param normal
|
||||||
set fish_color_cwd grey
|
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
|
end
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
function fish_right_prompt
|
function fish_right_prompt
|
||||||
|
if test $SYSTEM_PROFILE != "DEFAULT"
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
set -l usercolor (set_color $fish_color_cwd)
|
set -l usercolor (set_color $fish_color_cwd)
|
||||||
if command -sq cksum
|
if command -sq cksum
|
||||||
# randomised color for user/hostname based on disco.fish
|
# randomised color for user/hostname based on disco.fish
|
||||||
|
10
src/.xinitrc
10
src/.xinitrc
@ -1,7 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
mon-on
|
mon-on
|
||||||
picom &
|
|
||||||
|
if [ $SYSTEM_PROFILE == "MINIMAL" ]; then
|
||||||
|
dwm
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $SYSTEM_PROFILE == "DEFAULT" ]; then
|
||||||
|
picom &
|
||||||
|
fi
|
||||||
xwallpaper --center .config/wall.png
|
xwallpaper --center .config/wall.png
|
||||||
# Host specific wallpapers
|
# Host specific wallpapers
|
||||||
wallpaper
|
wallpaper
|
||||||
|
Loading…
Reference in New Issue
Block a user