aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-20 20:34:15 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-20 20:34:15 +0530
commit444207ba678802fa0de31d4494a5f8889884db27 (patch)
tree5ea462e81cecd0b0c57bc55cea3d8f89d187af07
parent4fbe9ceb5e281019f2fcc3175a910c8493ca5c78 (diff)
removed support for titlebars
-rwxr-xr-xawesome/rc.lua62
1 files changed, 7 insertions, 55 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index c6f135c0..4a5ffdf8 100755
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -515,20 +515,12 @@ awful.rules.rules = {
-- Floating clients.
{ rule_any = {
instance = {
- "DTA", -- Firefox addon DownThemAll.
- "copyq", -- Includes session name in class.
- "pinentry",
+ "scrcpy",
},
class = {
- "Arandr",
- "Blueman-manager",
- "Gpick",
- "Kruler",
- "MessageWin", -- kalarm.
+ "gimp",
"Sxiv",
"Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
- "Wpa_gui",
- "veromix",
"xtightvncviewer"},
-- Note that the name property shown in xprop might be set slightly after creation of the client
@@ -572,46 +564,6 @@ client.connect_signal("manage", function (c)
end
end)
--- Add a titlebar if titlebars_enabled is set to true in the rules.
-client.connect_signal("request::titlebars", function(c)
- -- buttons for the titlebar
- local buttons = gears.table.join(
- awful.button({ }, 1, function()
- c:emit_signal("request::activate", "titlebar", {raise = true})
- awful.mouse.client.move(c)
- end),
- awful.button({ }, 3, function()
- c:emit_signal("request::activate", "titlebar", {raise = true})
- awful.mouse.client.resize(c)
- end)
- )
-
- awful.titlebar(c) : setup {
- { -- Left
- awful.titlebar.widget.iconwidget(c),
- buttons = buttons,
- layout = wibox.layout.fixed.horizontal
- },
- { -- Middle
- { -- Title
- align = "center",
- widget = awful.titlebar.widget.titlewidget(c)
- },
- buttons = buttons,
- layout = wibox.layout.flex.horizontal
- },
- { -- Right
- awful.titlebar.widget.floatingbutton (c),
- awful.titlebar.widget.maximizedbutton(c),
- awful.titlebar.widget.stickybutton (c),
- awful.titlebar.widget.ontopbutton (c),
- awful.titlebar.widget.closebutton (c),
- layout = wibox.layout.fixed.horizontal()
- },
- layout = wibox.layout.align.horizontal
- }
-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})
@@ -622,8 +574,8 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
-- }}}
-- autostarts
-awful.spawn.with_shell("nitrogen --restore")
-awful.spawn.with_shell("picom")
-awful.spawn.with_shell("firefox")
-awful.spawn.with_shell("sxhkd")
-awful.spawn.with_shell("deadd-notification-center")
+-- awful.spawn.with_shell("nitrogen --restore")
+-- awful.spawn.with_shell("picom")
+-- awful.spawn.with_shell("firefox")
+-- awful.spawn.with_shell("sxhkd")
+-- awful.spawn.with_shell("deadd-notification-center")