Merge branch 'master' of github.com:IvanMalison/dotfiles

This commit is contained in:
Ivan Malison 2017-03-04 16:22:27 -08:00
commit 0a3239264f
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
3 changed files with 22 additions and 20 deletions

View File

@ -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

View File

@ -65,6 +65,10 @@ main = do
case monEither of
Left _ -> 0
Right monString -> fromMaybe 0 $ readMaybe monString
let monFilter =
case monEither of
Left _ -> allMonitors
Right monString -> Nothing
let memCfg =
defaultGraphConfig
{graphDataColors = [(1, 0, 0, 1)], graphLabel = Just "mem"}
@ -74,7 +78,9 @@ main = do
, graphLabel = Just "cpu"
}
let clock = textClockNew Nothing "%a %b %_d %r" 1
pagerConfig = defaultPagerConfig {useImages = True}
pagerConfig = defaultPagerConfig {
useImages = True
}
mpris = mpris2New
mem = pollingGraphNew memCfg 1 memCallback
cpu = pollingGraphNew cpuCfg 0.5 cpuCallback
@ -82,7 +88,7 @@ main = do
hudConfig =
defaultWorkspaceHUDConfig
{ underlineHeight = 3
, underlinePadding = 0
, underlinePadding = 1
, minWSWidgetSize = Nothing
, minIcons = 3
, getIconInfo = myGetIconInfo
@ -93,7 +99,7 @@ main = do
, updateRateLimitMicroseconds = 100000
, updateIconsOnTitleChange = True
, updateOnWMIconChange = True
, debugMode = True
, debugMode = False
, redrawIconsOnStateChange = True
}
hudPagerConfig = hudFromPagerConfig pagerConfig
@ -105,15 +111,16 @@ main = do
{ startWidgets = [hud]
, endWidgets =
[ underline tray "yellow"
, underline clock "blue"
, underline mem "orange"
, underline clock "teal"
, underline mem "red"
, underline cpu "green"
, underline mpris "red"
, underline mpris "blue"
]
, monitorNumber = monNumber
, monitorFilter = allMonitors
, monitorFilter = monFilter
, barPosition = Top
, barHeight = 40
, widgetSpacing = 5
}
-- Local Variables:

View File

@ -10,7 +10,7 @@ style "taffybar-default" {
color["dgrey"] = "#212121"
color["ldgrey"] = "#424242"
color["lgrey"] = "#bdbdbd"
color["teal"] = "#80CBC4"
color["teal"] = "#00796b"
color["bgrey"] = "#37474F"
color["bgreyl"] = "#546E7A"
color["activeWS"] = @yellow
@ -77,6 +77,12 @@ style "red" = "taffybar-default" {
style "yellow" = "taffybar-default" {
bg[NORMAL]= @yellow
}
style "green" = "taffybar-default" {
bg[NORMAL]= @green
}
style "teal" = "taffybar-default" {
bg[NORMAL]= @teal
}
widget "Taffybar*" style "taffybar-default"
widget "Taffybar*WindowSwitcher*" style "taffybar-active-window"
@ -106,3 +112,4 @@ widget "*red-underline*" style "red"
widget "*yellow-underline*" style "yellow"
widget "*orange-underline*" style "orange"
widget "*green-underline*" style "green"
widget "*teal-underline*" style "teal"