Its just dotfiles...

This commit is contained in:
2026-07-03 09:28:42 +02:00
parent 5bb60e1a35
commit d7863ed010
8 changed files with 87 additions and 30 deletions
+31 -12
View File
@@ -14,20 +14,39 @@ padding.y = 10
style.shape = "Beam" style.shape = "Beam"
style.blinking = "Always" style.blinking = "Always"
# LACKLUSTER COLORS # Kanagawa Wave Alacritty Colors
[colors.primary] [colors.primary]
background = '#101010' background = '#101010'
foreground = '#dcd7ba'
[colors.normal] [colors.normal]
# black is gray0 black = '#090618'
black = '#111111' red = '#c34043'
red = '#C11F1F' green = '#76946a'
green = '#789978' yellow = '#c0a36e'
yellow = '#ffAA88' blue = '#7e9cd8'
blue = '#7788AA' magenta = '#957fb8'
magenta = '#BD61A3' cyan = '#6a9589'
# cyan is set to lack white = '#c8c093'
cyan = '#708090'
# white is set to luster
white = '#DEEEED'
[colors.bright]
black = '#727169'
red = '#e82424'
green = '#98bb6c'
yellow = '#e6c384'
blue = '#7fb4ca'
magenta = '#938aa9'
cyan = '#7aa89f'
white = '#dcd7ba'
[colors.selection]
background = '#2d4f67'
foreground = '#c8c093'
[[colors.indexed_colors]]
index = 16
color = '#ffa066'
[[colors.indexed_colors]]
index = 17
color = '#ff5d62'
+2
View File
@@ -47,12 +47,14 @@ function M.setup()
-- Per-screen monitor widgets (created here so multi-monitor stays valid) -- Per-screen monitor widgets (created here so multi-monitor stays valid)
local title = widgets.make_title() local title = widgets.make_title()
local vol = widgets.make_vol() local vol = widgets.make_vol()
local brightness = widgets.make_brightness()
local cpu = widgets.make_cpu() local cpu = widgets.make_cpu()
local clock = wibox.widget.textclock("%Y-%m-%d %H:%M") local clock = wibox.widget.textclock("%Y-%m-%d %H:%M")
local right = wibox.layout.fixed.horizontal() local right = wibox.layout.fixed.horizontal()
local function push(w) right:add(widgets.padded(w, 4, 4)) end local function push(w) right:add(widgets.padded(w, 4, 4)) end
push(wibox.widget.systray()); right:add(widgets.sep()) push(wibox.widget.systray()); right:add(widgets.sep())
push(brightness);
push(vol); right:add(widgets.sep()) push(vol); right:add(widgets.sep())
push(cpu); right:add(widgets.sep()) push(cpu); right:add(widgets.sep())
push(clock); right:add(widgets.sep()) push(clock); right:add(widgets.sep())
+9 -9
View File
@@ -15,14 +15,14 @@ M.globalkeys = gears.table.join(
awful.key({ modkey }, "l", function() awful.client.focus.bydirection("right") end, { description = "focus right", group = "client" }), awful.key({ modkey }, "l", function() awful.client.focus.bydirection("right") end, { description = "focus right", group = "client" }),
-- Directional move (swap clients in the tiling layout) -- Directional move (swap clients in the tiling layout)
awful.key({ modkey, "Shift" }, "h", function() awful.client.swap.bydirection("left") end, { description = "move left", group = "client" }), awful.key({ modkey, "Control" }, "h", function() awful.client.swap.bydirection("left") end, { description = "move left", group = "client" }),
awful.key({ modkey, "Shift" }, "j", function() awful.client.swap.bydirection("down") end, { description = "move down", group = "client" }), awful.key({ modkey, "Control" }, "j", function() awful.client.swap.bydirection("down") end, { description = "move down", group = "client" }),
awful.key({ modkey, "Shift" }, "k", function() awful.client.swap.bydirection("up") end, { description = "move up", group = "client" }), awful.key({ modkey, "Control" }, "k", function() awful.client.swap.bydirection("up") end, { description = "move up", group = "client" }),
awful.key({ modkey, "Shift" }, "l", function() awful.client.swap.bydirection("right") end, { description = "move right", group = "client" }), awful.key({ modkey, "Control" }, "l", function() awful.client.swap.bydirection("right") end, { description = "move right", group = "client" }),
-- Resize the master/other split -- Resize the master/other split
awful.key({ modkey, "Control" }, "h", function() awful.tag.incmwfact(-0.05) end, { description = "shrink master", group = "layout" }), awful.key({ modkey, "Shift" }, "h", function() awful.tag.incmwfact(-0.05) end, { description = "shrink master", group = "layout" }),
awful.key({ modkey, "Control" }, "l", function() awful.tag.incmwfact( 0.05) end, { description = "grow master", group = "layout" }), awful.key({ modkey, "Shift" }, "l", function() awful.tag.incmwfact( 0.05) end, { description = "grow master", group = "layout" }),
-- Launching / layout -- Launching / layout
awful.key({ modkey }, "Return", function() awful.spawn(terminal) end, { description = "open a terminal", group = "launcher" }), awful.key({ modkey }, "Return", function() awful.spawn(terminal) end, { description = "open a terminal", group = "launcher" }),
@@ -46,8 +46,7 @@ M.globalkeys = gears.table.join(
awful.key({ modkey }, "b", function () awful.spawn("/home/jason/.local/bin/bookmarks") end, {description = "bookmarks", group = "internet"}), awful.key({ modkey }, "b", function () awful.spawn("/home/jason/.local/bin/bookmarks") end, {description = "bookmarks", group = "internet"}),
-- Awesome control -- Awesome control
awful.key({ modkey, "Shift" }, "r", awesome.restart, { description = "reload awesome", group = "awesome" }) awful.key({ modkey, "Control" }, "r", awesome.restart, { description = "reload awesome", group = "awesome" })
) )
-- Workspace keys 1..5: Alt+N view, Alt+Shift+N move client to tag -- Workspace keys 1..5: Alt+N view, Alt+Shift+N move client to tag
@@ -58,7 +57,8 @@ for i = 1, 5 do
local tag = screen.tags[i] local tag = screen.tags[i]
if tag then tag:view_only() end if tag then tag:view_only() end
end, { description = "view tag #" .. i, group = "tag" }), end, { description = "view tag #" .. i, group = "tag" }),
awful.key({ modkey, "Shift" }, "#" .. i + 9, function()
awful.key({ modkey, "Control" }, "#" .. i + 9, function()
if client.focus then if client.focus then
local tag = client.focus.screen.tags[i] local tag = client.focus.screen.tags[i]
if tag then client.focus:move_to_tag(tag) end if tag then client.focus:move_to_tag(tag) end
-7
View File
@@ -2,7 +2,6 @@ local gears = require("gears")
local beautiful = require("beautiful") local beautiful = require("beautiful")
local naughty = require("naughty") local naughty = require("naughty")
local colors = require("config.colors") local colors = require("config.colors")
local bling = require("bling")
beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
@@ -46,9 +45,3 @@ naughty.config.presets.critical = {
border_width = 3, font = "JetBrainsMono Nerd Font 11", timeout = 0, -- stays until dismissed border_width = 3, font = "JetBrainsMono Nerd Font 11", timeout = 0, -- stays until dismissed
} }
-- Wallpaper
bling.module.wallpaper.setup {
wallpaper = { "/home/jason/Pictures/Wallpapers/farewell.jpg" },
position = "fit",
background = "#181818",
}
+34
View File
@@ -81,4 +81,38 @@ function M.make_vol()
return w return w
end end
-- Brightness: click to toggle between night (default gamma) and day (boosted).
function M.make_brightness()
local OUTPUT = "HDMI-A-0"
local DAY_CMD = "xrandr --output " .. OUTPUT .. " --set CTM \"1.1,0,0,0,1.1,0,0,0,1.1\" --gamma 1.08:1.08:1.08"
local NIGHT_CMD = "xrandr --output " .. OUTPUT .. " --set CTM \"1,0,0,0,1,0,0,0,1\" --gamma 1.0:1.0:1.0"
local w = wibox.widget.textbox()
local is_day = true
local function render()
local icon = is_day and "" or ""
w.markup = string.format(
"<span font_family='JetBrainsMono Nerd Font' foreground='%s' font_size='x-large'>%s</span>",
colors.accent, icon
)
end
local function apply(day)
local cmd = day and DAY_CMD or NIGHT_CMD
awful.spawn.easy_async_with_shell(cmd, function()
is_day = day
render()
end)
end
w:buttons(gears.table.join(
awful.button({ }, 1, function() apply(not is_day) end)
))
apply(true)
return w
end
return M return M
+7
View File
@@ -4,6 +4,7 @@ local gears = require("gears")
local awful = require("awful") local awful = require("awful")
require("awful.autofocus") require("awful.autofocus")
local naughty = require("naughty") local naughty = require("naughty")
local bling = require("bling")
-- Global config -- Global config
modkey = "Mod1" -- Alt. Use "Mod4" for the Super/Windows key. modkey = "Mod1" -- Alt. Use "Mod4" for the Super/Windows key.
@@ -43,3 +44,9 @@ root.keys(keys.globalkeys)
awful.rules.rules = require("config.rules") awful.rules.rules = require("config.rules")
require("config.signals") require("config.signals")
-- Wallpaper
bling.module.wallpaper.setup {
wallpaper = { "/home/jason/Pictures/Wallpapers/farewell.jpg" },
position = "fit",
background = "#181818",
}
+1
View File
@@ -87,6 +87,7 @@ alias bat='bat --theme="ansi" --paging=never'
# Application shortcuts # Application shortcuts
alias vi='nvim' alias vi='nvim'
alias :q='exit' alias :q='exit'
alias lg='lazygit'
alias files='thunar .' alias files='thunar .'
alias fetch='pfetch' alias fetch='pfetch'
+3 -2
View File
@@ -46,7 +46,8 @@ vim.pack.add({
{ src = 'https://github.com/nvim-tree/nvim-tree.lua' }, { src = 'https://github.com/nvim-tree/nvim-tree.lua' },
{ src = 'https://github.com/romus204/tree-sitter-manager.nvim' }, { src = 'https://github.com/romus204/tree-sitter-manager.nvim' },
{ src = 'https://github.com/lukas-reineke/indent-blankline.nvim' }, { src = 'https://github.com/lukas-reineke/indent-blankline.nvim' },
{ src = 'https://github.com/slugbyte/lackluster.nvim' }, { src = 'https://github.com/rebelot/kanagawa.nvim' },
{ src = 'https://github.com/rose-pine/neovim' },
{ src = 'https://github.com/xiyaowong/transparent.nvim' }, { src = 'https://github.com/xiyaowong/transparent.nvim' },
}) })
@@ -58,7 +59,7 @@ require("ibl").setup({
indent = { char = "" }, indent = { char = "" },
scope = { show_start = false, show_end = false }, scope = { show_start = false, show_end = false },
}) })
vim.cmd.colorscheme('lackluster-night') vim.cmd.colorscheme('kanagawa')
vim.api.nvim_set_hl(0, "WinSeparator", { fg = "#54546D" }) vim.api.nvim_set_hl(0, "WinSeparator", { fg = "#54546D" })
-- Lsp specific, uses nvim-lspconfigs with the below -- Lsp specific, uses nvim-lspconfigs with the below