diff options
author | Tim Keller <tjkeller.xyz> | 2025-04-12 14:34:55 -0500 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-04-12 14:34:55 -0500 |
commit | 39f8a32b96c86a442c6cdc4aae7a870a5f65b45f (patch) | |
tree | 301b6b623f80838de954c8afdd0d19cb2665f11a /bar.lua | |
parent | 3ab998e85b7eb487d129530c5ec437259e305c81 (diff) | |
download | awesome-39f8a32b96c86a442c6cdc4aae7a870a5f65b45f.tar.xz awesome-39f8a32b96c86a442c6cdc4aae7a870a5f65b45f.zip |
cleanup and tasklist tooltip + wibox tooltip lib
Diffstat (limited to 'bar.lua')
-rw-r--r-- | bar.lua | 37 |
1 files changed, 2 insertions, 35 deletions
@@ -11,11 +11,11 @@ local widget_temperature = require("widgets.temperature") local widget_battery = require("widgets.battery") local classiclayoutbox = require("widgets.classiclayouts") local volume_control = require("widgets.pavolctld") +local tasklist = require("widgets.tasklist") local widget_volume = volume_control.textbox -- store widgets here local spacing = 8 -local separator = { widget = wibox.widget.separator, opacity = 0 } local widgets = { temperature_file = nil; @@ -33,22 +33,7 @@ local widgets = { filter = awful.widget.taglist.filter.noempty, buttons = taglist_buttons, } end, - tasklist = function(s) return wibox.widget { - layout = wibox.layout.align.horizontal, - expand = "outside", - separator, - awful.widget.tasklist { - screen = s, - filter = awful.widget.tasklist.filter.focused, - buttons = tasklist_buttons, - widget_template = { - id = "text_role", - widget = wibox.widget.textbox, - align = "center", - }, - }, - separator, - } end, + tasklist = tasklist, textclock = { widget = wibox.widget.textclock, format = "%A, %B %-e, %-I:%M %p", @@ -144,22 +129,4 @@ awful.screen.connect_for_each_screen(function (s) } end) ----- signal for changing tasklist filter based on layout ----- DOESNT WORK TODO ---local naughty = require("naughty") ---s:connect_signal("property::layout", function() --- naughty.notify({ --- title = "Hello, AwesomeWM!", --- text = "This is a notification.", --- timeout = 5, -- Timeout in seconds --- position = "top_right" -- Position on the screen --- }) --- if awful.layout.get(s) == awful.layout.suit.max then --- s.mytasklist.filter = awful.widget.tasklist.filter.currenttags --- else --- s.mytasklist.filter = awful.widget.tasklist.filter.focused --- end ---end ---) - return widgets |