dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit f0cad5434a32a98d283ca21c952823b441bdc01f parent c31dd171c020f7f838e4992bf465cb46558ddd6f Author: maydayv7 <maydayv7@gmail.com> Date: Fri, 22 Mar 2024 21:38:27 +0530 fix(site): Change Domain
Diffstat:
| M | .github/workflows/website.yml | | | 2 | +- |
| M | README.md | | | 2 | +- |
| M | modules/README.md | | | 2 | +- |
| M | modules/apps/git/hosting.nix | | | 2 | +- |
| M | scripts/hyprutils.nix | | | 62 | +++++++++++++++++++++++++++++--------------------------------- |
| M | site/README.md | | | 4 | ++-- |
6 files changed, 35 insertions(+), 39 deletions(-)
diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml @@ -30,4 +30,4 @@ jobs: github_token: ${{ secrets.ACCESS_TOKEN }} publish_dir: ./result publish_branch: deploy - cname: maydayv7.tk + cname: maydayv7.my.to diff --git a/README.md b/README.md @@ -6,7 +6,7 @@    [](https://nixos.org) -This [repository](https://github.com/maydayv7/dotfiles) contains the configuration and `dotfiles` for my continuously evolving multi-PC setup (using [Nix](https://nixos.org/)). All the devices I own, controlled by code. It also builds and deploys my website to [maydayv7.tk](https://maydayv7.tk). You can follow along with my [NixOS Desktop](https://maydayv7.tk/series/nixos-desktop/) Series +This [repository](https://github.com/maydayv7/dotfiles) contains the configuration and `dotfiles` for my continuously evolving multi-PC setup (using [Nix](https://nixos.org/)). All the devices I own, controlled by code. It also builds and deploys my website to [maydayv7.my.to](https://maydayv7.my.to). You can follow along with my [NixOS Desktop](https://maydayv7.my.to/series/nixos-desktop/) Series <details> <summary>Desktop Pictures</summary> diff --git a/modules/README.md b/modules/README.md @@ -10,7 +10,7 @@ Configuration [Builder](./configuration.nix) - `git` - - `hosting` - - `enable`: Enable Gitea Code Hosting - `true / false` - - `domain`: Website Domain Name - Ex. `maydayv7.tk` + - `domain`: Website Domain Name - Ex. `maydayv7.net` - `secret`: Path to Cloudfare Authentication Credentials - `runner` - - `support`: Enable Support for `git` Runners - `"github" / "gitlab"` diff --git a/modules/apps/git/hosting.nix b/modules/apps/git/hosting.nix @@ -13,7 +13,7 @@ in { description = "Website Domain Name"; type = types.str; default = ""; - example = "maydayv7.tk"; + example = "maydayv7.net"; }; secret = mkOption { description = "Path to Cloudfare Authentication Credentials"; diff --git a/scripts/hyprutils.nix b/scripts/hyprutils.nix @@ -8,14 +8,15 @@ help = '' # Legend # - xxx - Command [modifiers] - Description + xxx - Command [action] - Description # Usage # + help - Show this information brightness [up,down] - Screen Brightness Controls volume [up,down,mute] - Volume Controls media [next,previous,toggle] - Media Controls zoom [in,out] - Screen Zoom - toggle [] + toggle media - Persist and toggle audio playing state idle - Toggle Idle Daemon service fancy - Toggle Compositor Effects @@ -77,6 +78,24 @@ in case "$1" in "") error "Expected an Option" "${help}";; "help") echo -e "## Hyprland Utility Script ##\n${help}";; + "brightness") + brightness_notification() { + brightness=$(brillo | grep -Po '[0-9]{1,3}' | head -n 1) + notify brightness -i "display" -h int:value:"$brightness" " $brightness%" + } + case "$2" in + "up") + brillo -u 300000 -A 5 + brightness_notification + ;; + "down") + brillo -u 300000 -U 5 + brightness_notification + ;; + "") error "Expected an Option" "Try 'hyprutils help' for more information" ;; + *) error "Unexpected Option 'brightness $2'" "Try 'hyprutils help' for more information" ;; + esac + ;; "volume") volume_notification() { volume=$(amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1) @@ -118,28 +137,8 @@ in amixer set Master 1+ toggle volume_notification ;; - *) - error "Unexpected Option 'volume $2'" "Try 'hyprutils help' for more information" - ;; - esac - ;; - "brightness") - brightness_notification() { - brightness=$(brillo | grep -Po '[0-9]{1,3}' | head -n 1) - notify brightness -i "display" -h int:value:"$brightness" " $brightness%" - } - case "$2" in - "up") - brillo -u 300000 -A 5 - brightness_notification - ;; - "down") - brillo -u 300000 -U 5 - brightness_notification - ;; - *) - error "Unexpected Option 'brightness $2'" "Try 'hyprutils help' for more information" - ;; + "") error "Expected an Option" "Try 'hyprutils help' for more information" ;; + *) error "Unexpected Option 'volume $2'" "Try 'hyprutils help' for more information" ;; esac ;; "media") @@ -173,9 +172,8 @@ in playerctl play-pause music_notification ;; - *) - error "Unexpected Option 'media $2'" "Try 'hyprutils help' for more information" - ;; + "") error "Expected an Option" "Try 'hyprutils help' for more information" ;; + *) error "Unexpected Option 'media $2'" "Try 'hyprutils help' for more information" ;; esac ;; "zoom") @@ -196,9 +194,8 @@ in hyprctl notify 1 1000 0 "Zoomed Out ($ZOOM""x)" fi ;; - *) - error "Unexpected Option 'zoom $2'" "Try 'hyprutils help' for more information" - ;; + "") error "Expected an Option" "Try 'hyprutils help' for more information" ;; + *) error "Unexpected Option 'zoom $2'" "Try 'hyprutils help' for more information" ;; esac ;; "toggle") @@ -245,9 +242,8 @@ in hyprctl notify 1 2000 0 "Compositor Effects Enabled" hyprctl reload ;; - *) - error "Unexpected Option 'toggle $2'" "Try 'hyprutils help' for more information" - ;; + "") error "Expected an Option" "Try 'hyprutils help' for more information" ;; + *) error "Unexpected Option 'toggle $2'" "Try 'hyprutils help' for more information" ;; esac ;; esac diff --git a/site/README.md b/site/README.md @@ -1,10 +1,10 @@ ## My Personal Website -[](https://maydayv7.tk) +[](https://maydayv7.my.to) Generated using [Zola](https://www.getzola.org/) and Deployed with [Nix](https://nixos.org/), [GitHub Pages](https://pages.github.com/) and [Netlify](https://netlify.com) -Hosted at [maydayv7.tk](https://maydayv7.tk) +Hosted at [maydayv7.my.to](https://maydayv7.my.to) ### Build