-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua.default
More file actions
104 lines (87 loc) · 3.12 KB
/
Copy pathinit.lua.default
File metadata and controls
104 lines (87 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
-- SirenWM default config — auto-installed to ~/.config/sirenwm/init.lua
-- when no config file exists. Edit to suit your setup.
-- See ~/.local/share/sirenwm/init.lua.example for a full annotated example.
-- Core modules (required)
local kb = require("keybindings")
local bar = require("bar")
-- Primary modifier key (mod4 = super/win)
siren.modifier = "mod4"
-- Monitor layout is auto-detected via RandR. To pin specific outputs,
-- resolutions or rotations uncomment and adjust:
-- siren.monitors = {
-- { name = "primary", output = "HDMI-1", width = 1920, height = 1080,
-- refresh = 60, rotation = "normal", enabled = true },
-- }
-- Workspaces (no monitor pin — distributed across detected monitors)
siren.workspaces = {
{ name = "[1]" },
{ name = "[2]" },
{ name = "[3]" },
{ name = "[4]" },
{ name = "[5]" },
{ name = "[6]" },
{ name = "[7]" },
{ name = "[8]" },
{ name = "[9]" },
}
-- Theme
siren.theme = {
font = "monospace:size=9",
bg = "#111111",
fg = "#bbbbbb",
alt_bg = "#222222",
alt_fg = "#eeeeee",
accent = "#005577",
gap = 4,
border = {
thickness = 1,
focused = "#005577",
unfocused = "#222222",
},
}
-- Mouse drag bindings
kb.mouse = {
{ "mod+Button1", "move" },
{ "mod+Button3", "resize" },
{ "mod+Button2", "float" },
}
-- Widgets (optional — null-object if missing)
local tags = siren.load("widgets.tags")
local title = siren.load("widgets.title")
local clock = siren.load("widgets.clock")
bar.settings = {
top = {
height = 18,
left = { tags },
center = { title },
right = { clock },
},
}
-- Keybindings
local binds = {
{ "mod+Return", function() siren.spawn("xterm") end },
{ "mod+shift+q", function() siren.win.close() end },
{ "mod+j", function() siren.win.focus_next() end },
{ "mod+k", function() siren.win.focus_prev() end },
{ "mod+shift+Return", function() siren.layout.zoom() end },
{ "mod+shift+space", function() siren.win.toggle_floating() end },
{ "mod+h", function() siren.layout.adj_master(-0.05) end },
{ "mod+l", function() siren.layout.adj_master( 0.05) end },
{ "mod+i", function() siren.layout.inc_master( 1) end },
{ "mod+d", function() siren.layout.inc_master(-1) end },
{ "mod+m", function() siren.layout.set("monocle") end },
{ "mod+t", function() siren.layout.set("tile") end },
{ "mod+r", function() siren.reload() end },
{ "mod+shift+r", function() siren.restart() end },
}
-- Workspace switch and move bindings (1-9)
for i = 1, 9 do
table.insert(binds, { "mod+" .. i, function() siren.ws.switch(i) end })
table.insert(binds, { "mod+shift+" .. i, function() siren.win.move_to(i) end })
end
-- Monitor focus and window move bindings
for i = 1, 8 do
table.insert(binds, { "mod+ctrl+" .. i, function() siren.monitor.focus(i) end })
table.insert(binds, { "mod+ctrl+shift+" .. i, function() siren.win.move_to_monitor(i) end })
end
kb.binds = binds