diff options
-rw-r--r-- | modules/by-name/im/imv/module.nix | 21 | ||||
-rw-r--r-- | modules/by-name/za/zathura/module.nix | 74 | ||||
-rw-r--r-- | modules/home.legacy/conf/zsh/default.nix | 17 | ||||
-rw-r--r-- | modules/home.legacy/wms/river/default.nix | 7 |
4 files changed, 102 insertions, 17 deletions
diff --git a/modules/by-name/im/imv/module.nix b/modules/by-name/im/imv/module.nix new file mode 100644 index 00000000..0a324e01 --- /dev/null +++ b/modules/by-name/im/imv/module.nix @@ -0,0 +1,21 @@ +{ + config, + lib, + ... +}: let + cfg = config.soispha.programs.imv; +in { + options.soispha.programs.imv = { + enable = lib.mkEnableOption "imv"; + }; + + config.home-manager.users.soispha = lib.mkIf cfg.enable { + programs.imv = { + enable = true; + }; + + home.sessionVariables = { + IVIEWER = "imv"; + }; + }; +} diff --git a/modules/by-name/za/zathura/module.nix b/modules/by-name/za/zathura/module.nix new file mode 100644 index 00000000..1c55be54 --- /dev/null +++ b/modules/by-name/za/zathura/module.nix @@ -0,0 +1,74 @@ +{ + config, + lib, + ... +}: let + cfg = config.soispha.programs.zathura; +in { + options.soispha.programs.zathura = { + enable = lib.mkEnableOption "zathura"; + }; + + config.home-manager.users.soispha = lib.mkIf cfg.enable { + programs.zathura = { + enable = true; + options = { + # Use dark mode + # recolor = true; + # recolor-keephue = true; + + page-padding = 2; + + selection-notification = true; + selection-clipboard = "clipboard"; + + scroll-page-aware = true; + + guioptions = ""; + + statusbar-home-tilde = true; + window-title-basename = true; + }; + + # source: https://raw.githubusercontent.com/Daru-san/SnowyDots/master/modules/home/programs/zathura/default.nix + # TODO: Add theming. <2024-10-18> + # extraConfig = with config.colorScheme.palette; '' + # set notification-error-bg "#${base03}" #525252 + # set notification-error-fg "#${base0A}" #ee5396 + # set notification-warning-bg "#${base03}" #525252 + # set notification-warning-fg "#${base0A}" #ee5398 + # set notification-bg "#${base03}" #525252 + # set notification-fg "#${base08}" #3ddbd9 + # + # set completion-group-bg "#${base09}" #78a9ff + # set completion-group-fg "#${base01}" #262626 + # set completion-bg "#${base09}" #78a9ff + # set completion-fg "#${base01}" #262626 + # set completion-highlight-bg "#${base03}" #525252 + # set completion-highlight-fg "#${base0B}" #33b1ff + # + # # Define the color in index mode + # set index-bg "#${base01}" #262626 + # set index-fg "#${base04}" #dde1e6 + # set index-active-bg "#${base0B}" #33b1ff + # set index-active-fg "#${base04}" #dde1e6 + # + # set inputbar-bg "#${base02}" #262626 + # set inputbar-fg "#${base04}" #dde1e6 + # + # set statusbar-bg "#${base02}" #262626 + # set statusbar-fg "#${base04}" #dde1e6 + # + # set default-bg "#${base00}" #161616 + # set default-fg "#${base05}" #f2f4f8 + # + # set recolor-lightcolor "#${base00}" #161616 + # set recolor-darkcolor "#${base05}" #f2f4f8 + # ''; + }; + + home.sessionVariables = { + READER = "zathura"; + }; + }; +} diff --git a/modules/home.legacy/conf/zsh/default.nix b/modules/home.legacy/conf/zsh/default.nix index f5c65081..cb1a565f 100644 --- a/modules/home.legacy/conf/zsh/default.nix +++ b/modules/home.legacy/conf/zsh/default.nix @@ -82,22 +82,5 @@ hisea = "history 0 | grep"; }; - sessionVariables = { - IVIEWER = "imv"; - READER = "zathura"; - - LIBVIRT_DEFAULT_URI = "qemu:///system"; - - BEMENU_SCALE = "1.5"; - BEMENU_BACKEND = "wayland"; - BEMENU_OPTS = "--fn 'Source Code Pro 10' -c -l 30 -B 1 -W 0.9 --hf #ffffff"; - - # Export Wayland env Vars {{{ - QT_QPA_PLATFORM = "wayland"; - QT_QPA_PLATFORMTHEME = "qt5ct"; # needs qt5ct - CLUTTER_BACKEND = "wayland"; - SDL_VIDEODRIVER = "wayland"; # might brake some things - # }}} - }; }; } diff --git a/modules/home.legacy/wms/river/default.nix b/modules/home.legacy/wms/river/default.nix index 36a9ca74..1ec39f4d 100644 --- a/modules/home.legacy/wms/river/default.nix +++ b/modules/home.legacy/wms/river/default.nix @@ -45,6 +45,13 @@ in { WM = "river"; XDG_CURRENT_DESKTOP = "river"; DESKTOP_SESSION = "river"; + + # Export Wayland env Vars {{{ + QT_QPA_PLATFORM = "wayland"; + QT_QPA_PLATFORMTHEME = "qt5ct"; # needs qt5ct + CLUTTER_BACKEND = "wayland"; + SDL_VIDEODRIVER = "wayland"; # might brake some things + # }}} }; xdg.configFile."river/init".source = |