refactor code structure
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
-- Central user-editable values. Domain modules consume this table so monitor
|
||||
-- names, applications, modifiers, and workspace selectors stay in sync.
|
||||
return {
|
||||
-- SUPER is used for conventional desktop shortcuts. Caps Lock is mapped to
|
||||
-- MOD3 in input.lua and acts as the Hyper modifier.
|
||||
modifiers = {
|
||||
main = "SUPER",
|
||||
hyper = "MOD3",
|
||||
},
|
||||
|
||||
-- Store raw executable names here. Callers decide whether a command should
|
||||
-- be wrapped with `uwsm-app` or executed directly.
|
||||
programs = {
|
||||
terminal = "alacritty",
|
||||
file_manager = "dolphin",
|
||||
launcher = "hyprlauncher",
|
||||
},
|
||||
|
||||
-- Named outputs make cross-module references (such as workspace routing)
|
||||
-- clearer than array indexes.
|
||||
monitors = {
|
||||
primary = {
|
||||
output = "HDMI-A-1",
|
||||
mode = "2560x1440@144",
|
||||
position = "0x0",
|
||||
scale = 1,
|
||||
},
|
||||
secondary = {
|
||||
output = "DP-3",
|
||||
mode = "2560x1440@120",
|
||||
position = "2560x0",
|
||||
scale = 1,
|
||||
},
|
||||
},
|
||||
|
||||
-- Both workspace rules and keybindings are generated from this list.
|
||||
named_workspaces = {
|
||||
{
|
||||
name = "bilibili",
|
||||
selector = "name:bilibili",
|
||||
key = "F1",
|
||||
},
|
||||
{
|
||||
name = "im",
|
||||
selector = "name:im",
|
||||
key = "F2",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user