diff options
Diffstat (limited to 'src/Sway.hs')
-rw-r--r-- | src/Sway.hs | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/src/Sway.hs b/src/Sway.hs index 2129e20..44be8b5 100644 --- a/src/Sway.hs +++ b/src/Sway.hs @@ -17,14 +17,22 @@ diskIOS p = DiskIO [("/", "<total>"), ("/home", "<total>")] (diskArgs p) 10 mpd a p i = MPDX [ "-W", "12", "-t", "<statei> <remaining>" , "--", "-p", p, "-P", "\xf144", "-Z",fni i, "-S", fni i] 20 a -mpdMon = mpd "mpd" "6600" "\xf001" -mopMon = mpd "mopidy" "6669" "\xf1bc" +mpdMon = mpd "mpd" "6600" "🎶" + +mprisx client width = + Mpris2 client ["-t" , " <title> " + , "-T", show width + , "-E", "…", "-M", "100", "-x", ""] 40 + config p = (baseConfig p) { position = TopSize C 100 (defaultHeight - 1) , textOutput = True - , textOutputFormat = Pango - , bgColor = "#efefef" + , textOutputFormat = Swaybar + , font = "Source Code Pro Medium 9" + , additionalFonts = [] + , bgColor = "#ffffffc0" + , fgColor = "#000000" , border = FullB , commands = [ Run (topProcL p) , Run (iconBatt p) @@ -45,26 +53,28 @@ config p = (baseConfig p) { , Run laTime , Run localTime , Run w -- LEGE, LEBL, KCV0 +-- , Run (mprisx "playerctld" 20) ] - , template = "|batt0| " + , template = "" -- " |mpris2| " + ++ " |batt0| " ++ dimi "\xf26c" ++ " |bright| " - ++ "<action=`toggle-app.sh nm-applet`>" + ++ "<action=`toggle-app.sh nm-applet --indicator`>" ++ " |wg-mullvad||tun0||wlp164s0wi|" ++ "</action>" ++ " |dynnetwork| " - ++ "<action=`toggle-app.sh pasystray`>" + ++ "<action=`toggle-app.sh pavucontrol`>" ++ " |default:Master| " ++ dimi "\xf130" ++ " |default:Capture|" ++ "</action> " ++ "|mpd|" ++ " |EGPH| " - ++ " {} <hspace=10/>" + ++ " {} <hspace=3/>" ++ "|multicpu| " ++ "|multicoretemp| " ++ " |top| " - ++ " " ++ fni "\xf0c9" ++ " |memory| " + ++ " " ++ "☸" ++ " |memory| " ++ " |diskio| |disku| " - ++ " |datetime| " - ++ "|laTime| " + ++ " |datetime| " + ++ " |laTime| " } where dimi = fc (pDim p) . fni w = weather' "<skyConditionS> <tempC>° <weather>" "EGPH" p |