-
Notifications
You must be signed in to change notification settings - Fork 0
/
shprofile
executable file
·47 lines (37 loc) · 1.03 KB
/
shprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# welcome to zuki's shprofile
### sources
# shell folder
shellfol="$HOME/.config/shell"
if [ -z "$nvimpath" ]
then
nvimpath="$(command -v nvim)"
fi
## source shalias for shell alias
. "$shellfol"/shalias
## source shex for shell exports to clean up this file
. "$shellfol"/shex
## source shell func
. "$shellfol"/shfunc
# check if gentoo and source the shellvars if so
. "$HOME/.config/gentoo_only/shell_vars"
# https://github.com/lemniskett/archbox.git
if ! [ "$shexloaded" = "true" ]
then
echo "failed to load .shex"
fi
#put some tips here
#up to 20% preformace echo 'always' | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
if [ -z "$WAYLAND_DISPLAY" ] && [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
#python ~/src/zukidisplay/zdm.py
#exec Hyprland
#hyprconf_make > /tmp/hyprland.conf
exec dbus-launch --exit-with-session Hyprland
else
if [ -z "$shprofileloaded" ]
then
echo "$(tput setaf 5)TRANS $(tput setaf 4)RIGHTS $(tput setaf 7)HELL YEAH!!"
#pfetch | lolcat
fastfetch -l small
fi
shprofileloaded=1
fi