mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
added sketchybar config
This commit is contained in:
parent
87bb07f015
commit
95ebd7af03
38 changed files with 2329 additions and 0 deletions
22
dot_config/sketchybar/items/front_app.lua
Normal file
22
dot_config/sketchybar/items/front_app.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
local colors = require("colors")
|
||||
local settings = require("settings")
|
||||
|
||||
local front_app = sbar.add("item", "front_app", {
|
||||
display = "active",
|
||||
icon = { drawing = false },
|
||||
label = {
|
||||
font = {
|
||||
style = settings.font.style_map["Black"],
|
||||
size = 12.0,
|
||||
},
|
||||
},
|
||||
updates = true,
|
||||
})
|
||||
|
||||
front_app:subscribe("front_app_switched", function(env)
|
||||
front_app:set({ label = { string = env.INFO } })
|
||||
end)
|
||||
|
||||
front_app:subscribe("mouse.clicked", function(env)
|
||||
sbar.trigger("swap_menus_and_spaces")
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue