mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-21 17:59:39 +01:00
Use finalPackage pattern with wrapper so that people who don't use the service can benefit from the other options. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
36 lines
701 B
Lua
36 lines
701 B
Lua
#!/usr/bin/env lua
|
|
-- Generated by home-manager
|
|
-- This is a test Lua configuration
|
|
local sbar = require("sbarlua")
|
|
|
|
-- Configure bar
|
|
sbar.bar:set({
|
|
height = 30,
|
|
position = "top",
|
|
padding_left = 10,
|
|
padding_right = 10,
|
|
blur_radius = 20,
|
|
corner_radius = 9,
|
|
})
|
|
|
|
-- Configure defaults
|
|
sbar.defaults:set({
|
|
["icon.font"] = "SF Pro",
|
|
["icon.color"] = "0xff0000ff",
|
|
["background.height"] = 24,
|
|
["popup.background.border_width"] = 2,
|
|
["popup.background.corner_radius"] = 9,
|
|
})
|
|
|
|
-- Add items
|
|
sbar:add("item", "cpu", {
|
|
position = "right",
|
|
update_freq = 1,
|
|
script = "./scripts/cpu.lua",
|
|
})
|
|
|
|
-- Subscribe to events
|
|
sbar:subscribe("cpu", "system_woke")
|
|
|
|
-- Update the bar
|
|
sbar:update()
|