This commit is contained in:
Never Gude 2026-02-24 16:16:27 +01:00
parent 33cb54e789
commit 225bb398f1
7 changed files with 498 additions and 468 deletions

View file

@ -53,7 +53,7 @@ if status is-interactive
set -U fish_color_status red set -U fish_color_status red
set -U fish_color_cancel white --bold set -U fish_color_cancel white --bold
set -U fish_pager_color_prefix normal --bold --underline set -U fish_pager_color_prefix normal --bold --underline
set -U fish_pager_color_progress normal --bold --reverse set -U fish_pager_color_progress normal --reverse
set -U fish_pager_color_completion normal set -U fish_pager_color_completion normal
set -U fish_pager_color_description yellow --italics set -U fish_pager_color_description yellow --italics
set -U fish_pager_color_selected_background --background brblue set -U fish_pager_color_selected_background --background brblue
@ -66,3 +66,11 @@ if status is-interactive
set -U fish_pager_color_selected_prefix black --bold --underline set -U fish_pager_color_selected_prefix black --bold --underline
set -U fish_pager_color_secondary_completion set -U fish_pager_color_secondary_completion
end end
if test $XDG_CURRENT_DESKTOP = niri
dconf write /org/gnome/desktop/wm/preferences/button-layout "'appmenu'"
else
dconf reset /org/gnome/desktop/wm/preferences/button-layout
end

View file

@ -35,7 +35,7 @@ SETUVAR fish_pager_color_background:\x1d
SETUVAR fish_pager_color_completion:normal SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:yellow\x1e\x2d\x2ditalics SETUVAR fish_pager_color_description:yellow\x1e\x2d\x2ditalics
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:normal\x1e\x2d\x2dbold\x1e\x2d\x2dreverse SETUVAR fish_pager_color_progress:normal\x1e\x2d\x2dreverse
SETUVAR fish_pager_color_secondary_background:\x1d SETUVAR fish_pager_color_secondary_background:\x1d
SETUVAR fish_pager_color_secondary_completion:\x1d SETUVAR fish_pager_color_secondary_completion:\x1d
SETUVAR fish_pager_color_secondary_description:\x1d SETUVAR fish_pager_color_secondary_description:\x1d

View file

@ -113,19 +113,18 @@ vim.pack.add({ "https://github.com/nvim-treesitter/nvim-treesitter" })
require("nvim-treesitter").setup() require("nvim-treesitter").setup()
vim.api.nvim_create_autocmd('FileType', { vim.api.nvim_create_autocmd('FileType', {
pattern = { "lua", "tex", "c", "java", "ocaml", "fish" }, pattern = {'<filetype>', 'tex'},
callback = function() callback = function()
-- syntax highlighting, provided by Neovim
vim.treesitter.start() vim.treesitter.start()
end, end,
}) })
-- See `:h lsp-quickstart` for more details.
vim.pack.add({ "https://github.com/mason-org/mason.nvim" }) vim.pack.add({ "https://github.com/mason-org/mason.nvim" })
require("mason").setup() require("mason").setup()
vim.lsp.enable({ 'lua_ls', 'texlab', 'clangd', 'jdtls', 'ocaml-lsp', 'fish-lsp' }) vim.lsp.enable({ 'lua_ls', 'texlab', 'clangd', 'jdtls', 'fish_lsp', 'html', 'cssls', 'lemminx' })
vim.keymap.set('n', '<leader>lf', vim.lsp.buf.format, vim.keymap.set('n', '<leader>lf', vim.lsp.buf.format,
{ desc = 'Formats a buffer using the attached language server clients' }) { desc = 'Formats a buffer using the attached language server clients' })
@ -282,6 +281,9 @@ clue.setup({
-- `z` key -- `z` key
{ mode = { "n", "x" }, keys = "z" }, { mode = { "n", "x" }, keys = "z" },
-- `i/a` key
{ mode = { "n", "x" }, keys = "i" },
}, },
clues = { clues = {

View file

@ -56,6 +56,10 @@ button:hover {
background-color: #9b0000; background-color: #9b0000;
} }
.mark {
background-color: #505050;
}
#mode, #mode,
#clock, #clock,
#battery, #battery,

View file

@ -1,2 +1,3 @@
[preferred] [preferred]
default=gnome;gtk default=gnome;gtk
org.freedesktop.impl.portal.Secret=gnome-keyring

View file

@ -108,7 +108,19 @@ function bluetooth_connection
notify-send "Connect to bluetooth device $names[$input]" (bluetoothctl connect $ids[$input] | string collect) notify-send "Connect to bluetooth device $names[$input]" (bluetoothctl connect $ids[$input] | string collect)
end end
set options "󱂵 Open Location" "󰑴 Open WueCampus Course" "󰍬 Select Audio Source" "󰕾 Select Audio Sink" "󰂯 Select Bluetooth" "󰛳 Select Network" function color_scheme
set options "Light" "Dark"
set input (menu $options)
switch $input
case $options[1]
dconf write /org/gnome/desktop/interface/color-scheme \'prefer-light\'
case $options[2]
dconf write /org/gnome/desktop/interface/color-scheme \'prefer-dark\'
end
end
set options "󱂵 Open Location" "󰑴 Open WueCampus Course" "󰍬 Select Audio Source" "󰕾 Select Audio Sink" "󰂯 Select Bluetooth" "󰛳 Select Network" "󰔎 Color Scheme"
set input (menu $options) set input (menu $options)
switch $input switch $input
@ -129,4 +141,7 @@ switch $input
case $options[6] case $options[6]
network_connection network_connection
case $options[7]
color_scheme
end end