From a05183f59a8b615eaaef9a2699748e5226e236ff Mon Sep 17 00:00:00 2001 From: Asocia Date: Tue, 13 Jul 2021 23:23:35 +0300 Subject: [PATCH] Use colors from .Xresources --- .config/i3/config | 6 +++++- .config/polybar/config | 33 ++++++++++++++++++++------------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 4ad0fa3..bca0c72 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -47,7 +47,11 @@ set $music ~/scripts/music/mpv-controller.sh # Turn borders off for_window [class="^.*"] border pixel 2 -client.focused #555555 #555555 #ffffff #2e9ef4 #CC0000 +set_from_resource $fg i3wm.color1 #f0f0f0 +set_from_resource $bg i3wm.color3 #ccaa00 +set_from_resource $grayish i3wm.color15 #555555 +# class border backgr. text indicator child_border +client.focused $grayish $grayish $fg $bg $bg # Change gap size gaps outer 0 diff --git a/.config/polybar/config b/.config/polybar/config index 624dc3d..36d54c8 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -18,13 +18,21 @@ ; ; 並 全 侀 冀 勇 勺 喝 啕 喙 嗢 塚 墳 奄 奔 婢 嬨 廒 廙 彩 徭 惘 慎 愈 憎 慠 懲 戴 揄 搜 摒 敖 晴 朗 望 杖 歹 殺 流 滛 滋 漢 瀞 煮 瞧 爵 犯 猪 瑱 甆 画 瘝 瘟 益 盛 直 睊 着 磌 窱 節 类 絛 練 缾 者 荒 華 蝹 襁 覆 視 調 諸 請 謁 諾 諭 謹 變 贈 輸 遲 醙 鉶 陼 難 靖 韛 響 頋 頻 鬒 龜 𢡊 𢡄 𣏕 㮝 䀘 䀹 𥉉 𥳐 𧻓 齃 龎 [colors] - background = #fa1e2137 - foreground = #e3eaf3 - primary = #02c084 - secondary = #65a2d9 - tertiary = #d07ef2 - fourth = #e5c246 - alert = #ed404c +; background = #fa1e2137 +; foreground = #e3eaf3 +; primary = #02c084 +; secondary = #65a2d9 +; tertiary = #d07ef2 +; fourth = #e5c246 +; alert = #ed404c + background = ${xrdb:color0:#222} + foreground = ${xrdb:color7:#e3eaf3} + alert = ${xrdb:color1:#222} + primary = ${xrdb:color2:#222} + secondary = ${xrdb:color3:#222} + tertiary = ${xrdb:color4:#222} + fourth = ${xrdb:color5:#222} + fifth = ${xrdb:color6:#222} [colors-andromeda] background = #282A3A @@ -182,7 +190,7 @@ format =