| author | |
| committer | |
| log | a4898824baec822428b5b531ddd26a479146a2be |
| tree | f96d8447a4e94e839d558d1dfd25c57fae4272b1 |
| parent | 5a4dc3b0c38ce3a1e14ec94a6988fa085297feb4 |
| signature | Commit is signed but in an unrecognized format. |
6 files changed, 68 insertions(+), 6 deletions(-)
users/natalie/home/default.nix+1| ... | ... | @@ -7,5 +7,6 @@ |
| 7 | 7 | ./swaync.nix |
| 8 | 8 | ./gtk.nix |
| 9 | 9 | ./waybar |
| 10 | ./scripts | |
| 10 | 11 | ]; |
| 11 | 12 | } |
users/natalie/home/hyprland/binds.nix+2-2| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | { ... }: | |
| 1 | { pkgs, ... }: | |
| 2 | 2 | { |
| 3 | 3 | wayland.windowManager.hyprland.settings = { |
| 4 | 4 | binds = { |
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | "$mainMod, F1, exec, show-keybinds" |
| 11 | 11 | |
| 12 | 12 | # keybindings |
| 13 | "$mainMod, Return, exec, ghostty --gtk-single-instance=true" | |
| 13 | "$mainMod, Return, exec, ${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true" | |
| 14 | 14 | "$mainMod, P, pseudo," |
| 15 | 15 | "$mainMod, C, killactive," |
| 16 | 16 | "$mainMod, M, exit, " |
users/natalie/home/hyprland/hyprland.nix+1-1| ... | ... | @@ -12,11 +12,11 @@ |
| 12 | 12 | wf-recorder |
| 13 | 13 | glib |
| 14 | 14 | wayland |
| 15 | direnv | |
| 16 | 15 | playerctl |
| 17 | 16 | waybar |
| 18 | 17 | networkmanagerapplet |
| 19 | 18 | hyprpolkitagent |
| 19 | swappy | |
| 20 | 20 | ]; |
| 21 | 21 | # systemd.user.targets.hyprland-session.Unit.Wants = [ |
| 22 | 22 | # "xdg-desktop-autostart.target" |
users/natalie/home/scripts/default.nix created+26| ... | ... | @@ -0,0 +1,26 @@ |
| 1 | { pkgs, ... }: | |
| 2 | let | |
| 3 | scriptDir = ./scripts; | |
| 4 | ||
| 5 | mkScript = name: { | |
| 6 | inherit name; | |
| 7 | value = pkgs.writeScriptBin (builtins.replaceStrings [ ".sh" ] [ "" ] name) ( | |
| 8 | builtins.readFile (scriptDir + "/${name}") | |
| 9 | ); | |
| 10 | }; | |
| 11 | ||
| 12 | scriptsSet = builtins.listToAttrs ( | |
| 13 | map mkScript ( | |
| 14 | builtins.attrNames ( | |
| 15 | pkgs.lib.filterAttrs (n: v: v == "regular" && (pkgs.lib.hasSuffix ".sh" n)) ( | |
| 16 | builtins.readDir ./scripts | |
| 17 | ) | |
| 18 | ) | |
| 19 | ) | |
| 20 | ); | |
| 21 | scripts = builtins.attrValues scriptsSet; | |
| 22 | ||
| 23 | in | |
| 24 | { | |
| 25 | home.packages = scripts; | |
| 26 | } |
users/natalie/home/scripts/scripts/screenshot.sh created+34| ... | ... | @@ -0,0 +1,34 @@ |
| 1 | #!/usr/bin/env bash | |
| 2 | ||
| 3 | dir="$HOME/Pictures/Screenshots" | |
| 4 | time=$(date +'%Y_%m_%d_at_%Hh%Mm%Ss') | |
| 5 | file="${dir}/Screenshot_${time}.png" | |
| 6 | ||
| 7 | copy() { | |
| 8 | GRIMBLAST_HIDE_CURSOR=0 grimblast --notify --freeze copy area | |
| 9 | } | |
| 10 | ||
| 11 | save() { | |
| 12 | GRIMBLAST_HIDE_CURSOR=0 grimblast --notify --freeze save area "$file" | |
| 13 | } | |
| 14 | ||
| 15 | swappy_() { | |
| 16 | GRIMBLAST_HIDE_CURSOR=0 grimblast --notify --freeze save area "$file" | |
| 17 | swappy -f "$file" | |
| 18 | } | |
| 19 | ||
| 20 | if [[ ! -d "$dir" ]]; then | |
| 21 | mkdir -p "$dir" | |
| 22 | fi | |
| 23 | ||
| 24 | if [[ "$1" == "--copy" ]]; then | |
| 25 | copy | |
| 26 | elif [[ "$1" == "--save" ]]; then | |
| 27 | save | |
| 28 | elif [[ "$1" == "--swappy" ]]; then | |
| 29 | swappy_ | |
| 30 | else | |
| 31 | echo -e "Available Options: --copy --save --swappy" | |
| 32 | fi | |
| 33 | ||
| 34 | exit 0 |
users/natalie/home/waybar/settings.nix+4-3| ... | ... | @@ -45,6 +45,7 @@ in |
| 45 | 45 | "hyprland/language" |
| 46 | 46 | "tray" |
| 47 | 47 | "custom/notification" |
| 48 | "custom/power-menu" | |
| 48 | 49 | ]; |
| 49 | 50 | clock = { |
| 50 | 51 | calendar = { |
| ... | ... | @@ -77,19 +78,19 @@ in |
| 77 | 78 | format = "<span foreground='${green}'> </span> {usage}%"; |
| 78 | 79 | format-alt = "<span foreground='${green}'> </span> {avg_frequency} GHz"; |
| 79 | 80 | interval = 2; |
| 80 | on-click-right = "${pkgs.hyprland}/bin/hyprctl dispatch exec '[float; center; size 950 650] ${pkgs.ghostty}/bin/ghostty --override font_size=14 --title float_ghostty btop'"; | |
| 81 | on-click-right = "${pkgs.hyprland}/bin/hyprctl dispatch exec '[float; center; size 950 650] ${pkgs.ghostty}/bin/ghostty --font-size=14 -e btop'"; | |
| 81 | 82 | }; |
| 82 | 83 | memory = { |
| 83 | 84 | format = "<span foreground='${cyan}'> </span>{}%"; |
| 84 | 85 | format-alt = "<span foreground='${cyan}'> </span>{used} GiB"; # |
| 85 | 86 | interval = 2; |
| 86 | on-click-right = "${pkgs.hyprland}/bin/hyprctl dispatch exec '[float; center; size 950 650] ${pkgs.ghostty}/bin/ghostty --override font_size=14 --title float_ghostty btop'"; | |
| 87 | on-click-right = "${pkgs.hyprland}/bin/hyprctl dispatch exec '[float; center; size 950 650] ${pkgs.ghostty}/bin/ghostty --font-size=14 -e btop'"; | |
| 87 | 88 | }; |
| 88 | 89 | disk = { |
| 89 | 90 | # path = "/"; |
| 90 | 91 | format = "<span foreground='${orange}'> </span>{percentage_used}%"; |
| 91 | 92 | interval = 60; |
| 92 | on-click-right = "${pkgs.hyprland}/bin/hyprctl dispatch exec '[float; center; size 950 650] ${pkgs.ghostty}/bin/ghostty --override font_size=14 --title float_ghostty btop'"; | |
| 93 | on-click-right = "${pkgs.hyprland}/bin/hyprctl dispatch exec '[float; center; size 950 650] ${pkgs.ghostty}/bin/ghostty --font-size=14 -e btop'"; | |
| 93 | 94 | }; |
| 94 | 95 | network = { |
| 95 | 96 | format-wifi = "<span foreground='${magenta}'> </span> {signalStrength}%"; |