mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-08 14:06:34 +05:30
add awesome-wm config
This commit is contained in:
10
pkgs/awesome/awesome/config/apps.lua
Normal file
10
pkgs/awesome/awesome/config/apps.lua
Normal 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
|
53
pkgs/awesome/awesome/config/rules.lua
Normal file
53
pkgs/awesome/awesome/config/rules.lua
Normal 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)
|
20
pkgs/awesome/awesome/config/user.lua
Normal file
20
pkgs/awesome/awesome/config/user.lua
Normal 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,
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user