fix: better swaybar transparency, keep quotes with cliphist, force apps to specific workspace
This commit is contained in:
parent
22cf0396f3
commit
8d74fe2976
2 changed files with 28 additions and 14 deletions
|
|
@ -11,6 +11,7 @@ homeassistant_url="http://10.7.1.11:8123/api/states"
|
|||
|
||||
common() {
|
||||
bg_ok="#66ac9f"
|
||||
# bg_ok_trans="#00000033"
|
||||
bg_ok_trans="#00000000"
|
||||
text_dark="#36454f"
|
||||
text_light="#c0c8c6"
|
||||
|
|
@ -19,7 +20,7 @@ common() {
|
|||
crit="#710f3d"
|
||||
. ~/.config/sway/.env.homeassistant
|
||||
echo -n "{"
|
||||
echo -n "\"separator_block_width\":10,"
|
||||
echo -n "\"separator_block_width\":0,"
|
||||
echo -n "\"separator\":false,"
|
||||
echo -n "\"color\":\"$fg\","
|
||||
echo -n "\"background\":\"$bg\","
|
||||
|
|
@ -95,11 +96,13 @@ wifi() {
|
|||
}
|
||||
|
||||
mydate() {
|
||||
local bg=$bg_ok_trans
|
||||
local fg=$bg_ok
|
||||
# local bg=$bg_ok_trans
|
||||
local bg=#404040b3
|
||||
# local fg=$bg_ok
|
||||
local fg=$warn1
|
||||
local name="id_time"
|
||||
local icon=""
|
||||
local stat=$icon\ $(date +'%A, %d %B %R %Z')
|
||||
local stat=\ $icon\ $(date +'%A, %d %B %R %Z')\
|
||||
common
|
||||
}
|
||||
|
||||
|
|
@ -145,7 +148,10 @@ powerdraw() {
|
|||
audio_volume() {
|
||||
local name="audio"
|
||||
local volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk {'print $NF*100'})
|
||||
if [[ $(echo "$volume >= 50" | bc -l ) == "1" ]] && [[ $(echo "$volume < 60" | bc -l ) == "1" ]]; then
|
||||
if [[ $(echo "$volume == 0" | bc -l ) == "1" ]] ; then
|
||||
local bg=$text_light
|
||||
local fg=$bg_ok_trans
|
||||
elif [[ $(echo "$volume >= 50" | bc -l ) == "1" ]] && [[ $(echo "$volume < 60" | bc -l ) == "1" ]]; then
|
||||
local bg=$warn1
|
||||
local fg=$text_dark
|
||||
elif [[ $(echo "$volume >= 60" | bc -l ) == "1" ]] && [[ $(echo "$volume < 70" | bc -l ) == "1" ]]; then
|
||||
|
|
@ -164,7 +170,7 @@ audio_volume() {
|
|||
}
|
||||
|
||||
# header
|
||||
echo '{ "version": 1 , "click_events":false}'
|
||||
echo '{ "version": 1, "click_events":false}'
|
||||
echo '[[],'
|
||||
|
||||
while :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue