Various changes

awesome
- Change font of top bar
- Fix indentation
bin
- start-tuis.sh
neovim
- Some new plugins
newsboat
- Remove nitter items
zsh
- Minor tweaks
This commit is contained in:
Adam Cooper 2024-07-27 00:58:33 -04:00
parent 952d12d560
commit b49716c6f1
10 changed files with 235 additions and 196 deletions

View file

@ -11,7 +11,7 @@ local themes_path = gfs.get_themes_dir()
local theme = {}
theme.font = "Liberation Sans 8"
theme.font = "Fantasque Sans Mono 8"
theme.bg_normal = "#222222"
theme.bg_focus = "#535d6c"

View file

@ -104,8 +104,8 @@ myawesomemenu = {
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", terminal() }
}
})
}
})
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
@ -137,7 +137,7 @@ local taglist_buttons = gears.table.join(
end),
awful.button({ }, 4, function(t) awful.tag.viewnext(t.screen) end),
awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
)
)
local tasklist_buttons = gears.table.join(
awful.button({ }, 1, function (c)
@ -200,13 +200,26 @@ screen.connect_signal("property::geometry", set_wallpaper)
local mymem = lain.widget.mem {
settings = function()
widget:set_markup(" mem " .. mem_now.perc .. " swp " .. math.floor((mem_now.swapused / mem_now.swap) * 100))
local mem_spacer = ""
local swp_spacer = ""
local swp_display = math.floor((mem_now.swapused / mem_now.swap) * 100)
if mem_now.perc < 10 then
mem_spacer = " "
end
if swp_display < 10 then
swp_spacer = " "
end
widget:set_markup(" mem " .. mem_spacer .. mem_now.perc .. " swp " .. swp_spacer .. swp_display .. " ")
end
}
local mycpu = lain.widget.cpu {
settings = function()
widget:set_markup(" cpu " .. cpu_now.usage)
local cpu_spacer = ""
if cpu_now.usage < 10 then
cpu_spacer = " "
end
widget:set_markup(" cpu " .. cpu_spacer .. cpu_now.usage)
end
}

View file

@ -4,6 +4,6 @@
#
# Convenience script to start up my usual TUIs
alacritty msg create-window --title joplin --command $NVM_BIN/joplin
alacritty msg create-window --title joplin --command /home/adam/.config/nvm/versions/node/v20.11.1/bin/joplin
alacritty msg create-window --title newsboat --command newsboat
alacritty msg create-window --title aerc --command aerc

2
bin/zoom-scaled.sh Executable file
View file

@ -0,0 +1,2 @@
#! /bin/bash
QT_SCALE_FACTOR=0.8 /usr/bin/zoom &

View file

@ -107,6 +107,7 @@ require("lazy").setup({
},
"nvim-lualine/lualine.nvim",
"nvim-tree/nvim-web-devicons",
{ "echasnovski/mini.nvim", version = false },
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
"neovim/nvim-lspconfig",
{
@ -128,10 +129,19 @@ require("lazy").setup({
vim.o.timeoutlen = 300 -- 0? 500? 300?
end,
opts = {
window = {
win = {
border = "single",
},
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
},
{
"ray-x/lsp_signature.nvim",
@ -396,6 +406,17 @@ require("lazy").setup({
{ "kovisoft/paredit" },
--{ "monkoose/parsley", event = "VeryLazy" },
{ "monkoose/nvlime", ft = { "lisp" }, dependencies = { "monkoose/parsley" } },
{
'MeanderingProgrammer/markdown.nvim',
-- name = 'render-markdown', -- Only needed if you have another plugin named markdown.nvim
dependencies = {
'nvim-treesitter/nvim-treesitter', -- Mandatory
'nvim-tree/nvim-web-devicons', -- Optional but recommended
},
config = function()
require('render-markdown').setup({})
end,
},
})
--[[ mason
@ -768,6 +789,8 @@ require('nvim-treesitter.configs').setup({
vim.treesitter.language.register("html", "handlebars")
require('mini.icons').setup()
-- Tweak GitSigns blame color
-- This differentiates the cursorline from the git blame text
vim.cmd("highlight GitSignsCurrentLineBlame gui=bold guifg=#339944")

View file

@ -28,7 +28,6 @@ color listfocus_unread color238 color47 standout
color info color141 color236
confirm-exit yes
define-filter "nitter feeds" "tags !# \"nitter_personal\" and tags !# \"nitter_institutional\" and tags !# \"nitter_noise\""
feed-sort-order firsttag
# Dracula highlights
@ -44,7 +43,7 @@ highlight article ":.*\\(image\\)$" blue default
highlight article ":.*\\(embedded flash\\)$" magenta default
keep-articles-days 45
macro p set browser "mpv --player-operation-mode=pseudo-gui -- %u &"; one; set browser w3m
macro p set browser "mpv --player-operation-mode=pseudo-gui -- %u &"; one; set browser w3m -- "Play media file in mpv"
max-items 4096
notify-program "/usr/bin/notify-send"
urls-source "freshrss"

1
newsboat/.newsboat/queue Normal file
View file

@ -0,0 +1 @@
https://s.france24.com/media/display/1b3b9962-45d6-11ef-856d-005056a90284/w:1024/p:16x9/2024-07-12T013153Z_1056985909_RC26T8AZ5PZ7_RTRMADP_3_NATO-SUMMIT-BIDEN.JPG "/home/adam/2024-07-12T013153Z_1056985909_RC26T8AZ5PZ7_RTRMADP_3_NATO-SUMMIT-BIDEN.JPG"

View file

@ -1,7 +1,4 @@
"query:miscellany Articles:tags # \"miscellany\""
"query:nitter_personal Articles:tags # \"nitter_personal\""
"query:nitter_institutional Articles:tags # \"nitter_institutional\""
"query:nitter_noise Articles:tags # \"nitter_noise\""
"query:nuggets Articles:tags # \"nuggets\""
"query:podcasts Articles:tags # \"podcasts\""
"query:release_notes Articles:tags # \"release_notes\""

View file

@ -2,6 +2,7 @@
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.config/local/share"
export XDG_CACHE_HOME="$HOME/.config/cache"
export XDG_STATE_HOME="$HOME/.config/local/state"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export HISTSIZE=9998

View file

@ -140,6 +140,9 @@ source /home/adam/.config/broot/launcher/bash/br
# tea
PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/adam/.config/tea/autocomplete.zsh"
# leetcode
eval "$(leetcode completions)"
# ripgrep-all
rga-fzf() {
RG_PREFIX="rga --files-with-matches"