From 11fc0f67bfeae93c4e3b2bb699aa8efa2f3f5f44 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 28 May 2023 00:40:40 +0200 Subject: [PATCH] Dunst and typst --- dotfiles/neovim/ftplugin/typst.lua | 1 + home/adrielus/features/cli/fish/config.fish | 4 ++++ home/adrielus/features/desktop/common/dunst.nix | 5 +++++ home/adrielus/features/desktop/common/wayland.nix | 6 ++++-- 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 dotfiles/neovim/ftplugin/typst.lua create mode 100644 home/adrielus/features/desktop/common/dunst.nix diff --git a/dotfiles/neovim/ftplugin/typst.lua b/dotfiles/neovim/ftplugin/typst.lua new file mode 100644 index 0000000..a415322 --- /dev/null +++ b/dotfiles/neovim/ftplugin/typst.lua @@ -0,0 +1 @@ +require("my.helpers.wrapMovement").setup() diff --git a/home/adrielus/features/cli/fish/config.fish b/home/adrielus/features/cli/fish/config.fish index 5df3751..4eb72a8 100644 --- a/home/adrielus/features/cli/fish/config.fish +++ b/home/adrielus/features/cli/fish/config.fish @@ -30,6 +30,10 @@ function fish_user_key_bindings bind -M default \cx "clear && commandline -f repaint" bind -M insert \cx "clear && commandline -f repaint" # }}} + # {{{ C-enter to run command through less + bind -M default \e\[13\;2u "commandline -a ' | less' && commandline -f execute" + bind -M insert \e\[13\;2u "commandline -a ' | less' && commandline -f execute" + # }}} # {{{ C-g to open neogit bind -M default \cg "nvim +Neogit" bind -M insert \cg "nvim +Neogit" diff --git a/home/adrielus/features/desktop/common/dunst.nix b/home/adrielus/features/desktop/common/dunst.nix new file mode 100644 index 0000000..917f125 --- /dev/null +++ b/home/adrielus/features/desktop/common/dunst.nix @@ -0,0 +1,5 @@ +{ + services.dunst = { + enable = true; + }; +} diff --git a/home/adrielus/features/desktop/common/wayland.nix b/home/adrielus/features/desktop/common/wayland.nix index fc79bc6..49a631d 100644 --- a/home/adrielus/features/desktop/common/wayland.nix +++ b/home/adrielus/features/desktop/common/wayland.nix @@ -1,6 +1,7 @@ # Common wayland stuff { lib, pkgs, upkgs, ... }: { imports = [ ../common/wofi.nix ]; + # Makes some stuff run on wayland (?) # Taken from [here](https://github.com/fufexan/dotfiles/blob/3b0075fa7a5d38de13c8c32140c4b020b6b32761/home/wayland/default.nix#L14) # TODO: ask author what those do @@ -11,6 +12,8 @@ # }; # TODO: set up + # - wallpaper + # - notification daemon # - screen recording # - volume/backlight controls # - eww bar @@ -18,13 +21,12 @@ # - look into swaylock or whatever people use # - look into greetd or something # - multiple keyboard layouts - # - wallpaper - # - notification daemon home.packages = let _ = lib.getExe; + # TODO: put this in it's own file perhaps? # Taken from [here](https://github.com/fufexan/dotfiles/blob/3b0075fa7a5d38de13c8c32140c4b020b6b32761/home/wayland/default.nix#L14) wl-ocr = pkgs.writeShellScriptBin "wl-ocr" '' ${_ pkgs.grim} -g "$(${_ pkgs.slurp})" -t ppm - \