From d7863ed0106fd8d3a7416ccbef937f57996ad85f Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Fri, 3 Jul 2026 09:28:42 +0200 Subject: [PATCH] Its just dotfiles... --- config/alacritty/alacritty.toml | 43 ++++++++++++++++++++++--------- config/awesome/config/bar.lua | 2 ++ config/awesome/config/keys.lua | 18 ++++++------- config/awesome/config/theme.lua | 7 ----- config/awesome/config/widgets.lua | 34 ++++++++++++++++++++++++ config/awesome/rc.lua | 7 +++++ config/fish/config.fish | 1 + config/nvim/init.lua | 5 ++-- 8 files changed, 87 insertions(+), 30 deletions(-) diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml index 478a4d1..0eb2228 100644 --- a/config/alacritty/alacritty.toml +++ b/config/alacritty/alacritty.toml @@ -14,20 +14,39 @@ padding.y = 10 style.shape = "Beam" style.blinking = "Always" -# LACKLUSTER COLORS +# Kanagawa Wave Alacritty Colors [colors.primary] background = '#101010' +foreground = '#dcd7ba' [colors.normal] -# black is gray0 -black = '#111111' -red = '#C11F1F' -green = '#789978' -yellow = '#ffAA88' -blue = '#7788AA' -magenta = '#BD61A3' -# cyan is set to lack -cyan = '#708090' -# white is set to luster -white = '#DEEEED' +black = '#090618' +red = '#c34043' +green = '#76946a' +yellow = '#c0a36e' +blue = '#7e9cd8' +magenta = '#957fb8' +cyan = '#6a9589' +white = '#c8c093' +[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' diff --git a/config/awesome/config/bar.lua b/config/awesome/config/bar.lua index ea17b1f..f304816 100644 --- a/config/awesome/config/bar.lua +++ b/config/awesome/config/bar.lua @@ -47,12 +47,14 @@ function M.setup() -- Per-screen monitor widgets (created here so multi-monitor stays valid) local title = widgets.make_title() local vol = widgets.make_vol() + local brightness = widgets.make_brightness() local cpu = widgets.make_cpu() local clock = wibox.widget.textclock("%Y-%m-%d %H:%M") local right = wibox.layout.fixed.horizontal() local function push(w) right:add(widgets.padded(w, 4, 4)) end push(wibox.widget.systray()); right:add(widgets.sep()) + push(brightness); push(vol); right:add(widgets.sep()) push(cpu); right:add(widgets.sep()) push(clock); right:add(widgets.sep()) diff --git a/config/awesome/config/keys.lua b/config/awesome/config/keys.lua index 6955dc7..13ffd53 100644 --- a/config/awesome/config/keys.lua +++ b/config/awesome/config/keys.lua @@ -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" }), -- 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, "Shift" }, "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, "Shift" }, "l", function() awful.client.swap.bydirection("right") end, { description = "move right", group = "client" }), + awful.key({ modkey, "Control" }, "h", function() awful.client.swap.bydirection("left") end, { description = "move left", group = "client" }), + awful.key({ modkey, "Control" }, "j", function() awful.client.swap.bydirection("down") end, { description = "move down", group = "client" }), + awful.key({ modkey, "Control" }, "k", function() awful.client.swap.bydirection("up") end, { description = "move up", group = "client" }), + awful.key({ modkey, "Control" }, "l", function() awful.client.swap.bydirection("right") end, { description = "move right", group = "client" }), -- 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, "Control" }, "l", function() awful.tag.incmwfact( 0.05) end, { description = "grow master", group = "layout" }), + awful.key({ modkey, "Shift" }, "h", function() awful.tag.incmwfact(-0.05) end, { description = "shrink master", group = "layout" }), + awful.key({ modkey, "Shift" }, "l", function() awful.tag.incmwfact( 0.05) end, { description = "grow master", group = "layout" }), -- Launching / layout 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"}), -- 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 @@ -58,7 +57,8 @@ for i = 1, 5 do local tag = screen.tags[i] if tag then tag:view_only() end 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 local tag = client.focus.screen.tags[i] if tag then client.focus:move_to_tag(tag) end diff --git a/config/awesome/config/theme.lua b/config/awesome/config/theme.lua index 0e6f07e..3d5164f 100644 --- a/config/awesome/config/theme.lua +++ b/config/awesome/config/theme.lua @@ -2,7 +2,6 @@ local gears = require("gears") local beautiful = require("beautiful") local naughty = require("naughty") local colors = require("config.colors") -local bling = require("bling") 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 } --- Wallpaper -bling.module.wallpaper.setup { - wallpaper = { "/home/jason/Pictures/Wallpapers/farewell.jpg" }, - position = "fit", - background = "#181818", -} diff --git a/config/awesome/config/widgets.lua b/config/awesome/config/widgets.lua index dcb9f55..c587122 100644 --- a/config/awesome/config/widgets.lua +++ b/config/awesome/config/widgets.lua @@ -81,4 +81,38 @@ function M.make_vol() return w 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( + "%s", + 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 diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index c990a62..f6f3b89 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -4,6 +4,7 @@ local gears = require("gears") local awful = require("awful") require("awful.autofocus") local naughty = require("naughty") +local bling = require("bling") -- Global config modkey = "Mod1" -- Alt. Use "Mod4" for the Super/Windows key. @@ -43,3 +44,9 @@ root.keys(keys.globalkeys) awful.rules.rules = require("config.rules") require("config.signals") +-- Wallpaper +bling.module.wallpaper.setup { + wallpaper = { "/home/jason/Pictures/Wallpapers/farewell.jpg" }, + position = "fit", + background = "#181818", +} diff --git a/config/fish/config.fish b/config/fish/config.fish index 9521cd4..cff077d 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -87,6 +87,7 @@ alias bat='bat --theme="ansi" --paging=never' # Application shortcuts alias vi='nvim' alias :q='exit' +alias lg='lazygit' alias files='thunar .' alias fetch='pfetch' diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 0de6bf2..9334104 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -46,7 +46,8 @@ vim.pack.add({ { src = 'https://github.com/nvim-tree/nvim-tree.lua' }, { src = 'https://github.com/romus204/tree-sitter-manager.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' }, }) @@ -58,7 +59,7 @@ require("ibl").setup({ indent = { char = "│" }, 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" }) -- Lsp specific, uses nvim-lspconfigs with the below