diff options
| -rw-r--r-- | flake.lock | 45 | ||||
| -rw-r--r-- | flake.nix | 5 | ||||
| -rw-r--r-- | home-manager/home.nix | 23 | ||||
| -rwxr-xr-x | hypr/battery-notif.sh | 6 | ||||
| -rw-r--r-- | hypr/battery/battery_critical.png | bin | 2574 -> 0 bytes | |||
| -rw-r--r-- | hypr/battery/battery_low.png | bin | 2083 -> 0 bytes | |||
| -rwxr-xr-x | hypr/greyline.sh | 6 | ||||
| -rw-r--r-- | hypr/hyprland/exec_once.conf | 3 | ||||
| -rw-r--r-- | hypr/hyprpaper.conf | 5 | ||||
| -rwxr-xr-x | hypr/wall.sh | 3 | ||||
| -rw-r--r-- | nixos/desktop-environment.nix | 3 |
11 files changed, 82 insertions, 17 deletions
@@ -1,5 +1,23 @@ { "nodes": { + "greyline": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1784713718, + "narHash": "sha256-ar2eZLXZJEkkY0YpZiK9cEqlUisvkgpRtcezoexXC/w=", + "owner": "FloatingComet62", + "repo": "greyline", + "rev": "a282e24763f5345dd3c48bd8f4c4dbf6c1f77469", + "type": "github" + }, + "original": { + "owner": "FloatingComet62", + "repo": "greyline", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -23,16 +41,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1784160687, - "narHash": "sha256-iYL/bixrb6FlHFu/gIuBYzq6c6lM5AAXsXNSWXtIgQc=", + "lastModified": 1781577229, + "narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=", "owner": "nixos", "repo": "nixpkgs", - "rev": "4382ed2b7a6839d4280a9b386db49cbc5907414d", + "rev": "567a49d1913ce81ac6e9582e3553dd90a955875f", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-26.05", + "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } @@ -53,6 +71,22 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1784160687, + "narHash": "sha256-iYL/bixrb6FlHFu/gIuBYzq6c6lM5AAXsXNSWXtIgQc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "4382ed2b7a6839d4280a9b386db49cbc5907414d", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-26.05", + "repo": "nixpkgs", + "type": "github" + } + }, "quickshell": { "inputs": { "nixpkgs": [ @@ -75,8 +109,9 @@ }, "root": { "inputs": { + "greyline": "greyline", "home-manager": "home-manager", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "nixpkgs-unstable": "nixpkgs-unstable", "quickshell": "quickshell", "zen-browser": "zen-browser" @@ -2,7 +2,7 @@ description = "System"; inputs = { - nixpkgs. url = "github:nixos/nixpkgs/nixos-26.05"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager/release-26.05"; @@ -21,6 +21,7 @@ home-manager.follows = "home-manager"; }; }; + greyline.url = "github:FloatingComet62/greyline"; }; outputs = { @@ -91,7 +92,7 @@ home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = { - inherit username unstable symlinkRoot; + inherit inputs username unstable symlinkRoot; }; home-manager.backupFileExtension = "hm-backup"; home-manager.users.${username} = import ./home-manager/home.nix; diff --git a/home-manager/home.nix b/home-manager/home.nix index f692d31..539eb54 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, symlinkRoot, username, ... }: +{ config, lib, pkgs, symlinkRoot, inputs, username, ... }: let inherit (config.lib.file) mkOutOfStoreSymlink; inherit (lib) flatten flip map mergeAttrsList; @@ -36,6 +36,7 @@ let links = flatMerge [confFiles confDirs]; in { + imports = [ inputs.greyline.homeManagerModules.default ]; xdg.configFile = links; home.username = username; @@ -56,4 +57,24 @@ in { EDITOR = "nvim"; }; programs.home-manager.enable = true; + + services.greyline = { + enable = true; + backend = "hyprpaper"; + fontFamily = "JetBrains Mono Nerd Font"; + settings = { + theme = "dark"; + logo = false; + format = "24h"; + twilight = { bands = true; darkness = "subtle"; }; + home = { tz = "Asia/Kolkata"; column_highlight = true; }; + city = [ + { name = "Kuala Lumpur"; lat = 3.14; lon = 101.69; tz = "Asia/Kuala_Lumpur"; } + { name = "Kolkata"; lat = 22.56; lon = 88.36; tz = "Asia/Kolkata"; } + { name = "London"; lat = 51.51; lon = -0.13; tz = "Europe/London"; } + { name = "New York"; lat = 40.71; lon = -74.01; tz = "America/New_York"; } + { name = "Tokyo"; lat = 35.68; lon = 139.69; tz = "Asia/Tokyo"; } + ]; + }; + }; } diff --git a/hypr/battery-notif.sh b/hypr/battery-notif.sh index e64442a..6c721a5 100755 --- a/hypr/battery-notif.sh +++ b/hypr/battery-notif.sh @@ -5,12 +5,12 @@ while true; do if [[ "$status" = "Discharging" ]]; then battery=$(cat /sys/class/power_supply/BAT1/capacity) if [[ battery -lt 16 ]]; then - notify-send -u critical "Very Low Battery" -i ~/.config/hypr/battery/battery_critical.png -t 5000 + notify-send -u critical "CHARGE" "Very Low Battery" -t 2000 elif [[ battery -lt 31 ]]; then - notify-send -u normal "Low Battery" -i ~/.config/hypr/battery/battery_low.png -t 5000 + notify-send -u normal "CHARGE" "Low Battery" -t 2000 fi fi pid=$! - sleep 5 + sleep 2 kill $pid done diff --git a/hypr/battery/battery_critical.png b/hypr/battery/battery_critical.png Binary files differdeleted file mode 100644 index cf73f50..0000000 --- a/hypr/battery/battery_critical.png +++ /dev/null diff --git a/hypr/battery/battery_low.png b/hypr/battery/battery_low.png Binary files differdeleted file mode 100644 index 39d2d89..0000000 --- a/hypr/battery/battery_low.png +++ /dev/null diff --git a/hypr/greyline.sh b/hypr/greyline.sh new file mode 100755 index 0000000..43c3564 --- /dev/null +++ b/hypr/greyline.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +while true; do + greyline + sleep $((60 - $(date +%S))) +done diff --git a/hypr/hyprland/exec_once.conf b/hypr/hyprland/exec_once.conf index 555ee86..ee270c7 100644 --- a/hypr/hyprland/exec_once.conf +++ b/hypr/hyprland/exec_once.conf @@ -1,5 +1,6 @@ -exec-once = ~/.config/hypr/wall.sh exec-once = ~/.config/hypr/battery-notif.sh +exec-once = ~/.config/hypr/greyline.sh exec-once = wl-paste --watch cliphist store exec-once = qs exec-once = hyprsunset +exec-once = hyprpaper diff --git a/hypr/hyprpaper.conf b/hypr/hyprpaper.conf new file mode 100644 index 0000000..9580494 --- /dev/null +++ b/hypr/hyprpaper.conf @@ -0,0 +1,5 @@ +wallpaper { + monitor = + path = ~/Pictures/space.png + fit_mode = cover +} diff --git a/hypr/wall.sh b/hypr/wall.sh deleted file mode 100755 index 931cb49..0000000 --- a/hypr/wall.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -swaybg -i ~/Pictures/space.png -m fill diff --git a/nixos/desktop-environment.nix b/nixos/desktop-environment.nix index 9af8f00..07ff113 100644 --- a/nixos/desktop-environment.nix +++ b/nixos/desktop-environment.nix @@ -8,7 +8,6 @@ programs.hyprland.enable = sessions.hyprland_wayland; programs.hyprlock.enable = sessions.hyprland_wayland; programs.foot.enable = true; - programs.sway.enable = true; programs.dconf.enable = true; environment.systemPackages = with pkgs; [ playerctl @@ -20,8 +19,8 @@ quickshell.packages.${pkgs.system}.quickshell qt6.qtwayland catppuccin-cursors.mochaMauve - swaybg grim + hyprpaper hyprcursor hyprsunset hyprpicker |
