diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-03-23 11:25:46 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-03-23 11:25:46 -0500 |
| commit | 716a1d1f79024dc0629c61bc912a570a4a200a25 (patch) | |
| tree | 1b3dc0528840600074735563a6e5d00744f071d4 /modules/desktop/hjem | |
| parent | 8534fc63c30a25856d75cc5787da93acb823c533 (diff) | |
group mercury cleanup and firefox config updates
Diffstat (limited to 'modules/desktop/hjem')
| -rw-r--r-- | modules/desktop/hjem/programs/firefox.nix | 56 | ||||
| -rw-r--r-- | modules/desktop/hjem/programs/research.nix | 1 | ||||
| -rw-r--r-- | modules/desktop/hjem/wm/sway.nix | 150 |
3 files changed, 90 insertions, 117 deletions
diff --git a/modules/desktop/hjem/programs/firefox.nix b/modules/desktop/hjem/programs/firefox.nix index 2078e3c..46d2dd5 100644 --- a/modules/desktop/hjem/programs/firefox.nix +++ b/modules/desktop/hjem/programs/firefox.nix @@ -8,10 +8,12 @@ cfg = config.collinux.desktop.programs.firefox; mkCssHacks = hacks: hacks |> map (f: ''@import "${inputs.firefox-csshacks}/chrome/${f}.css";'') |> lib.concatStringsSep "\n"; + + profileDir = ".config/mozilla/firefox/collin"; in lib.mkIf cfg.enable { files = { - ".mozilla/firefox/profiles.ini" = { + ".config/mozilla/firefox/profiles.ini" = { generator = lib.generators.toINI {}; value = { Profile0 = { @@ -27,32 +29,38 @@ in }; }; - ".mozilla/firefox/collin/user.js".source = "${inputs.betterfox}/user.js"; + "${profileDir}/user.js".source = "${inputs.betterfox}/user.js"; + + "${profileDir}/chrome/utils".source = "${inputs.fx-autoconfig}/profile/chrome/utils"; + + "${profileDir}/chrome/JS/test.uc.js".source = "${inputs.fx-autoconfig}/profile/chrome/JS/test.uc.js"; + + "${profileDir}/chrome/JS/aboutUserChrome.sys.mjs".source = "${inputs.uc-css-js}/JS/aboutUserChrome.sys.mjs"; + "${profileDir}/chrome/resources/aboutuserchrome".source = "${inputs.uc-css-js}/resources/aboutuserchrome"; + + "${profileDir}/chrome/JS/appMenuMods.uc.js".source = "${inputs.uc-css-js}/JS/appMenuMods.uc.js"; - ".mozilla/firefox/collin/chrome/userChrome.css".text = mkCssHacks ( - # (lib.optional (cfg.theme == "adwaita") "window_control_placeholder_support") ++ - [ - # Tabs - ( - if cfg.theme == "catppuccin" - then "hide_tabs_with_one_tab" - else "hide_tabs_with_one_tab_w_window_controls" - ) - "tabs_on_bottom_v2" - "tab_close_button_always_on_hover" - "tabs_fill_available_width" + "${profileDir}/chrome/userChrome.css".text = mkCssHacks [ + # Tabs + ( + if cfg.theme == "catppuccin" + then "hide_tabs_with_one_tab" + else "hide_tabs_with_one_tab_w_window_controls" + ) + "tabs_on_bottom_v2" + "tab_close_button_always_on_hover" + "tabs_fill_available_width" - # Icons! - "iconized_main_menu" - "iconized_menubar_items" - "iconized_places_context_menu" - "iconized_tabs_context_menu" - "icon_only_context_menu_text_controls" + # Icons! + "iconized_main_menu" + # "iconized_menubar_items" + "iconized_places_context_menu" + "iconized_tabs_context_menu" + "icon_only_context_menu_text_controls" - # Other - "compact_extensions_panel" - ] - ); + # Other + "compact_extensions_panel" + ]; }; packages = [pkgs.firefox]; diff --git a/modules/desktop/hjem/programs/research.nix b/modules/desktop/hjem/programs/research.nix index 1646e0c..89bcfca 100644 --- a/modules/desktop/hjem/programs/research.nix +++ b/modules/desktop/hjem/programs/research.nix @@ -8,7 +8,6 @@ in lib.mkIf cfg.enable { packages = with pkgs; [ - zotero zathura xournalpp ocrmypdf diff --git a/modules/desktop/hjem/wm/sway.nix b/modules/desktop/hjem/wm/sway.nix index 0e5edb2..03450d2 100644 --- a/modules/desktop/hjem/wm/sway.nix +++ b/modules/desktop/hjem/wm/sway.nix @@ -6,112 +6,78 @@ }: let cfg = config.collinux.desktop.wm.sway; - colors = '' - set $rosewater #f5e0dc - set $flamingo #f2cdcd - set $pink #f5c2e7 - set $mauve #cba6f7 - set $red #f38ba8 - set $maroon #eba0ac - set $peach #fab387 - set $yellow #f9e2af - set $green #a6e3a1 - set $teal #94e2d5 - set $sky #89dceb - set $sapphire #74c7ec - set $blue #89b4fa - set $lavender #b4befe - set $text #cdd6f4 - set $subtext1 #bac2de - set $subtext0 #a6adc8 - set $overlay2 #9399b2 - set $overlay1 #7f849c - set $overlay0 #6c7086 - set $surface2 #585b70 - set $surface1 #45475a - set $surface0 #313244 - set $base #1e1e2e - set $mantle #181825 - set $crust #11111b - ''; - - settings = '' - exec ${config.collinux.desktop.wallpaper_cmd} - exec ${pkgs.dunst}/bin/dunst - exec ${pkgs.dbus}/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP GTK_USE_PORTAL NIXOS_OZONE_WL MOZ_ENABLE_WAYLAND - - include catppuccin-mocha - - # target title bg text indicator border - client.focused $lavender $base $text $rosewater $blue - client.focused_inactive $overlay0 $base $text $rosewater $overlay0 - client.unfocused $overlay0 $base $text $rosewater $overlay0 - client.urgent $peach $base $peach $overlay0 $peach - client.placeholder $overlay0 $base $text $overlay0 $overlay0 - client.background $base - - input type:keyboard { - xkb_options caps:none + settings = with config.collinux.palette; '' + exec { + ${config.collinux.desktop.wallpaper_cmd} + ${pkgs.dunst}/bin/dunst + ${pkgs.dbus}/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP GTK_USE_PORTAL NIXOS_OZONE_WL MOZ_ENABLE_WAYLAND } - input type:touchpad { - dwt disabled - } - - bindsym Mod4+1 workspace number 1 - bindsym Mod4+2 workspace number 2 - bindsym Mod4+3 workspace number 3 - bindsym Mod4+4 workspace number 4 - bindsym Mod4+5 workspace number 5 - bindsym Mod4+6 workspace number 6 - bindsym Mod4+7 workspace number 7 - bindsym Mod4+8 workspace number 8 - bindsym Mod4+9 workspace number 9 + # target title bg text indicator border + client.focused #${base07} #${base00} #${base05} #${base06} #${base13} + client.focused_inactive #${base03} #${base00} #${base05} #${base06} #${base03} + client.unfocused #${base03} #${base00} #${base05} #${base06} #${base03} + client.urgent #${base09} #${base00} #${base09} #${base03} #${base09} + client.placeholder #${base03} #${base00} #${base05} #${base03} #${base03} + client.background #${base00} - bindsym Mod4+Shift+1 move container to workspace number 1 - bindsym Mod4+Shift+2 move container to workspace number 2 - bindsym Mod4+Shift+3 move container to workspace number 3 - bindsym Mod4+Shift+4 move container to workspace number 4 - bindsym Mod4+Shift+5 move container to workspace number 5 - bindsym Mod4+Shift+6 move container to workspace number 6 - bindsym Mod4+Shift+7 move container to workspace number 7 - bindsym Mod4+Shift+8 move container to workspace number 8 - bindsym Mod4+Shift+9 move container to workspace number 9 + input { + type:keyboard xkb_options caps:none + type:touchpad dwt disabled + } - bindsym Mod4+Return exec ${pkgs.foot}/bin/foot - bindsym Mod4+Space exec tofi-drun - bindsym Mod4+b exec ${pkgs.firefox}/bin/firefox - bindsym Mod4+Shift+b exec ${pkgs.qutebrowser}/bin/qutebrowser - bindsym Mod4+q kill + default_border pixel 2 + default_floating_border pixel 2 + smart_borders on + smart_gaps on - bindsym Mod4+w exec '${pkgs.iwmenu}/bin/iwmenu -l fuzzel -i font -s 2' + floating_modifier Mod4 normal + default_orientation auto - bindsym Mod4+Shift+s exec '${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" ~/Pictures/$(date +"%s_grim.png")' - bindsym Mod4+Alt+s exec '${pkgs.hyprpicker}/bin/hyprpicker' + bindsym { + Mod4+1 workspace number 1 + Mod4+2 workspace number 2 + Mod4+3 workspace number 3 + Mod4+4 workspace number 4 + Mod4+5 workspace number 5 + Mod4+6 workspace number 6 + Mod4+7 workspace number 7 + Mod4+8 workspace number 8 + Mod4+9 workspace number 9 - bindsym XF86AudioRaiseVolume exec 'util.lua volume up' - bindsym XF86AudioLowerVolume exec 'util.lua volume down' + Mod4+Shift+1 move container to workspace number 1 + Mod4+Shift+2 move container to workspace number 2 + Mod4+Shift+3 move container to workspace number 3 + Mod4+Shift+4 move container to workspace number 4 + Mod4+Shift+5 move container to workspace number 5 + Mod4+Shift+6 move container to workspace number 6 + Mod4+Shift+7 move container to workspace number 7 + Mod4+Shift+8 move container to workspace number 8 + Mod4+Shift+9 move container to workspace number 9 - bindsym XF86MonBrightnessUp exec 'util.lua brightness up' - bindsym XF86MonBrightnessDown exec 'util.lua brightness down' + Mod4+q kill - bindsym Home exec 'util.lua music prev' - bindsym End exec 'util.lua music toggle' - bindsym Insert exec 'util.lua music next' + Mod4+Return exec ${pkgs.foot}/bin/foot + Mod4+Space exec tofi-drun + Mod4+b exec ${pkgs.firefox}/bin/firefox + Mod4+Shift+b exec ${pkgs.qutebrowser}/bin/qutebrowser + Mod4+w exec '${pkgs.iwmenu}/bin/iwmenu -l fuzzel -i font -s 2' - default_border pixel 2 - default_floating_border pixel 2 - smart_borders on - smart_gaps on + Mod4+Shift+s exec '${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" ~/Pictures/$(date +"%s_grim.png")' + Mod4+Alt+s exec '${pkgs.hyprpicker}/bin/hyprpicker' - floating_modifier Mod4 normal + Home exec 'util.lua music prev' + End exec 'util.lua music toggle' + Insert exec 'util.lua music next' + XF86AudioRaiseVolume exec 'util.lua volume up' + XF86AudioLowerVolume exec 'util.lua volume down' + XF86MonBrightnessUp exec 'util.lua brightness up' + XF86MonBrightnessDown exec 'util.lua brightness down' + } ''; in lib.mkIf cfg.enable { - files = { - ".config/sway/config".text = settings; - ".config/sway/catppuccin-mocha".text = colors; - }; + files.".config/sway/config".text = settings; packages = with pkgs; [ sway |
