From 661d4964d99a0a5cbab358643c6a271422e0d001 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sat, 6 Apr 2024 20:08:58 +0200 Subject: Programming Feng Shui praxis --- share/home/firefox/default.nix | 64 ----- .../home/firefox/usercss/compact-about-config.css | 24 -- share/home/firefox/usercss/context-menu.css | 12 - share/home/firefox/usercss/tab-separator-lines.css | 23 -- .../firefox/usercss/unified-extensions-view.css | 46 ---- share/home/fish.nix | 11 - share/home/gallery-dl.nix | 32 --- share/home/git.nix | 12 - share/home/helix.nix | 55 ----- share/home/hyprdesktop.nix | 224 ----------------- share/home/kitty.nix | 26 -- share/home/mpv.nix | 17 -- share/home/offpunk.nix | 24 -- share/home/shellenv.nix | 53 ---- share/home/tofi.nix | 39 --- share/home/waybar.css | 271 --------------------- share/home/waybar.nix | 51 ---- share/home/wpaperd.nix | 15 -- share/home/zsh.nix | 16 -- 19 files changed, 1015 deletions(-) delete mode 100644 share/home/firefox/default.nix delete mode 100644 share/home/firefox/usercss/compact-about-config.css delete mode 100644 share/home/firefox/usercss/context-menu.css delete mode 100644 share/home/firefox/usercss/tab-separator-lines.css delete mode 100644 share/home/firefox/usercss/unified-extensions-view.css delete mode 100644 share/home/fish.nix delete mode 100644 share/home/gallery-dl.nix delete mode 100644 share/home/git.nix delete mode 100644 share/home/helix.nix delete mode 100644 share/home/hyprdesktop.nix delete mode 100644 share/home/kitty.nix delete mode 100644 share/home/mpv.nix delete mode 100644 share/home/offpunk.nix delete mode 100644 share/home/shellenv.nix delete mode 100644 share/home/tofi.nix delete mode 100644 share/home/waybar.css delete mode 100644 share/home/waybar.nix delete mode 100644 share/home/wpaperd.nix delete mode 100644 share/home/zsh.nix (limited to 'share/home') diff --git a/share/home/firefox/default.nix b/share/home/firefox/default.nix deleted file mode 100644 index f47f955..0000000 --- a/share/home/firefox/default.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ pkgs, ... }: -let - # Concatenate all files in the `./usercss` directory into one string - css-files = - map (n: ./usercss/${n}) (builtins.attrNames (builtins.readDir ./usercss)); - userChrome = builtins.concatStringsSep "\n" (map builtins.readFile css-files); -in -{ - home.sessionVariables.BROWSER = "firefox"; - - programs.firefox = { - enable = true; - profiles = { - alice = { - name = "alice"; - isDefault = true; - inherit userChrome; - - search = { - default = "DuckDuckGo"; - engines = { - "Nix Packages" = { - urls = [{ - template = "https://search.nixos.org/packages"; - params = [ - { - name = "type"; - value = "packages"; - } - { - name = "query"; - value = "{searchTerms}"; - } - ]; - }]; - - icon = - "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; - definedAliases = [ "@np" ]; - }; - - "NixOS Wiki" = { - urls = [{ - template = "https://nixos.wiki/index.php?search={searchTerms}"; - }]; - iconUpdateURL = "https://nixos.wiki/favicon.png"; - updateInterval = 24 * 60 * 60 * 1000; # every day - definedAliases = [ "@nw" ]; - }; - - "Bing".metaData.hidden = true; - # builtin engines only support specifying one additional alias - "Google".medaData.alias = "@g"; - }; - }; # end of search - - settings = { - "browser.compactmode.show" = true; - "toolkit.legacyUserProfileCustomizations.stylesheets" = true; - }; - }; # end of alice (profile) - }; # end of profiles - }; -} diff --git a/share/home/firefox/usercss/compact-about-config.css b/share/home/firefox/usercss/compact-about-config.css deleted file mode 100644 index 55e30f7..0000000 --- a/share/home/firefox/usercss/compact-about-config.css +++ /dev/null @@ -1,24 +0,0 @@ -/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/content/compact_about_config.css made available under Mozilla Public License v. 2.0 -See the above repository for updates as well as full license text. */ - -/* Makes about:config list more compact */ - -@-moz-document url("about:config"){ - .button-delete, - .button-edit, - .button-reset, - .button-save, - .button-toggle{ - margin-block: 1px !important; - padding-block: 11px 0 !important; - padding-inline: 0 !important; - min-height: 22px !important; - width: 22px !important; - outline-offset: 0 !important; - } - .cell-edit{ width: 28px !important; } - form > input, - tr:not(.add) > th, - tr:not(.add) > .cell-value{ padding-block: 0 !important; } - tr:not(:hover) .semi-transparent:not(.primary,.button-add){ background-color: transparent !important; } -} diff --git a/share/home/firefox/usercss/context-menu.css b/share/home/firefox/usercss/context-menu.css deleted file mode 100644 index 0bf5749..0000000 --- a/share/home/firefox/usercss/context-menu.css +++ /dev/null @@ -1,12 +0,0 @@ -/*** Remove items from image context menu ***/ -#context-sendimage, /* Email image */ -#context-inspect-a11y, -#context-savelinktopocket, -#context-pocket, -#context-savepage, -#context-print-selection, /* Print selected text */ -#context-selectall, -#context-sep-selectall /* Seperator bar */ -{ - display: none !important; -} diff --git a/share/home/firefox/usercss/tab-separator-lines.css b/share/home/firefox/usercss/tab-separator-lines.css deleted file mode 100644 index 2f77db4..0000000 --- a/share/home/firefox/usercss/tab-separator-lines.css +++ /dev/null @@ -1,23 +0,0 @@ -/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tab_separator_lines.css made available under Mozilla Public License v. 2.0 -See the above repository for updates as well as full license text. */ - -/* Bring back tab separator lines that were removed in Proton */ - -.tabbrowser-tab{ - border-inline-start: 1px solid transparent !important; - border-image: 0 1 linear-gradient( - transparent 20%, - color-mix(in srgb, currentColor 20%, transparent) 20%, - color-mix(in srgb, currentColor 20%, transparent) 80%, - transparent 80% - ) !important; -} - -.tabbrowser-tab:hover, -#tabbrowser-tabs:not([movingtab]) .tabbrowser-tab:hover + .tabbrowser-tab:not([first-visible-unpinned-tab]), -.tabbrowser-tab:first-child, -.tabbrowser-tab[selected], -.tabbrowser-tab[multiselected], -#tabbrowser-arrowscrollbox[overflowing] > .tabbrowser-tab[first-visible-unpinned-tab], -#tabbrowser-tabs:not([movingtab]) .tabbrowser-tab[multiselected] + .tabbrowser-tab, -#tabbrowser-tabs:not([movingtab]) .tabbrowser-tab[selected] + .tabbrowser-tab { border-image: none !important; } \ No newline at end of file diff --git a/share/home/firefox/usercss/unified-extensions-view.css b/share/home/firefox/usercss/unified-extensions-view.css deleted file mode 100644 index 876a7d0..0000000 --- a/share/home/firefox/usercss/unified-extensions-view.css +++ /dev/null @@ -1,46 +0,0 @@ -/*** Clean and tight extensions menu ***/ -#unified-extensions-view { - --uei-icon-size: 20px; -} - -#unified-extensions-view .panel-header, -#unified-extensions-view .panel-header + toolbarseparator, -#unified-extensions-view .panel-subview-body + toolbarseparator, -#unified-extensions-view #unified-extensions-manage-extensions { - display:none !important; -} - -#unified-extensions-view .unified-extensions-item-menu-button.subviewbutton { - visibility: hidden !important; - transition: 300ms !important; - -moz-margin-end: -3.6em !important; -} - -#unified-extensions-view .panel-subview-body { - padding-top: 8px !important; - padding-bottom: 8px !important; -} - -#unified-extensions-view:hover -.unified-extensions-item-menu-button.subviewbutton { - visibility: visible !important; - transition: 300ms !important; - -moz-margin-end: initial !important; -} - -#unified-extensions-view .unified-extensions-item .unified-extensions-item-icon, -#unified-extensions-view .unified-extensions-item .toolbarbutton-badge-stack { - margin-inline-end: 2px !important; -} - -#unified-extensions-view .unified-extensions-item-name, -#unified-extensions-view .unified-extensions-item-message { - padding-inline-start: 0.5em !important; - width: 21em !important; -} - -#unified-extensions-view .unified-extensions-item-action-button.subviewbutton { - padding-top: 2px !important; - padding-bottom: 2px !important; -} - diff --git a/share/home/fish.nix b/share/home/fish.nix deleted file mode 100644 index 8d499a3..0000000 --- a/share/home/fish.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ ... }: { - imports = [ ./shellenv.nix ]; - - programs.fish = { - enable = true; - }; - - programs.starship.enableFishIntegration = true; - programs.atuin.enableFishIntegration = true; - programs.nix-index.enableFishIntegration = true; -} diff --git a/share/home/gallery-dl.nix b/share/home/gallery-dl.nix deleted file mode 100644 index 9231208..0000000 --- a/share/home/gallery-dl.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ config, ... }: { - programs.gallery-dl = { - enable = true; - settings.extractor = { - base-directory = "${config.xdg.userDirs.download}/gallery-dl"; - - postprocessors = [ - { - name = "metadata"; - mode = "json"; - whitelist = [ - "danbooru" - "moebooru" - "gelbooru" - "sankaku" - "nhentai" - "rule34" - ]; - } - { - name = "zip"; - compression = "store"; - extension = "cbz"; - filter = "extension not in ('zip', 'rar')"; - whitelist = [ "nhentai" "mangadex" ]; - } - ]; - - Danbooru.metadata = true; - }; # End of settings.extractor - }; # End of programs.gallery-dl -} diff --git a/share/home/git.nix b/share/home/git.nix deleted file mode 100644 index 98cafa2..0000000 --- a/share/home/git.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ ... }: { - programs.git = { - enable = true; - userEmail = "miran.bastaja04@gmail.com"; - userName = "Miran Bastaja"; - signing = { - key = "002426427AE095E093D51B3EF42E936D529F5760"; - signByDefault = true; - }; - delta.enable = true; - }; -} diff --git a/share/home/helix.nix b/share/home/helix.nix deleted file mode 100644 index d557d7d..0000000 --- a/share/home/helix.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ pkgs, ... }: { - programs.helix = { - enable = true; - defaultEditor = true; - - extraPackages = with pkgs; [ - rust-analyzer - rustfmt - nil - nixfmt - python311Packages.python-lsp-server - clang-tools - black - nodePackages.vscode-html-languageserver-bin - emmet-ls - ]; - - settings = { - theme = "tokyonight"; - editor = { - line-number = "relative"; - cursor-shape = { - insert = "bar"; - normal = "block"; - select = "underline"; - }; - whitespace.render = { - space = "all"; - tab = "all"; - newline = "none"; - }; - whitespace.characters = { - space = "·"; - nbsp = "⍽"; - tab = "→"; - newline = "⏎"; - tabpad = "·"; # Tabs will look like "→···" (depending on tab width) - }; - cursorline = true; - lsp.display-messages = true; - }; - }; - - languages = { - language-server.emmet-ls = { - args = [ "--stdio" ]; - command = "emmet-ls"; - }; - language = [{ - name = "html"; - language-servers = [ "vscode-html-language-server" "emmet-ls" ]; - }]; - }; - }; -} diff --git a/share/home/hyprdesktop.nix b/share/home/hyprdesktop.nix deleted file mode 100644 index 0adaf43..0000000 --- a/share/home/hyprdesktop.nix +++ /dev/null @@ -1,224 +0,0 @@ -# Module containing a bunch of things that make up a `desktop environment` built -# off of hyprland. I install this on all my desktop/laptop machines. -# IMPORTANT: this module requires the system to already have `programs.hyprland` -# enabled. -{ pkgs, config, ... }: { - imports = [ - # Custom home manager modules - ../hm-modules/wpaperd.nix - ../hm-modules/tofi.nix - - # Config - ./minimal.nix - ./wpaperd.nix - ./tofi.nix - ./waybar.nix - ./git.nix - ./mpv.nix - ./kitty.nix - ./offpunk.nix - ./firefox - ./helix.nix - ]; - - wayland.windowManager.hyprland = - let - programs = { - audio = { - increase = "wpctl set-volume @DEFAULT_AUDIO_SINK@ --limit 1.0 5%+"; - decrease = "wpctl set-volume @DEFAULT_AUDIO_SINK@ --limit 1.0 5%-"; - toggle-mute = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; - }; - screenshot = ''grim -g "$(slurp)" -t png - | wl-copy --type image/png''; - cmd = { - run = "tofi-run"; - drun = "tofi-drun"; - }; - brightness = { - increase = "brightnessctl set +5%"; - decrease = "brightnessctl set 5%-"; - }; - terminal = "kitty"; - }; - in - { - enable = true; - extraConfig = '' - $mod = SUPER - - bind = $mod SHIFT, Return, exec, ${programs.terminal} - - general { - layout = master - } - - master { - mfact = 0.5 - new_is_master = false - } - - # workspaces - # binds $mod + [shift +] {1..10} to [move to] workspace {1..10} - ${builtins.concatStringsSep "\n" (builtins.genList (x: - let ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10)); - in '' - bind = $mod, ${ws}, workspace, ${toString (x + 1)} - bind = $mod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)} - '') 10)} - - bind = $mod SHIFT, C, killactive - bind = $mod SHIFT, F, togglefloating - bind = $mod SHIFT, Q, exit - bind = $mod, P, exec, ${programs.cmd.drun} - bind = $mod SHIFT, P, exec, ${programs.cmd.run} - - bind = $mod, H, cyclenext, prev - bind = $mod, L, cyclenext - bind = $mod SHIFT, H, swapnext, prev - bind = $mod SHIFT, L, swapnext - - # audio control - binde =, XF86AudioRaiseVolume, exec, ${programs.audio.increase} - binde =, XF86AudioLowerVolume, exec, ${programs.audio.decrease} - bind =, XF86AudioMute, exec, ${programs.audio.toggle-mute} - - # monitor brightness control - binde =, XF86MonBrightnessUp, exec, ${programs.brightness.increase} - binde =, XF86MonBrightnessDown, exec, ${programs.brightness.decrease} - - # Screenshotting - # My stupid laptop outputs these three key codes when the PrtSc key is - # pressed instead of using just one code like any sane device would - bind = SUPER SHIFT, S, exec, ${programs.screenshot} - - input { - # focus change on cursor move - follow_mouse = 1 - accel_profile = flat - } - monitor=,preferred,auto,1 - - # set opacity to 0.9 active and 0.5 inactive for kitty - windowrule = opacity 0.9 override 0.5 override,^(kitty)$ - - # Move windows to their designated workspaces - windowrulev2 = workspace 3,class:(firefox) - windowrulev2 = workspace 4,class:(fluffychat) - windowrulev2 = workspace 4,class:(org.telegram.desktop) - windowrulev2 = workspace 4,class:(Signal) - windowrulev2 = workspace 5,class:(Bitwarden) - - # workaround for https://github.com/hyprwm/Hyprland/issues/2661 - windowrulev2 = stayfocused, title:^()$,class:^(steam)$ - windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ - - # No fade-in animation for the lanucher - layerrule = noanim, launcher - ''; - }; - - home.packages = with pkgs; [ - xh # Nice to use HTTP client - bc # CLI calculator - amfora # Gemini CLI browser - trashy # Trash CLI - tokei # counts lines of code - btop # modern top - brightnessctl - wineWowPackages.full - winetricks - qemu_kvm - wireplumber # session & policy manager for pipewire - grim # screenshot utility for wayland - slurp # region selection UI for wayland - wl-clipboard # clipboard utility - nushell # next-generation shell - ffmpeg - imagemagick - exiftool - sl - jaq # json query tool - git-annex - git-remote-gcrypt - # tools for dealing with all sorts archives - atool - unzip - gnutar - unrar-wrapper - # Useful nix tooling - nix-tree - fzf - - # TUI/GUI programs - cmus # music player - calibre # Document organisation/reading program - libreoffice-qt - beekeeper-studio # SQL database client - thunderbird # email client - nsxiv # image viewer - discord - signal-desktop - tdesktop # Telegram desktop - fluffychat # matrix client - qbittorrent # bittorrent client - zathura # document reader - bitwarden # password manager - heroic # FOSS game launcher for GOG & Epic - foliate - - # Gaming - jdk17_headless - superTuxKart - - # Other - # It seems that not all gtk icon themes contain all icons? At least the - # Flat-Remix icon themes don't contain all the icons that Foliate uses, - # so I'm bringing in the adwaita icons as a fallback. - gnome3.adwaita-icon-theme - ]; - - home.shellAliases = { - sl = "sl -awFc5"; - }; - - services.dunst.enable = true; - - programs.direnv = { - enable = true; - nix-direnv.enable = true; - }; - - xdg = { - systemDirs.data = - let - gds = pkgs.gsettings-desktop-schemas; - gtk3 = pkgs.gtk3; - in - [ - "${gds}/share/gsettings-schemas/${gds.name}" - "${gtk3}/share/gsettings-schemas/${gtk3.name}" - ]; - userDirs = - let - annex = "${config.home.homeDirectory}/Annex"; - in - { - enable = true; - createDirectories = true; - pictures = "${annex}/Pictures"; - music = "${annex}/Music"; - documents = "${annex}/Documents"; - }; - }; - - gtk = { - theme = { - package = pkgs.flat-remix-gtk; - name = "Flat-Remix-GTK-Blue-Darkest"; - }; - iconTheme = { - package = pkgs.flat-remix-icon-theme; - name = "Flat-Remix-Blue-Dark"; - }; - }; -} diff --git a/share/home/kitty.nix b/share/home/kitty.nix deleted file mode 100644 index 3cdc18b..0000000 --- a/share/home/kitty.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ pkgs, ... }: { - programs.kitty = { - enable = true; - theme = "Mayukai"; - - font = { - package = pkgs.nerdfonts.override { fonts = [ "AnonymousPro" ]; }; - name = "AnonymousPro"; - size = 10; - }; - - settings = { cursor_shape = "beam"; }; - - keybindings = { - "ctrl+tab" = "new_tab"; - - "alt+1" = "goto_tab 1"; - "alt+2" = "goto_tab 2"; - "alt+3" = "goto_tab 3"; - "alt+4" = "goto_tab 4"; - "alt+5" = "goto_tab 5"; - }; - }; - - home.shellAliases = { s = "kitty +kitten ssh"; }; -} diff --git a/share/home/mpv.nix b/share/home/mpv.nix deleted file mode 100644 index 077f7e6..0000000 --- a/share/home/mpv.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ config, pkgs, ... }: { - programs.mpv = { - enable = true; - package = pkgs.wrapMpv - (pkgs.mpv-unwrapped.override { - ffmpeg = pkgs.ffmpeg_5-full; - }) - { youtubeSupport = true; }; - config = { - screenshot-format = "avif"; - # The format is ' [].avif' - # Read more about it at: https://mpv.io/manual/master/#screenshot - screenshot-template = "%F [%n]"; - screenshot-directory = "${config.xdg.userDirs.pictures}/Screenshots/mpv"; - }; - }; -} diff --git a/share/home/offpunk.nix b/share/home/offpunk.nix deleted file mode 100644 index 7dbd03c..0000000 --- a/share/home/offpunk.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ pkgs, ... }: { - home.packages = [ pkgs.offpunk ]; - systemd.user = { - timers.offpunk-sync = { - Unit = { - Description = "Offpunk sync command timer"; - }; - Timer = { - Persistent = true; - OnCalendar = "weekly"; - }; - }; - services.offpunk-sync = { - Unit = { - Description = "Offpunk sync command timer"; - }; - Service = { - Type = "oneshot"; - KillMode = "process"; - ExecStart = "${pkgs.offpunk}/bin/offpunk --sync"; - }; - }; - }; -} diff --git a/share/home/shellenv.nix b/share/home/shellenv.nix deleted file mode 100644 index a7853f8..0000000 --- a/share/home/shellenv.nix +++ /dev/null @@ -1,53 +0,0 @@ -{ ... }: { - home.shellAliases = { - ltg = "ls --git --tree"; - ltgi = "ltg --git-ignore"; - }; - programs.eza = { - enable = true; - icons = true; - extraOptions = [ "--header" "--group-directories-first" "--long" ]; - }; - - programs.starship = { - enable = true; - # settings = let - # lightblue-bg = "bg:#769ff0"; - # lightblue-fg = "fg:#e3e5e5"; - # lightblue = "${lightblue-fg} ${lightblue-bg}"; - # in { - # format = lib.concatStrings [ - # "[░▒▓](#a3aed2)" - # "[$username @ $hostname](${lightblue})" - # "$directory" - # "$rust" - # "$package" - # "\n" - # "> " - # ]; - # - # hostname = { - # ssh_only = false; - # format = "[$hostname]($style)"; - # trim_at = ""; # disable trimming - # style = lightblue; - # }; - # - # username = { - # show_always = true; - # format = "[$user]($style)"; - # style_user = lightblue; - # style_root = "${lightblue-bg} fg:red bold"; - # }; - # - # directory = { - # format = "[ $path ]($style)"; - # truncation_length = 3; - # truncation_symbol = "…/"; - # }; - # }; # end of settings - }; # end of programs.starship - - programs.atuin.enable = true; - programs.nix-index.enable = true; -} diff --git a/share/home/tofi.nix b/share/home/tofi.nix deleted file mode 100644 index b0a7a89..0000000 --- a/share/home/tofi.nix +++ /dev/null @@ -1,39 +0,0 @@ -# IMPORTANT: this is the config for a custom module that's located at -# /share/hm-modules/tofi.nix. In order to use this config you have to also -# import that module. -{ lib, config, ... }: { - - # Tofi's cache seems to get messed up sometimes, so we regenerate it when - # building the system. - # https://github.com/philj56/tofi/issues/115#issuecomment-1701748297 - home.activation = { - regenerateTofiCache = lib.hm.dag.entryAfter [ "writeBoundary" ] '' - tofi_cache=${config.xdg.cacheHome}/tofi-drun - [[ -f "$tofi_cache" ]] && rm "$tofi_cache" - ''; - }; - - programs.tofi = { - enable = true; - settings = { - anchor = "top"; - width = "100%"; - height = 30; - horizontal = true; - font-size = 14; - prompt-text = " run: "; - font = "monospace"; - outline-width = 0; - border-width = 0; - background-color = "#000000"; - min-input-width = 120; - result-spacing = 15; - padding-top = 0; - padding-right = 0; - padding-bottom = 0; - padding-left = 0; - drun-launch = true; - terminal = "kitty"; - }; - }; -} diff --git a/share/home/waybar.css b/share/home/waybar.css deleted file mode 100644 index c2213cb..0000000 --- a/share/home/waybar.css +++ /dev/null @@ -1,271 +0,0 @@ -* { - /* `otf-font-awesome` is required to be installed for icons */ - font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; - font-size: 13px; -} - -window#waybar { - background-color: rgba(43, 48, 59, 0.5); - border-bottom: 3px solid rgba(100, 114, 125, 0.5); - color: #ffffff; - transition-property: background-color; - transition-duration: .5s; -} - -window#waybar.hidden { - opacity: 0.2; -} - -window#waybar.termite { - background-color: #3F3F3F; -} - -window#waybar.chromium { - background-color: #000000; - border: none; -} - -button { - /* Use box-shadow instead of border so the text isn't offset */ - box-shadow: inset 0 -3px transparent; - /* Avoid rounded borders under each button name */ - border: none; - border-radius: 0; -} - -/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ -button:hover { - background: inherit; - box-shadow: inset 0 -3px #ffffff; -} - -#workspaces button { - padding: 0; - background-color: transparent; - color: #ffffff; -} - -#workspaces button:hover { - background: rgba(0, 0, 0, 0.2); -} - -#workspaces button.focused { - background-color: #64727D; - box-shadow: inset 0 -3px #ffffff; -} - -#workspaces button.urgent { - background-color: #eb4d4b; -} - -#mode { - background-color: #64727D; - box-shadow: inset 0 -3px #ffffff; -} - -#clock, -#battery, -#cpu, -#memory, -#disk, -#temperature, -#backlight, -#network, -#pulseaudio, -#wireplumber, -#custom-media, -#tray, -#mode, -#idle_inhibitor, -#scratchpad, -#power-profiles-daemon, -#mpd { - padding: 0; - color: #ffffff; -} - -#window { - margin: 0 4px; -} - -#clock { - background-color: #64727D; -} - -#battery { - background-color: #ffffff; - color: #000000; -} - -#battery.charging, #battery.plugged { - color: #ffffff; - background-color: #26A65B; -} - -@keyframes blink { - to { - background-color: #ffffff; - color: #000000; - } -} - -/* Using steps() instead of linear as a timing function to limit cpu usage */ -#battery.critical:not(.charging) { - background-color: #f53c3c; - color: #ffffff; - animation-name: blink; - animation-duration: 0.5s; - animation-timing-function: steps(12); - animation-iteration-count: infinite; - animation-direction: alternate; -} - -#power-profiles-daemon { - padding-right: 15px; -} - -#power-profiles-daemon.performance { - background-color: #f53c3c; - color: #ffffff; -} - -#power-profiles-daemon.balanced { - background-color: #2980b9; - color: #ffffff; -} - -#power-profiles-daemon.power-saver { - background-color: #2ecc71; - color: #000000; -} - -label:focus { - background-color: #000000; -} - -#cpu { - background-color: #2ecc71; - color: #000000; -} - -#memory { - background-color: #9b59b6; -} - -#disk { - background-color: #964B00; -} - -#backlight { - background-color: #90b1b1; -} - -#network { - background-color: #2980b9; -} - -#network.disconnected { - background-color: #f53c3c; -} - -#pulseaudio { - background-color: #f1c40f; - color: #000000; -} - -#pulseaudio.muted { - background-color: #90b1b1; - color: #2a5c45; -} - -#wireplumber { - background-color: #fff0f5; - color: #000000; -} - -#wireplumber.muted { - background-color: #f53c3c; -} - -#temperature { - background-color: #f0932b; -} - -#temperature.critical { - background-color: #eb4d4b; -} - -#tray { - background-color: #2980b9; -} - -#tray > .passive { - -gtk-icon-effect: dim; -} - -#tray > .needs-attention { - -gtk-icon-effect: highlight; - background-color: #eb4d4b; -} - -#idle_inhibitor { - background-color: #2d3436; -} - -#idle_inhibitor.activated { - background-color: #ecf0f1; - color: #2d3436; -} - -#language { - background: #00b093; - color: #740864; - padding: 0 5px; - margin: 0 5px; - min-width: 16px; -} - -#keyboard-state { - background: #97e1ad; - color: #000000; - padding: 0 0px; - margin: 0 5px; - min-width: 16px; -} - -#keyboard-state > label { - padding: 0 5px; -} - -#keyboard-state > label.locked { - background: rgba(0, 0, 0, 0.2); -} - -#scratchpad { - background: rgba(0, 0, 0, 0.2); -} - -#scratchpad.empty { - background-color: transparent; -} - -#privacy { - padding: 0; -} - -#privacy-item { - padding: 0 5px; - color: white; -} - -#privacy-item.screenshare { - background-color: #cf5700; -} - -#privacy-item.audio-in { - background-color: #1ca000; -} - -#privacy-item.audio-out { - background-color: #0069d4; -} diff --git a/share/home/waybar.nix b/share/home/waybar.nix deleted file mode 100644 index 8830e78..0000000 --- a/share/home/waybar.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ lib, ... }: { - programs.waybar = { - enable = true; - systemd = { - enable = true; - target = "hyprland-session.target"; - }; - settings.mainBar = { - layer = "top"; - position = "right"; - width = 40; - reload_style_on_change = true; - - modules-left = [ "hyprland/workspaces" ]; - modules-right = [ - "battery" - "network" - "cpu" - "memory" - "temperature" - "backlight" - "clock" - "tray" - ]; - - clock = { - format = "{:%H:%m\n%b}"; - }; - - battery = { - format = lib.concatStringsSep "\n" [ - "{icon} {capacity}%" - "󱐋 {power:4.1f} W" - ]; - interval = 2; - format-icons = [ "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ]; - }; - - keyboard-state = { - numlock = true; - capslock = true; - format = "{name} {icon}"; - format-icons = { - locked = ""; - unlocked = ""; - }; - }; - }; # end of settings.mainBar - style = builtins.readFile ./waybar.css; - }; -} diff --git a/share/home/wpaperd.nix b/share/home/wpaperd.nix deleted file mode 100644 index 447a9d2..0000000 --- a/share/home/wpaperd.nix +++ /dev/null @@ -1,15 +0,0 @@ -# IMPORTANT: this is the config for a custom module that's located at -# /share/hm-modules/wpaperd.nix. In order to use this config you have to also -# import that module. -{ config, ... }: -let wallpapers-dir = "${config.xdg.userDirs.pictures}/Wallpapers"; -in { - services.wpaperd = { - enable = true; - settings.default = { - path = wallpapers-dir; - duration = "10m"; - sorting = "random"; - }; - }; -} diff --git a/share/home/zsh.nix b/share/home/zsh.nix deleted file mode 100644 index d7950eb..0000000 --- a/share/home/zsh.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ ... }: { - imports = [ ./shellenv.nix ]; - - programs.zsh = { - enable = true; - enableAutosuggestions = true; - enableCompletion = true; - syntaxHighlighting.enable = true; - enableVteIntegration = true; - autocd = true; - dotDir = ".config/zsh"; - }; - - programs.starship.enableZshIntegration = true; - programs.atuin.enableZshIntegration = true; -} -- cgit v1.3.1