diff --git a/data/config b/data/config index 0802366..96ac81a 100644 --- a/data/config +++ b/data/config @@ -49,6 +49,27 @@ DiskPartition: / # The default symbol for the workspaces DefaultWorkspaceSymbol:  +# All of the icons that can be modified. +# Please note that some icons require a space ("\s") (e.g. default ShutdownIcon) +ShutdownIcon: \s +RebootIcon: 󰑐 +SleepIcon: 󰏤 +LockIcon:  +ExitIcon: 󰗼 +BTOffIcon: 󰂲 +BTOnIcon: 󰂯 +BTConnectedIcon: 󰂱 +DevKeyboardIcon: 󰌌\s +DevMouseIcon: 󰍽\s +DevHeadsetIcon: 󰋋\s +DevControllerIcon: 󰖺\s +DevUnknownIcon: \s +SpeakerMutedIcon: 󰝟 +SpeakerHighIcon: 󰕾 +MicMutedIcon: 󰍭 +MicHighIcon: 󰍬 +PackageOutOfDateIcon: 󰏔\s + # Scroll through the workspaces of the current monitor instead of all workspaces WorkspaceScrollOnMonitor: true diff --git a/src/AudioFlyin.cpp b/src/AudioFlyin.cpp index edaf14b..094acc9 100644 --- a/src/AudioFlyin.cpp +++ b/src/AudioFlyin.cpp @@ -47,11 +47,11 @@ namespace AudioFlyin muted = info.sinkMuted; if (info.sinkMuted) { - icon->SetText("󰝟"); + icon->SetText(Config::Get().speakerMutedIcon); } else { - icon->SetText("󰕾"); + icon->SetText(Config::Get().speakerHighIcon); } } } @@ -68,11 +68,11 @@ namespace AudioFlyin muted = info.sourceMuted; if (info.sourceMuted) { - icon->SetText("󰍭"); + icon->SetText(Config::Get().micMutedIcon); } else { - icon->SetText("󰍬"); + icon->SetText(Config::Get().micHighIcon); } } } @@ -116,12 +116,12 @@ namespace AudioFlyin if (DynCtx::type == Type::Speaker) { icon->SetClass("audio-icon"); - icon->SetText("󰕾 "); + icon->SetText(Config::Get().speakerHighIcon); } else if (DynCtx::type == Type::Microphone) { icon->SetClass("mic-icon"); - icon->SetText("󰍬"); + icon->SetText(Config::Get().speakerMutedIcon); } DynCtx::icon = icon.get(); diff --git a/src/Bar.cpp b/src/Bar.cpp index 718fece..f99289d 100644 --- a/src/Bar.cpp +++ b/src/Bar.cpp @@ -198,19 +198,19 @@ namespace Bar if (info.defaultController.empty()) { btIconText->SetClass("bt-label-off"); - btIconText->SetText("󰂲"); + btIconText->SetText(Config::Get().btOffIcon); btDevText->SetText(""); } else if (info.devices.empty()) { btIconText->SetClass("bt-label-on"); - btIconText->SetText("󰂯"); + btIconText->SetText(Config::Get().btOnIcon); btDevText->SetText(""); } else { btIconText->SetClass("bt-label-connected"); - btIconText->SetText("󰂱"); + btIconText->SetText(Config::Get().btConnectedIcon); std::string btDev; std::string tooltip; for (auto& dev : info.devices) @@ -253,7 +253,7 @@ namespace Bar packageTextLock.lock(); if (numOutdatedPackages) { - text.SetText("󰏔 "); + text.SetText(Config::Get().packageOutOfDateIcon); text.SetVisible(true); text.SetClass("package-outofdate"); text.SetTooltip("Updates available! (" + std::to_string(numOutdatedPackages) + " packages)"); @@ -315,11 +315,11 @@ namespace Bar } if (info.sinkMuted) { - audioIcon->SetText("󰝟"); + audioIcon->SetText(Config::Get().speakerMutedIcon); } else { - audioIcon->SetText("󰕾"); + audioIcon->SetText(Config::Get().speakerHighIcon); } if (Config::Get().audioInput) { @@ -334,11 +334,11 @@ namespace Bar } if (info.sourceMuted) { - micIcon->SetText("󰍭"); + micIcon->SetText(Config::Get().micMutedIcon); } else { - micIcon->SetText("󰍬"); + micIcon->SetText(Config::Get().micHighIcon); } } return TimerResult::Ok; @@ -571,12 +571,12 @@ namespace Bar { case AudioType::Input: icon->SetClass("mic-icon"); - icon->SetText("󰍬"); + icon->SetText(Config::Get().speakerHighIcon); DynCtx::micIcon = icon.get(); break; case AudioType::Output: icon->SetClass("audio-icon"); - icon->SetText("󰕾 "); + icon->SetText(Config::Get().micHighIcon); if (!RotatedIcons()) Utils::SetTransform(*icon, {-1, true, Alignment::Fill, 0, 6}); DynCtx::audioIcon = icon.get(); @@ -852,7 +852,7 @@ namespace Bar { auto exitButton = Widget::Create