From 920e312a24b8b9ef4907652dc6e994a8cee493b3 Mon Sep 17 00:00:00 2001 From: xqtc161 Date: Fri, 3 May 2024 10:08:16 +0200 Subject: [PATCH] Some firefox and sway stuff --- home/config-files/nvim/init.lua | 2 +- home/config-files/wezterm.lua | 4 +- home/modules/firefox.nix | 55 +++++++++++++++++++++++++++ home/modules/home-pkgs.nix | 2 +- home/modules/nixvim.nix | 7 ++++ hosts/x86_64-linux/lilith/default.nix | 7 ++-- 6 files changed, 70 insertions(+), 7 deletions(-) diff --git a/home/config-files/nvim/init.lua b/home/config-files/nvim/init.lua index 615092c..0963cb7 100644 --- a/home/config-files/nvim/init.lua +++ b/home/config-files/nvim/init.lua @@ -27,7 +27,7 @@ if vim.g.neovide then vim.g.neovide_cursor_vfx_mode = "ripple" vim.g.neovide_cursor_vfx_particle_density = 30.0 - vim.g.neovide_transparency = 1.0 + vim.g.neovide_transparency = .8 local font_name = "Hack Nerd Font Mono:h" local font_size = 20 diff --git a/home/config-files/wezterm.lua b/home/config-files/wezterm.lua index 24dad2e..fece8bb 100644 --- a/home/config-files/wezterm.lua +++ b/home/config-files/wezterm.lua @@ -14,7 +14,7 @@ if getHostname() == "lilith" then else config.font_size = 11 end -config.window_background_opacity = 1 +config.window_background_opacity = .8 config.keys = { { key = 't', @@ -117,7 +117,7 @@ end) config.hide_tab_bar_if_only_one_tab = false config.use_fancy_tab_bar = false -config.text_background_opacity = 1 +config.text_background_opacity = 0.3 config.enable_scroll_bar = false config.enable_tab_bar = true config.tab_bar_at_bottom = true diff --git a/home/modules/firefox.nix b/home/modules/firefox.nix index 22ad608..259d10c 100644 --- a/home/modules/firefox.nix +++ b/home/modules/firefox.nix @@ -110,6 +110,61 @@ with inputs; { definedAliases = ["@nw"]; }; + "Reddit" = { + urls = [ + { + template = "https://reddit.com/r/{searchTerms}"; + } + ]; + iconUpdateURL = "https://reddit.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = ["@r"]; + }; + + "Github Repos" = { + urls = [ + { + template = "https://github.com/search?q={searchTerms}&type=repositories"; + } + ]; + iconUpdateURL = "https://github.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = ["@ghr"]; + }; + + "Github Code" = { + urls = [ + { + template = "https://github.com/search?q={searchTerms}&type=code"; + } + ]; + iconUpdateURL = "https://github.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = ["@ghc"]; + }; + + "Github PRs" = { + urls = [ + { + template = "https://github.com/search?q={searchTerms}&type=pullrequests"; + } + ]; + iconUpdateURL = "https://github.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = ["@ghpr"]; + }; + + "Github Users" = { + urls = [ + { + template = "https://github.com/search?q={searchTerms}&type=users"; + } + ]; + iconUpdateURL = "https://github.com/favicon.ico"; + updateInterval = 24 * 60 * 60 * 1000; # every day + definedAliases = ["@ghu"]; + }; + "Bing".metaData.hidden = true; "Google".metaData.hidden = true; "DuckDuckGo".metaData.alias = "@ddg"; diff --git a/home/modules/home-pkgs.nix b/home/modules/home-pkgs.nix index 8e5304c..fb41059 100644 --- a/home/modules/home-pkgs.nix +++ b/home/modules/home-pkgs.nix @@ -41,7 +41,7 @@ in { pkgs.bitwarden-cli - pkgs.sway + pkgs.swayfx pkgs.sway-contrib.grimshot pkgs.libnotify diff --git a/home/modules/nixvim.nix b/home/modules/nixvim.nix index f6c9e73..8fcb18b 100644 --- a/home/modules/nixvim.nix +++ b/home/modules/nixvim.nix @@ -59,6 +59,7 @@ }; gitsigns.enable = true; fugitive.enable = true; + nix-develop.enable = true; treesitter = { enable = true; folding = true; @@ -286,6 +287,12 @@ mode = "n"; key = "ff"; options.silent = true; + action = "Telescope find_files"; + } + { + mode = "n"; + key = "fe"; + options.silent = true; action = "Telescope file_browser"; } { diff --git a/hosts/x86_64-linux/lilith/default.nix b/hosts/x86_64-linux/lilith/default.nix index 82ebc31..69ed8f3 100644 --- a/hosts/x86_64-linux/lilith/default.nix +++ b/hosts/x86_64-linux/lilith/default.nix @@ -76,7 +76,8 @@ # Enable the X11 windowing system. services.xserver.enable = true; - services.xserver.displayManager.gdm.enable = true; + # services.xserver.displayManager.gdm.enable = true; + services.xserver.displayManager.startx.enable = true; services.xserver.desktopManager.gnome.enable = true; #services.xserver.displayManager.defaultSession = "plasmawayland"; # services.xserver.videoDrivers = ["intel"]; @@ -88,10 +89,10 @@ # services.xserver.xkb.options = "eurosign:e,caps:escape"; # Enable CUPS to print documents. - # services.printing.enable = true; + services.printing.enable = true; # Enable sound. - #sound.enable = true; + sound.enable = true; #hardware.pulseaudio = { # enable = true; # package = pkgs.pulseaudioFull;