ํ๊ฒฝ ๋ณ์์ ๋ฐ๋ผ ์๋ฆผ ์์์ ์ค์ ํ๊ณ ์ถ์ต๋๋ค. ๋์ ์:
~/.config/dunst/dunstrc
:
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#222222"
foreground = "#888888"
timeout = 5
๋๋ ํ๊ณ ์ถ๋ค:
~/.config/dunst/dunstrc
:
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "${DUNST_NORMAL_BACKGROUND}"
foreground = "${DUNST_NORMAL_FOREGROUND}"
timeout = 5
~/.profile
๋๋ dunst์์ ์ ํํ ์ ์๋ ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํ๋ ์์ค ํ์ผ์ ์ด๋ฌํ ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํฉ๋๋ค.
~/.profile
:
DUNST_NORMAL_BACKGROUND="#888888"
DUNST_NORMAL_FOREGROUND="#FFFFFF"
๊ทธ๋์ `~/.config/i3/config๋ฅผ ํตํด Dunst๋ฅผ ๋ก๋ํ ๋
exec --no-startup-id dunst
๊ทธ๋ฐ ๋ค์ dunst๋ ~/.profile
์ค์ ๋ ๋ด์ฉ์ ๊ธฐ๋ฐ์ผ๋ก ์๋ฆผ ์์์ ์ค์ ํฉ๋๋ค.
๊ตฌ์ฑ ํ์ผ(i3, polybar, rofi, dunst, ํฐ๊ฐ๋ฏธ ๋ฑ)์ ์ฌ์ฉํ๋ ๋ชจ๋ ์์ฉ ํ๋ก๊ทธ๋จ์์ ํ
๋ง(์ฃผ๋ก ์์)๋ฅผ ์ค์ ์ง์คํํ๊ณ ์ถ์ต๋๋ค. ๋ด ๋ชฉํ๋ ๋จ์ผ ํ์ผ์ ์์ฑํ์ฌ ํ
๋ง๋ฅผ ๋ฐ๊ฟ ์ ์๋๋ก ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํ ๋จ์ผ ํ์ผ์ ๊ฐ๋ ๊ฒ์
๋๋ค.
์ด์ ์ ์ฌํ ํ
๋ง๋ฅผ ์ฌ์ฉํ์ฌ ์ฌ๋ฌ ์์ฉ ํ๋ก๊ทธ๋จ์ ํ
๋ง๋ฅผ ์ ์ฉํ๊ณ ์ถ์ต๋๋ค.
https://github.com/arcticicestudio/nord
์ง์ํ์ จ๊ฒ ์ง๋ง ํ์ฌ๋ก์๋ ๋ถ๊ฐ๋ฅํ๋ฉฐ ๊ตฌํ์ ๋ํด ํ์ ์ด ์์ง ์์ต๋๋ค.
๊ทธ๋ฌ๋ contrib ๋๋ ํ ๋ฆฌ๋ฅผ ์ดํด ๋ณด์
จ์ต๋๊น? Xresource ๊ฐ์์ dunstrc
๋ฅผ ์์ฑ ํ๋ ์คํฌ๋ฆฝํธ ๊ฐ ์์ต๋๋ค. ์ด๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ ์ ๋ณ์๋ฅผ ์ฌ์ฉํ๋๋ก ์กฐ์ ํ ์ ์์ต๋๋ค.
@tsipinakis ๋๋ ๊ทธ ์คํฌ๋ฆฝํธ๋ฅผ ์์ง ๋ชปํ์ต๋๋ค. ๋๋ ๊ทธ๊ฒ์ ์คํํ๊ณ ์๋ณธ ํ์ผ์ ๋ํด ์์ฑ๋ ํ์ผ์ ๊ต์ฒดํ๊ณ ๊ทธ๊ฒ์ ๋์์ด ๋๋ dunsts ์์์ ๋ณ๊ฒฝํ์ต๋๋ค. ๋น ๋ฅด๊ฒ ์ฝ์ ํ์ ๋ฎ์ด์ธ ์ค์ ์ ๊ฒฐ์ ํ ๋ Xresources์์ ์ฝ์ ๊ฒ์ผ๋ก ์์๋๋ ๊ฐ์ ์ดํดํ์ง ๋ชปํฉ๋๋ค. ์ดํด๊ฐ ๋ ๋๊น์ง ๊ณ์ ์ฝ๊ฒ ์ต๋๋ค.
Dunst๊ฐ ํ๊ฒฝ ๋ณ์๋ฅผ ์ง์ํ๊ฑฐ๋ ๊ตฌ์ฑ์ ๊ธฐ๋ณธ ๊ตฌ์ฑ์ผ๋ก ๊ฐ์ ธ์ค๊ธฐ๋ฅผ ๋ฐ๋๋๋ค. ๋๋ณธ์ ์ข์ ์๊ฐ์ด์ง๋ง ํ ๋ฒ ์๋ํด ๋ณด๊ฒ ์ต๋๋ค.
ํค๋ณด๋๋ก ๊ตฌ๋๋๋ ๋๊ตฌ๋ก ๊ตฌ์ฑ๋ ๋ฐ์คํฌํ ํ๊ฒฝ์ ๋ง๋ค๊ณ ๊ตฌ์ฑ ํ์ผ์ ์ฌ์ฉํ์ฌ ํ ์์น์์ ์ฝ๊ฒ ๊ตฌ์ฑํ ์ ์๋๋ก ํ๋ ค๊ณ ํฉ๋๋ค. ํ ๋ง ์ง์ ์ ํด๊ฒฐํด์ผ ํ ๋ชฉ๋ก์ ๋จ์ ์๋ ๋ช ๊ฐ์ง ๋ฌธ์ ์ค ํ๋์ ๋๋ค. ๊ด์ฌ์ด ์๋ค๋ฉด ์ฌ๊ธฐ ์์ ์์ค ์ฝ๋๋ฅผ ๋ณผ ์ ์์ต๋๋ค! :)
๊ธ์, ๊ฐ๋จํ ๋ณ์ ๋์ฒด์ ๊ฒฝ์ฐ ๋จ์ํ envsubst
๋ช
๋ น์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
envsubst < ~/.config/dunst/dunstrc.template > ~/.config/dunst/dunstrc
@bebehei ์์ฐ ๋๋ ๊ทธ๊ฒ์ด ์กด์ฌํ๋์ง ์ ํ ๋ชฐ๋์ต๋๋ค. ๊ทธ ๋๋ผ์ด! ๊ทธ ์ ์์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
๋ฐ๋ผ์ ํ์คํ ํด๊ฒฐ์ฑ
์ envsubst
์
๋๋ค. ๋ค๋ฅธ ๊ฐ์ #357์ ์ฐธ์กฐํ์ญ์์ค.
@bebehei ๊ต์ฅํด ! ๊ฐ์ฌ ํด์.
๋๋ ์ง๊ธ ์ด๊ฒ์ ์ฌ์ฉํ๊ณ ์๋ค:
#~/.xinitrc
#Use bash instead of sh so we can use bashisms
if [[ x"$BASH" != x"/bin/bash" ]]; then
exec /bin/bash "$HOME/.xinitrc"
fi
dunst -config <(envsubst < ~/.config/dunst/dunstrc) &
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๊ธ์, ๊ฐ๋จํ ๋ณ์ ๋์ฒด์ ๊ฒฝ์ฐ ๋จ์ํ
envsubst
๋ช ๋ น์ ์ฌ์ฉํ ์ ์์ต๋๋ค.