adding colour wrap to doas so i remember when i'm in admin mode
This commit is contained in:
parent
1120330411
commit
9b2faedb19
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
admin_bg="#2d161d"
|
||||
admin_fg="#e3ccd2"
|
||||
|
||||
user_bg="#232627"
|
||||
user_fg="#fcfcfc"
|
||||
|
||||
set_colours () {
|
||||
echo -en "\e]11;$admin_bg\e\\"
|
||||
echo -en "\e]10;$admin_fg\e\\"
|
||||
}
|
||||
|
||||
reset_colours () {
|
||||
echo -en "\e]11;$user_bg\e\\"
|
||||
echo -en "\e]10;$user_fg\e\\"
|
||||
}
|
||||
|
||||
# Reset colour if ^C
|
||||
trap "reset_colours" INT
|
||||
|
||||
set_colours
|
||||
/usr/bin/doas "$@"
|
||||
reset_colours
|
Loading…
Reference in New Issue