Skip to content

Commit 3ea9d73

Browse files
committed
oboro => [hyprland.lua][plugins.lua][writing-code.lua][changeMeWall.spell]
1 parent 317dbe5 commit 3ea9d73

4 files changed

Lines changed: 81 additions & 56 deletions

File tree

runes/hypr/hyprland.lua

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,15 @@ if monitor_conf ~= nil then
3030
for _, conf in pairs(monitor_conf) do
3131
hl.monitor(conf)
3232
end
33-
else
34-
hl.monitor({
35-
output = "",
36-
mode = "preferred",
37-
position = "auto",
38-
scale = "auto",
39-
})
4033
end
34+
hl.monitor({
35+
output = "",
36+
mode = "preferred",
37+
position = "auto",
38+
scale = "auto",
39+
})
4140

42-
-- TODO: no donation nag
41+
hl.workspace_rule({ workspace = "special:magic", gaps_out = 300 })
4342

4443
local config_dir = os.getenv("HOME").."/.config/hypr/"
4544

@@ -67,71 +66,78 @@ hl.config({
6766
ecosystem = {
6867
no_donation_nag = true
6968
},
70-
input = {
71-
kb_layout = "us",
72-
kb_options = "caps:escape",
73-
follow_mouse = 2,
74-
float_switch_override_focus = false,
75-
touchpad = {
76-
natural_scroll = false,
77-
disable_while_typing = true,
78-
tap_to_click = false,
79-
},
80-
sensitivity = 0,
81-
},
8269

8370
general = {
8471
-- See https://wiki.hyprland.org/Configuring/Variables/ for more
72+
border_size = 5,
8573
gaps_in = 3,
8674
gaps_out = 7,
87-
border_size = 5,
88-
col = {
89-
active_border = "rgb(345F0C)",
90-
inactive_border = "rgb(565656)",
91-
},
75+
no_focus_fallback = true,
76+
locale = "en_US",
9277

9378
layout = "dwindle",
9479
-- Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
9580
allow_tearing = false,
9681
},
9782

98-
group = {
99-
groupbar = {
100-
font_size = 13,
101-
font_weight_active = "bold",
102-
},
103-
},
104-
10583
decoration = {
10684
-- See https://wiki.hyprland.org/Configuring/Variables/ for more
10785

108-
rounding = 1,
86+
rounding = 3,
87+
88+
rounding_power = 5.0,
10989

11090
blur = {
11191
enabled = true,
112-
size = 10,
92+
size = 8,
11393
passes = 1,
94+
xray = false,
11495
},
11596

11697
shadow = {
11798
enabled = false,
118-
}
99+
},
100+
101+
glow = {
102+
enabled = false,
103+
},
104+
105+
-- motion_blur = {
106+
-- enabled = true,
107+
-- },
119108
},
120109

121110
animations = {
122111
enabled = true
123112
},
124113

114+
input = {
115+
kb_layout = "us",
116+
kb_options = "caps:escape",
117+
follow_mouse = 2,
118+
float_switch_override_focus = false,
119+
touchpad = {
120+
natural_scroll = false,
121+
disable_while_typing = true,
122+
tap_to_click = false,
123+
clickfinger_behavior = true,
124+
},
125+
sensitivity = 0,
126+
},
127+
128+
group = {
129+
groupbar = {
130+
font_size = 13,
131+
gradients = true,
132+
blur = true,
133+
},
134+
},
135+
125136
dwindle = {
126137
-- See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
127138
preserve_split = true
128139
},
129140

130-
master = {
131-
-- See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
132-
new_status = "master"
133-
},
134-
135141
misc = {
136142
disable_hyprland_logo = true,
137143
animate_mouse_windowdragging = true,
@@ -190,7 +196,7 @@ for i = 1, 10 do
190196
local key = i % 10 -- 10 maps to key 0
191197
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i }))
192198
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
193-
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i, follow = false }))
199+
hl.bind(mainMod .. " + CONTROL + " .. key, hl.dsp.window.move({ workspace = i, follow = false }))
194200
end
195201

196202
hl.bind(mainMod .. " + SHIFT + space", hl.dsp.window.float({ action = "toggle" }))

runes/nvim/lua/plugins.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ return require('lazy').setup({
176176

177177
'cstrahan/vim-capnp',
178178

179-
-- {
180-
-- 'nvim-treesitter/nvim-treesitter',
181-
-- config = function()
182-
-- require('plugins.treesitter')
183-
-- end,
184-
-- },
179+
{
180+
'nvim-treesitter/nvim-treesitter',
181+
config = function()
182+
require('plugins.treesitter')
183+
end,
184+
},
185185
-- pweatty lsp frontend
186186
{
187187
'nvimdev/lspsaga.nvim',

runes/nvim/lua/writing-code.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ au.group('shellcheck', function(g)
88
g.FileType = {
99
'sh',
1010
function()
11-
vim.keymap.set('n', '<leader>s', ':sp | term shellcheck -x %<CR>', { nnoremap = true })
11+
vim.keymap.set('n', '<leader>s', ':sp | term shellcheck -x %<CR>', { noremap = true })
1212
end
1313
}
1414
end)

spells/changeMeWall.spell

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,33 @@ unset i
225225
riverctl border-color-focused "$(convert "${active}")"
226226
riverctl border-color-unfocused "$(convert "${inactive}")"
227227
elif pgrep Hyprland >/dev/null; then
228-
function convert { c="${1#\#}"; echo "${c% *}"; }
228+
function convert { c="${1% *}"; echo "\"rgb(${c#\#})\""; }
229+
function tconvert { c="${1#* }"; echo "\"rgb(${c#\#})\""; }
229230

230-
hyprctl keyword general:col.active_border "rgb($(convert "${active}"))"
231-
hyprctl keyword general:col.inactive_border "rgb($(convert "${inactive}"))"
232-
hyprctl keyword group:col.border_active "rgb($(convert "${active}"))"
233-
hyprctl keyword group:col.border_inactive "rgb($(convert "${inactive}"))"
234-
hyprctl keyword group:groupbar:col.active "rgb($(convert "${active}"))"
235-
hyprctl keyword group:groupbar:col.inactive "rgb($(convert "${inactive}"))"
231+
config="
232+
hl.config({
233+
general = {
234+
col = {
235+
active_border = $(convert "${active}"),
236+
inactive_border = $(convert "${inactive}"),
237+
},
238+
},
239+
group = {
240+
col = {
241+
border_active = $(convert "${active}"),
242+
border_inactive = $(convert "${inactive}"),
243+
},
244+
groupbar = {
245+
text_color = $(tconvert "${active}"),
246+
text_color_inactive = $(tconvert "${inactive}"),
247+
col = {
248+
active = $(convert "${active}"),
249+
inactive = $(convert "${inactive}"),
250+
},
251+
},
252+
},
253+
})"
254+
hyprctl eval "$config"
236255
elif pgrep -f sway >/dev/null; then
237256
swaymsg client.focused '#4c7899' '#285577' '#ffffff' '#2e9ef4' "${active% *}"
238257
swaymsg client.focused_inactive '#333333' '#5f676a' '#ffffff' '#484e50' "${active2% *}"
@@ -263,7 +282,7 @@ if [ "$wayland" ]; then
263282
pendrellvale)
264283
t=(fade left right top bottom wipe wave grow center any outer)
265284
awww img "${files[@]}" \
266-
-t ${t[$((RANDOM % ${#t[@]}))]} \
285+
-t "${t[$((RANDOM % ${#t[@]}))]}" \
267286
--transition-step 90 \
268287
--transition-duration 5
269288
;;

0 commit comments

Comments
 (0)