mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
added firefox config
This commit is contained in:
parent
135c685973
commit
c09f4e4315
4 changed files with 111 additions and 13 deletions
|
|
@ -34,6 +34,12 @@
|
|||
url = "github:outfoxxed/quickshell";
|
||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
|
||||
# Theming
|
||||
firefox-gnome-theme = {
|
||||
url = "github:rafaelmardojai/firefox-gnome-theme";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ in {
|
|||
theme = "Adwaita";
|
||||
};
|
||||
|
||||
hotkey-overlay.skip-at-startup = true;
|
||||
|
||||
input = {
|
||||
# keyboard {
|
||||
# xkb {
|
||||
|
|
@ -98,7 +100,10 @@ in {
|
|||
|
||||
# // Focus windows and outputs automatically when moving the mouse into them.
|
||||
# // Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||
# // focus-follows-mouse max-scroll-amount="0%"
|
||||
focus-follows-mouse = {
|
||||
enable = true;
|
||||
max-scroll-amount = "0%";
|
||||
};
|
||||
};
|
||||
|
||||
# // You can configure outputs by their name, which you can find
|
||||
|
|
@ -408,14 +413,7 @@ in {
|
|||
hotkey-overlay.title = "Application launcher";
|
||||
action = spawn ["noctalia-shell" "ipc" "call" "launcher" "toggle"];
|
||||
};
|
||||
# Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||
|
||||
# You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||
# Note: the entire command goes as a single argument in the end.
|
||||
# Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }
|
||||
|
||||
# Example volume keys mappings for PipeWire & WirePlumber.
|
||||
# The allow-when-locked=true property makes them work even when the session is locked.
|
||||
"XF86AudioRaiseVolume" = {
|
||||
allow-when-locked = true;
|
||||
action = spawn ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"];
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
../../home/darkman.nix
|
||||
|
||||
../../modules/home/firefox
|
||||
../../modules/home/ghostty.nix
|
||||
|
||||
../../home/home-backup.nix
|
||||
|
|
@ -20,13 +21,9 @@
|
|||
homeDirectory = "/home/tyler";
|
||||
|
||||
packages = with pkgs; [
|
||||
# godot
|
||||
godot
|
||||
];
|
||||
|
||||
stateVersion = "23.11";
|
||||
};
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
97
dot_config/flake/modules/home/firefox/default.nix
Normal file
97
dot_config/flake/modules/home/firefox/default.nix
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home.file.".mozilla/firefox/default/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
||||
policies = {
|
||||
DisplayMenuBar = "never"; # Previously appeared when pressing alt
|
||||
|
||||
Homepage.StartPage = "previous-session";
|
||||
};
|
||||
|
||||
profiles.default = {
|
||||
name = "default";
|
||||
|
||||
isDefault = true;
|
||||
search = {
|
||||
force = true;
|
||||
default = "maapl";
|
||||
};
|
||||
userChrome = ''
|
||||
@import "firefox-gnome-theme/userChrome.css";
|
||||
'';
|
||||
userContent = ''
|
||||
@import "firefox-gnome-theme/userContent.css";
|
||||
'';
|
||||
extraConfig = lib.readFile "${inputs.firefox-gnome-theme}/configuration/user.js";
|
||||
|
||||
search.engines = {
|
||||
"google".metaData.hidden = true;
|
||||
"bing".metaData.hidden = true;
|
||||
"ebay".metaData.hidden = true;
|
||||
"amazondotcom-us".metaData.hidden = true;
|
||||
"wikipedia".metaData.hidden = true;
|
||||
|
||||
"Hands Of Blue" = {
|
||||
urls = lib.singleton {
|
||||
template = "https://search.mayoff.ca";
|
||||
params =
|
||||
lib.attrsToList
|
||||
{
|
||||
"q" = "{searchTerms}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
"maapl" = {
|
||||
urls = lib.singleton {
|
||||
template = "https://maapl.net/";
|
||||
params =
|
||||
lib.attrsToList
|
||||
{
|
||||
"q" = "{searchTerms}";
|
||||
};
|
||||
};
|
||||
icon = "https://maapl.net/favicon.ico";
|
||||
};
|
||||
|
||||
"Github Nix Code" = {
|
||||
urls =
|
||||
lib.singleton
|
||||
{
|
||||
template = "https://github.com/search";
|
||||
params =
|
||||
lib.attrsToList # Thanks to xunuwu on github for being a reference to use of these functions
|
||||
|
||||
{
|
||||
"type" = "code";
|
||||
"q" = "lang:nix NOT is:fork {searchTerms}";
|
||||
};
|
||||
};
|
||||
|
||||
icon = "https://github.com/favicon.ico";
|
||||
definedAliases = ["@gn"];
|
||||
};
|
||||
|
||||
"MyNixOS" = {
|
||||
urls =
|
||||
lib.singleton
|
||||
{
|
||||
template = "https://mynixos.com/search";
|
||||
params =
|
||||
lib.attrsToList
|
||||
{
|
||||
"q" = "{searchTerms}";
|
||||
};
|
||||
};
|
||||
definedAliases = ["@mn"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue