From c945a6c4e5d47ef5756c110b846e6502783718a5 Mon Sep 17 00:00:00 2001 From: Liam Malone Date: Wed, 22 May 2024 13:15:07 +0100 Subject: [PATCH] . --- hosts/default/home.nix | 3 ++- modules/desktop/hyprland.nix | 5 ++++ modules/home-manager/nixvim.nix | 32 ++++++++++++++++++++++++ modules/old_configs/emacs/eshell/profile | 1 - modules/old_configs/waybar/config.jsonc | 2 +- 5 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 modules/home-manager/nixvim.nix diff --git a/hosts/default/home.nix b/hosts/default/home.nix index ccf54d9..2c72275 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -52,7 +52,7 @@ libreoffice minecraft mpv - neofetch + fastfetch networkmanagerapplet openvpn pamixer @@ -61,6 +61,7 @@ powertop praat prismlauncher + qbittorrent signal-desktop swayidle swww diff --git a/modules/desktop/hyprland.nix b/modules/desktop/hyprland.nix index e982bab..2841208 100644 --- a/modules/desktop/hyprland.nix +++ b/modules/desktop/hyprland.nix @@ -46,6 +46,10 @@ "HYPRCURSOR_THEME,${config.gtk.cursorTheme.name}" "HYPRCURSOR_SIZE,24" "WLR_NO_HARDWARE_CURSORS,1" + "XDG_CURRENT_DESKTOP,Hyprland" + "XDG_SESSION_TYPE,wayland" + "XDG_SESSION_DESKTOP,Hyprland" + "QT_QPA_PLATFORM,Hyprland" ]; input = { kb_layout = "us"; @@ -136,6 +140,7 @@ "idleinhibit focus, ^(Emacs)$" "idleinhibit focus, ^(discord)$" "idleinhibit focus, ^(Discord)$" + "idleinhibit focus, ^(spotify)$" "float, polkit-kde-authentication-agent-1" "float, ^(praat)$" "float, ^(network)$" diff --git a/modules/home-manager/nixvim.nix b/modules/home-manager/nixvim.nix new file mode 100644 index 0000000..5cd1826 --- /dev/null +++ b/modules/home-manager/nixvim.nix @@ -0,0 +1,32 @@ +{ pkgs, ... }: + +{ + programs.neovim = { + enable = true; + package = pkgs.neovim-unwrapped; + vimAlias = true; + vimdiffAlias = true; + + plugins = with pkgs; [ + vimPlugins.rose-pine + vimPlugins.telescope-nvim + vimPlugins.nvim-treesitter + vimPlugins.nvim-treesitter-context + vimPlugins.plenary-nvim + vimPlugins.undotree + vimPlugins.harpoon + vimPlugins.lualine-nvim + vimPlugins.vim-fugitive + vimPlugins.lsp-zero-nvim + vimPlugins.nvim-lspconfig + vimPlugins.nvim-cmp + vimPlugins.cmp-path + vimPlugins.cmp-buffer + vimPlugins.cmp_luasnip + vimPlugins.cmp-nvim-lsp + vimPlugins.cmp-nvim-lua + vimPlugins.luasnip + vimPlugins.friendly-snippets + ]; + }; +} diff --git a/modules/old_configs/emacs/eshell/profile b/modules/old_configs/emacs/eshell/profile index bf8804f..e69de29 100644 --- a/modules/old_configs/emacs/eshell/profile +++ b/modules/old_configs/emacs/eshell/profile @@ -1 +0,0 @@ -neofetch \ No newline at end of file diff --git a/modules/old_configs/waybar/config.jsonc b/modules/old_configs/waybar/config.jsonc index dcc53dc..855cd45 100644 --- a/modules/old_configs/waybar/config.jsonc +++ b/modules/old_configs/waybar/config.jsonc @@ -168,7 +168,7 @@ }, "custom/wofi" : { "format": "", - "on-click": "wofi --show drun", + "on-click": "pkill wofi || wofi --show drun", "tooltip": false }, "cpu": {