add awesome-wm config

This commit is contained in:
2024-08-06 00:49:41 +05:30
parent b4da4c5f92
commit 2f852eed2f
175 changed files with 1100 additions and 1 deletions

View File

@ -0,0 +1,10 @@
-- This is used later as the default terminal and editor to run.
local apps = {}
apps.terminal = "wezterm"
apps.editor = "nvim"
apps.editor_cmd = apps.terminal .. " -e " .. apps.editor
-- Set the terminal for the menubar.
require("menubar").utils.terminal = apps.terminal
return apps

View File

@ -0,0 +1,53 @@
local awful = require("awful")
local ruled = require("ruled")
--- Rules.
-- Rules to apply to new clients.
ruled.client.connect_signal("request::rules", function()
-- All clients will match this rule.
ruled.client.append_rule({
id = "global",
rule = {},
properties = {
focus = awful.client.focus.filter,
raise = true,
screen = awful.screen.preferred,
placement = awful.placement.no_overlap + awful.placement.no_offscreen,
},
})
-- Floating clients.
ruled.client.append_rule({
id = "floating",
rule_any = {
instance = { "copyq", "pinentry" },
class = {
"Arandr",
".blueman-manager-wrapped",
"Gpick",
},
-- Note that the name property shown in xprop might be set slightly after creation of the client
-- and the name shown there might not match defined rules here.
name = {
"Event Tester", -- xev.
},
role = {
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
},
},
properties = { floating = true },
})
-- Add titlebars to normal clients and dialogs.
-- ruled.client.append_rule({
-- id = "titlebars",
-- rule_any = { type = { "normal", "dialog" } },
-- properties = { titlebars_enabled = true },
-- })
-- Set Firefox to always map on the tag named '2' on screen 1.
-- ruled.client.append_rule({
-- rule = { class = 'Firefox' },
-- properties = { screen = 1, tag = '2' }
-- })
end)

View File

@ -0,0 +1,20 @@
local awful = require("awful")
-- Specify user preferences for Awesome's behavior.
return {
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt. If you do not like
-- this or do not have such a key, I suggest you to remap Mod4 to another key using
-- xmodmap or other tools. However, you can use another modifier like Mod1, but it
-- may interact with others.
mod = "Mod4",
-- Each screen has its own tag table. You can just define one and append it to all
-- screens (default behavior).
tags = { "1", "2", "3", "4" },
-- Table of layouts to cover with awful.layout.inc, ORDER MATTERS, the first layout
-- in the table is your DEFAULT LAYOUT.
layouts = {
awful.layout.suit.tile,
awful.layout.suit.floating,
},
}