aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-07-22 15:24:55 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-07-22 15:24:55 +0530
commit1f80ae89d060a48f9959c67840e641372a04e127 (patch)
tree9ece31d7855996968414c3ec85f28b237f5ddc22
parentea67a0fe498578d03b27bcf7365acfc69cc840b4 (diff)
greyline, live wallpaper
-rw-r--r--flake.lock45
-rw-r--r--flake.nix5
-rw-r--r--home-manager/home.nix23
-rwxr-xr-xhypr/battery-notif.sh6
-rw-r--r--hypr/battery/battery_critical.pngbin2574 -> 0 bytes
-rw-r--r--hypr/battery/battery_low.pngbin2083 -> 0 bytes
-rwxr-xr-xhypr/greyline.sh6
-rw-r--r--hypr/hyprland/exec_once.conf3
-rw-r--r--hypr/hyprpaper.conf5
-rwxr-xr-xhypr/wall.sh3
-rw-r--r--nixos/desktop-environment.nix3
11 files changed, 82 insertions, 17 deletions
diff --git a/flake.lock b/flake.lock
index bd14ec0..d03e0cc 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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"
diff --git a/flake.nix b/flake.nix
index 61d45ec..82e93c3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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
deleted file mode 100644
index cf73f50..0000000
--- a/hypr/battery/battery_critical.png
+++ /dev/null
Binary files differ
diff --git a/hypr/battery/battery_low.png b/hypr/battery/battery_low.png
deleted file mode 100644
index 39d2d89..0000000
--- a/hypr/battery/battery_low.png
+++ /dev/null
Binary files differ
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