diff --git a/examples/config.corn b/examples/config.corn new file mode 100644 index 0000000..a832b84 --- /dev/null +++ b/examples/config.corn @@ -0,0 +1,43 @@ +let { + $workspaces = { + type = "workspaces" + all_monitors = false + name_map = { + 1 = "ﭮ" + 2 = "" + 3 = "" + Games = "" + Code = "" + } + } + + $launcher = { + type = "launcher" + favorites = ["firefox" "discord" "Steam"] + show_names = false + show_icons = true + icon_theme = "Paper" + } + + $mpd_local = { type = "mpd" music_dir = "/home/jake/Music" } + $mpd_server = { type = "mpd" host = "chloe:6600" } + + $sys_info = { + type = "sys-info" + format = ["{cpu-percent}% " "{memory-percent}% "] + } + + $tray = { type = "tray" } + $clock = { type = "clock" } + + $phone_battery = { + type = "script" + path = "/home/jake/bin/phone-battery" + } + + $left = [ $workspaces $launcher ] + $right = [ $mpd_local $mpd_server $phone_battery $sys_info $clock ] +} +in { + left = $left right = $right +} diff --git a/examples/style.css b/examples/style.css new file mode 100644 index 0000000..d7bb525 --- /dev/null +++ b/examples/style.css @@ -0,0 +1,148 @@ +* { + /* `otf-font-awesome` is required to be installed for icons */ + font-family: Noto Sans Nerd Font, sans-serif; + /* font-family: 'Jetbrains Mono', monospace;*/ + font-size: 16px; + + /*color: white;*/ + /*background-color: #2d2d2d;*/ + /*background-color: red;*/ + border: none; + + /*opacity: 0.4;*/ +} + +#bar { + border-top: 1px solid #424242; +} + +.container { + background-color: #2d2d2d; +} + +/* test 34543*/ + +#right > * + * { + margin-left: 20px; +} + +#workspaces .item { + color: white; + background-color: #2d2d2d; + border-radius: 0; +} + +#workspaces .item.focused { + box-shadow: inset 0 -3px; + background-color: #1c1c1c; +} + +#workspaces *:not(.focused):hover { + box-shadow: inset 0 -3px; +} + +#launcher .item { + border-radius: 0; + background-color: #2d2d2d; + margin-right: 4px; +} + +#launcher .item:not(.focused):hover { + background-color: #1c1c1c; +} + +#launcher .open { + border-bottom: 2px solid #6699cc; +} + +#launcher .focused { + color: white; + background-color: black; + border-bottom: 4px solid #6699cc; +} + +#launcher .urgent { + color: white; + background-color: #8f0a0a; +} + +#clock { + color: white; + background-color: #2d2d2d; + font-weight: bold; +} + +#script { + color: white; +} + +#sysinfo { + color: white; +} + +#tray .item { + background-color: #2d2d2d; +} + +#mpd { + background-color: #2d2d2d; + color: white; +} + +.popup { + background-color: #2d2d2d; + border: 1px solid #424242; +} + +#popup-clock { + padding: 1em; +} + +#calendar-clock { + color: white; + font-size: 2.5em; + padding-bottom: 0.1em; +} + +#calendar { + background-color: #2d2d2d; + color: white; +} + +#calendar .header { + padding-top: 1em; + border-top: 1px solid #424242; + font-size: 1.5em; +} + +#calendar:selected { + background-color: #6699cc; +} + +#popup-mpd { + color: white; + padding: 1em; +} + +#popup-mpd #album-art { + /*border: 1px solid #424242;*/ + margin-right: 1em; +} + +#popup-mpd #title .icon, #popup-mpd #title .label { + font-size: 1.7em; +} + +#popup-mpd #controls * { + border-radius: 0; + background-color: #2d2d2d; + color: white; +} + +#popup-mpd #controls *:disabled { + color: #424242; +} + +#focused { + color: white; +}