This commit is contained in:
Thomas Forgione 2024-06-22 00:27:26 +02:00
parent 82898eacff
commit 9addb10e26
2 changed files with 16 additions and 16 deletions

31
rc.lua
View File

@ -242,7 +242,7 @@ awful.screen.connect_for_each_screen(function(s)
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" }, s, awful.layout.layouts[1]) awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen -- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt() -- s.mypromptbox = awful.widget.prompt()
-- Create an imagebox widget which will contains an icon indicating which layout we're using. -- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen. -- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s) s.mylayoutbox = awful.widget.layoutbox(s)
@ -258,7 +258,7 @@ awful.screen.connect_for_each_screen(function(s)
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons) s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
-- Create the wibox -- Create the wibox
local wibar_width = s.geometry.width / 3 local wibar_width = s.geometry.width / 4
local wibar_height = 20 local wibar_height = 20
s.mywibox = wibox({ s.mywibox = wibox({
x = s.geometry.width - wibar_width, x = s.geometry.width - wibar_width,
@ -268,7 +268,7 @@ awful.screen.connect_for_each_screen(function(s)
expand = true, expand = true,
visible = true, visible = true,
ontop = true, ontop = true,
screen = s, screen = s
}) })
s.textclock = awful.widget.textclock(" %a %d %b %H:%M ") s.textclock = awful.widget.textclock(" %a %d %b %H:%M ")
@ -281,7 +281,6 @@ awful.screen.connect_for_each_screen(function(s)
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
-- mylauncher, -- mylauncher,
s.mytaglist, s.mytaglist,
s.mypromptbox,
}, },
s.mytasklist, -- Middle widget s.mytasklist, -- Middle widget
{ -- Right widgets { -- Right widgets
@ -407,19 +406,19 @@ globalkeys = awful.util.table.join(
{description = "restore minimized", group = "client"}), {description = "restore minimized", group = "client"}),
-- Prompt -- Prompt
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end, -- awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}), -- {description = "run prompt", group = "launcher"}),
awful.key({ modkey }, "x", -- awful.key({ modkey }, "x",
function () -- function ()
awful.prompt.run { -- awful.prompt.run {
prompt = "Run Lua code: ", -- prompt = "Run Lua code: ",
textbox = awful.screen.focused().mypromptbox.widget, -- textbox = awful.screen.focused().mypromptbox.widget,
exe_callback = awful.util.eval, -- exe_callback = awful.util.eval,
history_path = awful.util.get_cache_dir() .. "/history_eval" -- history_path = awful.util.get_cache_dir() .. "/history_eval"
} -- }
end, -- end,
{description = "lua execute prompt", group = "awesome"}), -- {description = "lua execute prompt", group = "awesome"}),
-- Custom shortcuts -- Custom shortcuts
awful.key({ }, "XF86AudioRaiseVolume", function() awful.key({ }, "XF86AudioRaiseVolume", function()

View File

@ -28,6 +28,7 @@ theme.border_marked = "#91231c"
-- defined, the sets are: -- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty] -- taglist_[bg|fg]_[focus|urgent|occupied|empty]
-- tasklist_[bg|fg]_[focus|urgent] -- tasklist_[bg|fg]_[focus|urgent]
theme.tasklist_disable_task_name = true
-- titlebar_[bg|fg]_[normal|focus] -- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color] -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor] -- mouse_finder_[color|timeout|animate_timeout|radius|factor]