From a0d36ed6a666c14c0d92ce2732e23289771778f4 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Fri, 7 Jun 2024 08:42:31 +0200 Subject: update --- mut/bin/setbg | 7 ++++++- mut/neovim/fnl/conf/events.fnl | 14 +++++++------- mut/neovim/fnl/conf/settings.fnl | 10 +++++----- profiles/core/configuration.nix | 1 + profiles/station/packages.nix | 2 ++ profiles/station/suckless.nix | 1 - 6 files changed, 21 insertions(+), 14 deletions(-) diff --git a/mut/bin/setbg b/mut/bin/setbg index 451ec91..accfe7d 100755 --- a/mut/bin/setbg +++ b/mut/bin/setbg @@ -10,5 +10,10 @@ if [ $reload -eq 1 ]; then # (cat ~/.cache/wal/sequences &) wal -R else - sxiv -tob ~/bg | parallel wal -i + if [ -z "$1" ]; then + sxiv -tob ~/bg | parallel wal -i + else + wal -i "$1" + fi + kill -HUP "$(pidof dwm)" fi diff --git a/mut/neovim/fnl/conf/events.fnl b/mut/neovim/fnl/conf/events.fnl index dcc73a2..a2c9e68 100644 --- a/mut/neovim/fnl/conf/events.fnl +++ b/mut/neovim/fnl/conf/events.fnl @@ -63,13 +63,13 @@ (lint.try_lint) (vim.schedule #(vim.diagnostic.setloclist {:open false})))}) -(event - [:BufEnter] - {:group "conf#events" - :callback - #(do (var dir (vim.fn.fnamemodify (vim.fn.expand "%") ":h")) - (if (vim.startswith dir "oil://") (set dir (dir:sub (+ 1 (length "oil://"))))) - (vim.cmd (.. "silent !lf -remote \"send cd '" dir "'\"")))}) +;; (event +;; [:BufEnter] +;; {:group "conf#events" +;; :callback +;; #(do (var dir (vim.fn.fnamemodify (vim.fn.expand "%") ":h")) +;; (if (vim.startswith dir "oil://") (set dir (dir:sub (+ 1 (length "oil://"))))) +;; (vim.cmd (.. "silent !lf -remote \"send cd '" dir "'\"")))}) (local session-file (.. vim.env.HOME "/.vimsession.vim")) diff --git a/mut/neovim/fnl/conf/settings.fnl b/mut/neovim/fnl/conf/settings.fnl index 1fbed85..f6abcf1 100644 --- a/mut/neovim/fnl/conf/settings.fnl +++ b/mut/neovim/fnl/conf/settings.fnl @@ -4,19 +4,19 @@ codeium_enabled false loaded_2html_plugin true loaded_fzf false - loaded_man false - loaded_gzip false + ;; loaded_man true + ;; loaded_gzip true loaded_health false loaded_matchit false loaded_matchparen false loaded_netrwPlugin false loaded_rplugin false loaded_shada false - loaded_spellfile false - loaded_tarPlugin false + ;; loaded_spellfile true + ;; loaded_tarPlugin true loaded_tohtml false loaded_tutor false - loaded_zipPlugin false + ;; loaded_zipPlugin true zoxide_use_select true zoxide_hook "pwd" diff --git a/profiles/core/configuration.nix b/profiles/core/configuration.nix index c381650..7b4fec3 100644 --- a/profiles/core/configuration.nix +++ b/profiles/core/configuration.nix @@ -69,6 +69,7 @@ bat openpomodoro-cli coreutils + killall ] ++ (optionals (!machine.isDarwin) [ man-pages man-pages-posix diff --git a/profiles/station/packages.nix b/profiles/station/packages.nix index 0124979..ec70d43 100644 --- a/profiles/station/packages.nix +++ b/profiles/station/packages.nix @@ -20,6 +20,8 @@ gke-gcloud-auth-plugin ])) imagemagick + poppler_utils + inkscape ] ++ (optionals (!machine.isDarwin) [ arduino-ide arduino-cli diff --git a/profiles/station/suckless.nix b/profiles/station/suckless.nix index 33949c1..5d1b8c0 100644 --- a/profiles/station/suckless.nix +++ b/profiles/station/suckless.nix @@ -15,7 +15,6 @@ [ -z "$(lsusb | grep microdox)" ] && ${pkgs.xorg.setxkbmap}/bin/setxkbmap -option "ctrl:swapcaps" wal -R dwm - dwmblocks & ''; }; services.picom = { -- cgit v1.2.3