[taffybar] More support
This commit is contained in:
parent
df15dacf8e
commit
9b0fc9d630
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=ScreenCloud
|
|
||||||
Wants=taffybar.service
|
|
||||||
After=taffybar.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/usr/bin/screencloud
|
|
||||||
ExecStop=/usr/bin/pkill screencloud
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=wm.target
|
|
@ -65,6 +65,10 @@ main = do
|
|||||||
case monEither of
|
case monEither of
|
||||||
Left _ -> 0
|
Left _ -> 0
|
||||||
Right monString -> fromMaybe 0 $ readMaybe monString
|
Right monString -> fromMaybe 0 $ readMaybe monString
|
||||||
|
let monFilter =
|
||||||
|
case monEither of
|
||||||
|
Left _ -> allMonitors
|
||||||
|
Right monString -> Nothing
|
||||||
let memCfg =
|
let memCfg =
|
||||||
defaultGraphConfig
|
defaultGraphConfig
|
||||||
{graphDataColors = [(1, 0, 0, 1)], graphLabel = Just "mem"}
|
{graphDataColors = [(1, 0, 0, 1)], graphLabel = Just "mem"}
|
||||||
@ -74,7 +78,9 @@ main = do
|
|||||||
, graphLabel = Just "cpu"
|
, graphLabel = Just "cpu"
|
||||||
}
|
}
|
||||||
let clock = textClockNew Nothing "%a %b %_d %r" 1
|
let clock = textClockNew Nothing "%a %b %_d %r" 1
|
||||||
pagerConfig = defaultPagerConfig {useImages = True}
|
pagerConfig = defaultPagerConfig {
|
||||||
|
useImages = True
|
||||||
|
}
|
||||||
mpris = mpris2New
|
mpris = mpris2New
|
||||||
mem = pollingGraphNew memCfg 1 memCallback
|
mem = pollingGraphNew memCfg 1 memCallback
|
||||||
cpu = pollingGraphNew cpuCfg 0.5 cpuCallback
|
cpu = pollingGraphNew cpuCfg 0.5 cpuCallback
|
||||||
@ -82,7 +88,7 @@ main = do
|
|||||||
hudConfig =
|
hudConfig =
|
||||||
defaultWorkspaceHUDConfig
|
defaultWorkspaceHUDConfig
|
||||||
{ underlineHeight = 3
|
{ underlineHeight = 3
|
||||||
, underlinePadding = 0
|
, underlinePadding = 1
|
||||||
, minWSWidgetSize = Nothing
|
, minWSWidgetSize = Nothing
|
||||||
, minIcons = 3
|
, minIcons = 3
|
||||||
, getIconInfo = myGetIconInfo
|
, getIconInfo = myGetIconInfo
|
||||||
@ -93,7 +99,7 @@ main = do
|
|||||||
, updateRateLimitMicroseconds = 100000
|
, updateRateLimitMicroseconds = 100000
|
||||||
, updateIconsOnTitleChange = True
|
, updateIconsOnTitleChange = True
|
||||||
, updateOnWMIconChange = True
|
, updateOnWMIconChange = True
|
||||||
, debugMode = True
|
, debugMode = False
|
||||||
, redrawIconsOnStateChange = True
|
, redrawIconsOnStateChange = True
|
||||||
}
|
}
|
||||||
hudPagerConfig = hudFromPagerConfig pagerConfig
|
hudPagerConfig = hudFromPagerConfig pagerConfig
|
||||||
@ -105,15 +111,16 @@ main = do
|
|||||||
{ startWidgets = [hud]
|
{ startWidgets = [hud]
|
||||||
, endWidgets =
|
, endWidgets =
|
||||||
[ underline tray "yellow"
|
[ underline tray "yellow"
|
||||||
, underline clock "blue"
|
, underline clock "teal"
|
||||||
, underline mem "orange"
|
, underline mem "red"
|
||||||
, underline cpu "green"
|
, underline cpu "green"
|
||||||
, underline mpris "red"
|
, underline mpris "blue"
|
||||||
]
|
]
|
||||||
, monitorNumber = monNumber
|
, monitorNumber = monNumber
|
||||||
, monitorFilter = allMonitors
|
, monitorFilter = monFilter
|
||||||
, barPosition = Top
|
, barPosition = Top
|
||||||
, barHeight = 40
|
, barHeight = 40
|
||||||
|
, widgetSpacing = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Local Variables:
|
-- Local Variables:
|
||||||
|
@ -10,7 +10,7 @@ style "taffybar-default" {
|
|||||||
color["dgrey"] = "#212121"
|
color["dgrey"] = "#212121"
|
||||||
color["ldgrey"] = "#424242"
|
color["ldgrey"] = "#424242"
|
||||||
color["lgrey"] = "#bdbdbd"
|
color["lgrey"] = "#bdbdbd"
|
||||||
color["teal"] = "#80CBC4"
|
color["teal"] = "#00796b"
|
||||||
color["bgrey"] = "#37474F"
|
color["bgrey"] = "#37474F"
|
||||||
color["bgreyl"] = "#546E7A"
|
color["bgreyl"] = "#546E7A"
|
||||||
color["activeWS"] = @yellow
|
color["activeWS"] = @yellow
|
||||||
@ -77,6 +77,12 @@ style "red" = "taffybar-default" {
|
|||||||
style "yellow" = "taffybar-default" {
|
style "yellow" = "taffybar-default" {
|
||||||
bg[NORMAL]= @yellow
|
bg[NORMAL]= @yellow
|
||||||
}
|
}
|
||||||
|
style "green" = "taffybar-default" {
|
||||||
|
bg[NORMAL]= @green
|
||||||
|
}
|
||||||
|
style "teal" = "taffybar-default" {
|
||||||
|
bg[NORMAL]= @teal
|
||||||
|
}
|
||||||
|
|
||||||
widget "Taffybar*" style "taffybar-default"
|
widget "Taffybar*" style "taffybar-default"
|
||||||
widget "Taffybar*WindowSwitcher*" style "taffybar-active-window"
|
widget "Taffybar*WindowSwitcher*" style "taffybar-active-window"
|
||||||
@ -106,3 +112,4 @@ widget "*red-underline*" style "red"
|
|||||||
widget "*yellow-underline*" style "yellow"
|
widget "*yellow-underline*" style "yellow"
|
||||||
widget "*orange-underline*" style "orange"
|
widget "*orange-underline*" style "orange"
|
||||||
widget "*green-underline*" style "green"
|
widget "*green-underline*" style "green"
|
||||||
|
widget "*teal-underline*" style "teal"
|
||||||
|
Loading…
Reference in New Issue
Block a user