From 6b79aada9a05d223b6ea8f0b35efdd4dc43778d8 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 25 Apr 2023 14:13:44 -0500 Subject: [PATCH] Updates --- common/bin/nf | 2 ++ common/helix/config.toml | 1 + common/helix/languages.toml | 4 ++++ host/desktop/sway/config | 12 ++++++------ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/common/bin/nf b/common/bin/nf index 6e007b5..9eaef3f 100755 --- a/common/bin/nf +++ b/common/bin/nf @@ -2,4 +2,6 @@ SUBDIR="${2:-./}" mkdir -p "$NOTES_PATH/$SUBDIR" +cd "$NOTES_PATH/$SUBDIR" || exit 1 "$EDITOR" "$NOTES_PATH/$SUBDIR/$1" +cd - || exit 1 diff --git a/common/helix/config.toml b/common/helix/config.toml index bad6414..284b48b 100644 --- a/common/helix/config.toml +++ b/common/helix/config.toml @@ -41,6 +41,7 @@ Q = ":reflow 120" v = ":run-shell-command fish -c 'env > /tmp/env'" J = ":bp" K = ":bn" +C = ":bc" # O = ["select_textobject_inner WORD", ":pipe-to xargs xdg-open"] [keys.select] diff --git a/common/helix/languages.toml b/common/helix/languages.toml index 15b5926..c4545f2 100644 --- a/common/helix/languages.toml +++ b/common/helix/languages.toml @@ -77,6 +77,10 @@ language-server = { command = "nimlangserver" } indent = { tab-width = 2, unit = " " } auto-format = true +[[language]] +name = "html" +auto-format = false + [[grammar]] name = "nim" source = { git = "https://github.com/aMOPel/tree-sitter-nim", rev = "8ce3627827e45a5835004391ff5ffcfe029ae6cf" } \ No newline at end of file diff --git a/host/desktop/sway/config b/host/desktop/sway/config index b451dfa..6c33619 100644 --- a/host/desktop/sway/config +++ b/host/desktop/sway/config @@ -1,14 +1,14 @@ default_border pixel 1 -exec swayidle -w timeout 300 'notify-send "Idling in 30 seconds..."' timeout 330 'swaylock -f' timeout 360 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f' +exec swayidle -w timeout 600 'notify-send "Idling in 30 seconds..."' timeout 630 'swaylock -f' timeout 660 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f' output "Samsung Electric Company SyncMaster H1AK500000" position 0,0 -output "GIGA-BYTE TECHNOLOGY CO., LTD. AORUS FO48U 23070B000307" mode 3840x2160@120Hz position 0,0 +output "GIGA-BYTE TECHNOLOGY CO., LTD. AORUS FO48U 23070B000307" mode 3840x2160@120Hz position 1440,0 -output "Dell Inc. DELL U2720Q CWTM623" transform 90 scale 2.0 -output "Dell Inc. DELL U2720Q CWTM623" position -1080,0 +output "Dell Inc. DELL U2720Q CWTM623" transform 90 scale 1.5 +output "Dell Inc. DELL U2720Q CWTM623" position 0,0 -output "Dell Inc. DELL U2720Q D3TM623" transform 90 scale 2.0 -output "Dell Inc. DELL U2720Q D3TM623" position 3840,0 +output "Dell Inc. DELL U2720Q D3TM623" transform 90 scale 1.5 +output "Dell Inc. DELL U2720Q D3TM623" position 5280,0 exec firefox