1
1
Fork 0

custom: add browser option

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-21 13:40:32 -05:00
parent 52d5d7a9f7
commit d3c1433509
Signed by: myned
GPG key ID: C7224454F7881A34
8 changed files with 11 additions and 12 deletions

View file

@ -38,6 +38,11 @@ in {
### Misc ### Misc
wallpaper = mkOption {default = false;}; wallpaper = mkOption {default = false;};
browser = {
command = mkOption {default = "${config.custom.programs.chromium.package}/bin/google-chrome-stable";};
desktop = mkOption {default = "google-chrome.desktop";};
};
font = { font = {
emoji = mkOption {default = "Noto Color Emoji";}; emoji = mkOption {default = "Noto Color Emoji";};
monospace = mkOption {default = "IosevkaTermSlab NFP Medium";}; monospace = mkOption {default = "IosevkaTermSlab NFP Medium";};

View file

@ -10,7 +10,6 @@ with lib; let
cat = "${pkgs.coreutils}/bin/cat"; cat = "${pkgs.coreutils}/bin/cat";
clipse = "${pkgs.clipse}/bin/clipse"; clipse = "${pkgs.clipse}/bin/clipse";
codium = "${config.home-manager.users.${config.custom.username}.programs.vscode.package}/bin/codium"; codium = "${config.home-manager.users.${config.custom.username}.programs.vscode.package}/bin/codium";
firefox-esr = "${config.home-manager.users.${config.custom.username}.programs.firefox.finalPackage}/bin/firefox-esr";
gnome-text-editor = "${pkgs.gnome-text-editor}/bin/gnome-text-editor"; gnome-text-editor = "${pkgs.gnome-text-editor}/bin/gnome-text-editor";
hyprctl = "${config.programs.hyprland.package}/bin/hyprctl"; hyprctl = "${config.programs.hyprland.package}/bin/hyprctl";
hyprlock = "${config.home-manager.users.${config.custom.username}.programs.hyprlock.package}/bin/hyprlock"; hyprlock = "${config.home-manager.users.${config.custom.username}.programs.hyprlock.package}/bin/hyprlock";
@ -238,7 +237,7 @@ in {
(key "A" "Ctrl+Alt" "exec" "${waydroid} session stop") (key "A" "Ctrl+Alt" "exec" "${waydroid} session stop")
(key "A" "Super" "togglespecialworkspace" "android") (key "A" "Super" "togglespecialworkspace" "android")
(key "A" "Super+Shift" "movetoworkspacesilent" "special:android") (key "A" "Super+Shift" "movetoworkspacesilent" "special:android")
(key "B" "Super" "exec" firefox-esr) (key "B" "Super" "exec" config.custom.browser.command)
(key "C" "Super" "exec" codium) (key "C" "Super" "exec" codium)
(key "E" "Super" "exec" gnome-text-editor) (key "E" "Super" "exec" gnome-text-editor)
(key "F" "Super" "exec" "${nautilus} --new-window") (key "F" "Super" "exec" "${nautilus} --new-window")

View file

@ -8,7 +8,6 @@ with lib; let
_1password = "${config.programs._1password-gui.package}/bin/1password"; _1password = "${config.programs._1password-gui.package}/bin/1password";
audio = config.home-manager.users.${config.custom.username}.home.file.".local/bin/audio".source; audio = config.home-manager.users.${config.custom.username}.home.file.".local/bin/audio".source;
clipse = "${pkgs.clipse}/bin/clipse"; clipse = "${pkgs.clipse}/bin/clipse";
firefox-esr = "${config.home-manager.users.${config.custom.username}.programs.firefox.finalPackage}/bin/firefox-esr";
grep = "${pkgs.gnugrep}/bin/grep"; grep = "${pkgs.gnugrep}/bin/grep";
left = config.home-manager.users.${config.custom.username}.home.file.".local/bin/left".source; left = config.home-manager.users.${config.custom.username}.home.file.".local/bin/left".source;
loupe = "${pkgs.loupe}/bin/loupe"; loupe = "${pkgs.loupe}/bin/loupe";
@ -74,7 +73,6 @@ in {
"${audio} --init" # Enforce audio profile state "${audio} --init" # Enforce audio profile state
"${rm} ~/.cache/walker/clipboard.gob" # Clear clipboard history "${rm} ~/.cache/walker/clipboard.gob" # Clear clipboard history
"${_1password} --silent" # Launch password manager in background "${_1password} --silent" # Launch password manager in background
#// "[group new; tile] ${firefox-esr}"
# HACK: Launch hidden GTK windows to reduce startup time # HACK: Launch hidden GTK windows to reduce startup time
"[workspace special:hidden silent] ${loupe}" "[workspace special:hidden silent] ${loupe}"

View file

@ -8,7 +8,6 @@ with lib; let
audio = "~/.local/bin/audio"; audio = "~/.local/bin/audio";
clipse = "${pkgs.clipse}/bin/clipse"; clipse = "${pkgs.clipse}/bin/clipse";
codium = "${config.home-manager.users.${config.custom.username}.programs.vscode.package}/bin/codium"; codium = "${config.home-manager.users.${config.custom.username}.programs.vscode.package}/bin/codium";
firefox-esr = "${config.home-manager.users.${config.custom.username}.programs.firefox.finalPackage}/bin/firefox-esr";
gnome-text-editor = "${pkgs.gnome-text-editor}/bin/gnome-text-editor"; gnome-text-editor = "${pkgs.gnome-text-editor}/bin/gnome-text-editor";
hyprctl = "${config.programs.hyprland.package}/bin/hyprctl"; hyprctl = "${config.programs.hyprland.package}/bin/hyprctl";
hyprlock = "${config.home-manager.users.${config.custom.username}.programs.hyprlock.package}/bin/hyprlock"; hyprlock = "${config.home-manager.users.${config.custom.username}.programs.hyprlock.package}/bin/hyprlock";
@ -147,7 +146,7 @@ in {
"9+${super}+${shift}" = "move to workspace 9"; "9+${super}+${shift}" = "move to workspace 9";
"a+${super}" = "[con_mark=android] scratchpad show"; "a+${super}" = "[con_mark=android] scratchpad show";
"a+${super}+${shift}" = "exec ${waydroid} session stop"; "a+${super}+${shift}" = "exec ${waydroid} session stop";
"b+${super}" = "exec ${firefox-esr}"; "b+${super}" = "exec ${config.custom.browser.command}";
"backslash+${super}" = "split toggle"; "backslash+${super}" = "split toggle";
"backslash+${super}+${shift}" = "split none"; "backslash+${super}+${shift}" = "split none";
"backspace+${super}" = "focus mode_toggle"; "backspace+${super}" = "focus mode_toggle";

View file

@ -99,7 +99,6 @@ in {
# (once "${rm} ~/.config/qalculate/qalc.dmenu.history") # Clear calc history # (once "${rm} ~/.config/qalculate/qalc.dmenu.history") # Clear calc history
# (once "${rm} ~/.cache/cliphist/db") # Clear clipboard database # (once "${rm} ~/.cache/cliphist/db") # Clear clipboard database
# (once firefox-esr)
]; ];
}; };

View file

@ -22,9 +22,9 @@ in {
# Auto Move Windows # Auto Move Windows
"org/gnome/shell/extensions/auto-move-windows" = { "org/gnome/shell/extensions/auto-move-windows" = {
application-list = mkArray type.string [ application-list = mkArray type.string [
"${config.custom.browser.desktop}:1"
"codium.desktop:1" "codium.desktop:1"
"discord.desktop:1" "discord.desktop:1"
"firefox-esr.desktop:1"
"obsidian.desktop:1" "obsidian.desktop:1"
"org.telegram.desktop.desktop:1" "org.telegram.desktop.desktop:1"
"signal-desktop.desktop:1" "signal-desktop.desktop:1"

View file

@ -152,7 +152,7 @@ in {
"org/gnome/shell" = { "org/gnome/shell" = {
favorite-apps = mkArray type.string [ favorite-apps = mkArray type.string [
"org.gnome.Nautilus.desktop" "org.gnome.Nautilus.desktop"
"firefox-esr.desktop" config.custom.browser.desktop
"signal-desktop.desktop" "signal-desktop.desktop"
"org.telegram.desktop.desktop" "org.telegram.desktop.desktop"
"discord.desktop" "discord.desktop"

View file

@ -8,7 +8,6 @@ with lib; let
clapper = "com.github.rafostar.Clapper.desktop"; clapper = "com.github.rafostar.Clapper.desktop";
decibels = "org.gnome.Decibels.desktop"; decibels = "org.gnome.Decibels.desktop";
file-roller = "org.gnome.File Roller.desktop"; file-roller = "org.gnome.File Roller.desktop";
firefox-esr = "firefox-esr.desktop";
font-viewer = "org.gnome.font-viewer.desktop"; font-viewer = "org.gnome.font-viewer.desktop";
gnome-text-editor = "org.gnome.TextEditor.desktop"; gnome-text-editor = "org.gnome.TextEditor.desktop";
libreoffice = "base.desktop"; libreoffice = "base.desktop";
@ -131,8 +130,8 @@ in {
"text/x-scss" = gnome-text-editor; "text/x-scss" = gnome-text-editor;
"video/mp4" = clapper; "video/mp4" = clapper;
"video/x-matroska" = clapper; "video/x-matroska" = clapper;
"x-scheme-handler/http" = firefox-esr; "x-scheme-handler/http" = config.custom.browser.desktop;
"x-scheme-handler/https" = firefox-esr; "x-scheme-handler/https" = config.custom.browser.desktop;
}; };
}; };