summaryrefslogtreecommitdiff
path: root/mut
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2024-10-12 17:15:08 +0000
committerMike Vink <ivi@vinkies.net>2024-10-12 17:15:08 +0000
commitf26c55d5bea46e0b4c0bed3ef3a1258b1b9e82dc (patch)
tree4a0f2284ae05771568efe2dbc323233c10f444bd /mut
parent7134976e1bd1ab8f6f0a85e9efe23b85f0d54250 (diff)
update
Diffstat (limited to 'mut')
-rwxr-xr-xmut/bin/oath2
-rwxr-xr-xmut/bin/pioctl8
-rwxr-xr-xmut/bin/recordwin9
-rw-r--r--mut/dwm/config.h2
l---------mut/lf/icons1
-rw-r--r--mut/neovim/fnl/conf/init.fnl16
-rw-r--r--mut/neovim/fnl/conf/pkgs/lint.fnl3
-rw-r--r--mut/neovim/fnl/conf/pkgs/lspconfig.fnl2
8 files changed, 24 insertions, 19 deletions
diff --git a/mut/bin/oath b/mut/bin/oath
new file mode 100755
index 0000000..0173a2d
--- /dev/null
+++ b/mut/bin/oath
@@ -0,0 +1,2 @@
+#!/bin/sh
+nix-shell -p yubikey-manager --run 'ykman oath accounts code --single Pionative:mike@pionative.com' | xclip -f | xclip -sel c -f
diff --git a/mut/bin/pioctl b/mut/bin/pioctl
deleted file mode 100755
index 8bb9798..0000000
--- a/mut/bin/pioctl
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/home/ivi/Programming/Pionative/quickstart/venv/bin/python
-# -*- coding: utf-8 -*-
-import re
-import sys
-from pioctl import cli
-if __name__ == '__main__':
- sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
- sys.exit(cli())
diff --git a/mut/bin/recordwin b/mut/bin/recordwin
new file mode 100755
index 0000000..bb48104
--- /dev/null
+++ b/mut/bin/recordwin
@@ -0,0 +1,9 @@
+#!/bin/sh
+if pidof ffmpeg; then
+ notify-send ffmpeg "killing current recording"
+ pkill --signal=TERM ffmpeg
+else
+ notify-send ffmpeg "Start recording"
+ ffmpeg -f x11grab $(xdotool getwindowfocus getwindowgeometry | tr '\n' ' ' | gawk '{print "-video_size " $8 " -i +"$4 }') -y ~/recording.webm
+ notify-send ffmpeg "saved recording to ~/recording.webm"
+fi
diff --git a/mut/dwm/config.h b/mut/dwm/config.h
index 374654a..49d70dc 100644
--- a/mut/dwm/config.h
+++ b/mut/dwm/config.h
@@ -3,7 +3,7 @@
/* Constants */
#define TERMINAL "st"
#define TERMCLASS "St"
-#define BROWSER "librewolf"
+#define BROWSER "chromium"
/* appearance */
static unsigned int borderpx = 3; /* border pixel of windows */
diff --git a/mut/lf/icons b/mut/lf/icons
new file mode 120000
index 0000000..5cc9ec7
--- /dev/null
+++ b/mut/lf/icons
@@ -0,0 +1 @@
+/nix/store/yqz5fj6agapq9h3dd7dy39qgpzh8njz9-home-manager-files/.config/lf/icons \ No newline at end of file
diff --git a/mut/neovim/fnl/conf/init.fnl b/mut/neovim/fnl/conf/init.fnl
index 840924f..28cb1f0 100644
--- a/mut/neovim/fnl/conf/init.fnl
+++ b/mut/neovim/fnl/conf/init.fnl
@@ -62,14 +62,14 @@
(local commenter (require :nvim_comment))
(commenter.setup)
-(local cinnamon (require :cinnamon))
-(cinnamon.setup {
- :extra_keymaps true
- :override_keymaps true
- :max_length 200
- :horizontal_scroll false
- :default_delay 7
- :scroll_limit -1})
+; (local cinnamon (require :cinnamon))
+; (cinnamon.setup {
+; :extra_keymaps true
+; :override_keymaps true
+; :max_length 200
+; :horizontal_scroll false
+; :default_delay 7
+; :scroll_limit -1})
(fn i-grep [word file]
diff --git a/mut/neovim/fnl/conf/pkgs/lint.fnl b/mut/neovim/fnl/conf/pkgs/lint.fnl
index ffd517b..d9a3c13 100644
--- a/mut/neovim/fnl/conf/pkgs/lint.fnl
+++ b/mut/neovim/fnl/conf/pkgs/lint.fnl
@@ -16,7 +16,8 @@
{:formatters_by_ft
{:python [:ruff_format :isort]
:go [:goimports]
- :terraform [:terraform_fmt]}
+ :terraform [:terraform_fmt]
+ :hcl [:terraform_fmt]}
:format_on_save
{:timeout_ms 500
:lsp_fallback false}})
diff --git a/mut/neovim/fnl/conf/pkgs/lspconfig.fnl b/mut/neovim/fnl/conf/pkgs/lspconfig.fnl
index 98dda2c..d1121f2 100644
--- a/mut/neovim/fnl/conf/pkgs/lspconfig.fnl
+++ b/mut/neovim/fnl/conf/pkgs/lspconfig.fnl
@@ -23,7 +23,7 @@
:settings
{:venvPath (.. (vim.fn.getcwd) :.venv)}})
-(lspconfig.tsserver.setup
+(lspconfig.ts_ls.setup
{:root_dir
(lspconfig.util.root_pattern
:.git