awesome: idk
This commit is contained in:
@ -15,7 +15,8 @@ local naughty = require("naughty")
|
||||
local menubar = require("menubar")
|
||||
local hotkeys_popup = require("awful.hotkeys_popup")
|
||||
|
||||
local volume_widget = require("awesome-wm-widgets.volume-widget.volume")
|
||||
local volume_widget = require("awesome-wm-widgets.pactl-widget.volume")
|
||||
local mpdarc_widget = require("awesome-wm-widgets.mpdarc-widget.mpdarc")
|
||||
-- Enable hotkeys help widget for VIM and other apps
|
||||
-- when client with a matching name is opened:
|
||||
require("awful.hotkeys_popup.keys")
|
||||
@ -58,7 +59,7 @@ beautiful.init(theme)
|
||||
|
||||
-- This is used later as the default terminal and editor to run.
|
||||
terminal = "kitty"
|
||||
browser = "firefox"
|
||||
browser = "brave"
|
||||
calculator = "rofi -show calc"
|
||||
file_manager = "pcmanfm"
|
||||
launcher = "rofi -show run"
|
||||
@ -84,7 +85,7 @@ awful.layout.layouts = {
|
||||
awful.layout.suit.spiral.dwindle,
|
||||
awful.layout.suit.max,
|
||||
awful.layout.suit.max.fullscreen,
|
||||
awful.layout.suit.magnifier,
|
||||
-- awful.layout.suit.magnifier,
|
||||
awful.layout.suit.corner.nw,
|
||||
awful.layout.suit.floating,
|
||||
-- awful.layout.suit.corner.ne,
|
||||
@ -241,7 +242,7 @@ awful.screen.connect_for_each_screen(function(s)
|
||||
widget = wibox.widget.separator,
|
||||
orientation = "vertical",
|
||||
forced_width = 4,
|
||||
forced_height = 4,
|
||||
forced_height = 2,
|
||||
span_ration = 0.5,
|
||||
-- color =
|
||||
})
|
||||
@ -249,30 +250,25 @@ awful.screen.connect_for_each_screen(function(s)
|
||||
-- Add widgets to the wibox
|
||||
s.mywibar:setup({
|
||||
layout = wibox.layout.align.horizontal,
|
||||
{
|
||||
expand = "none",
|
||||
{ -- left widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
s.mytaglist,
|
||||
},
|
||||
{
|
||||
layout = wibox.layout.align.horizontal,
|
||||
nil,
|
||||
{
|
||||
widget = wibox.container.margin,
|
||||
margins = 5,
|
||||
{
|
||||
widget = mytextclock,
|
||||
},
|
||||
},
|
||||
nil,
|
||||
},
|
||||
{
|
||||
{ -- middle widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
spacing = 5,
|
||||
separator,
|
||||
mytextclock,
|
||||
},
|
||||
{ -- right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
-- spacing = 5,
|
||||
-- mpdarc_widget,
|
||||
-- separator,
|
||||
volume_widget({
|
||||
volume_widget = "icon_and_text",
|
||||
widget_type = "icon_and_text",
|
||||
}),
|
||||
separator,
|
||||
separator,
|
||||
mykeyboardlayout,
|
||||
separator,
|
||||
s.mylayoutbox,
|
||||
@ -563,7 +559,8 @@ awful.rules.rules = {
|
||||
"Wpa_gui",
|
||||
"veromix",
|
||||
"xtightvncviewer",
|
||||
"Cadence",
|
||||
"PipeControl",
|
||||
"Untitled1 — A PipeWire Graph Qt GUI Interface",
|
||||
},
|
||||
|
||||
-- Note that the name property shown in xprop might be set slightly after creation of the client
|
||||
@ -589,13 +586,13 @@ awful.rules.rules = {
|
||||
}
|
||||
-- }}}
|
||||
|
||||
client.connect_signal("property::floating", function(c)
|
||||
if c.floating then
|
||||
c.ontop = true
|
||||
else
|
||||
c.ontop = false
|
||||
end
|
||||
end)
|
||||
-- client.connect_signal("property::floating", function(c)
|
||||
-- if c.floating then
|
||||
-- c.ontop = true
|
||||
-- else
|
||||
-- c.ontop = false
|
||||
-- end
|
||||
-- end)
|
||||
-- {{{ Signals
|
||||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function(c)
|
||||
@ -626,6 +623,14 @@ client.connect_signal("request::titlebars", function(c)
|
||||
)
|
||||
end)
|
||||
|
||||
-- client.connect_signal("property::floating", function(c)
|
||||
-- if c.floating then
|
||||
-- c.ontop = true
|
||||
-- else
|
||||
-- c.ontop = false
|
||||
-- end
|
||||
-- end)
|
||||
|
||||
-- Enable sloppy focus, so that focus follows mouse.
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
c:emit_signal("request::activate", "mouse_enter", { raise = false })
|
||||
|
||||
Reference in New Issue
Block a user