diff --git a/flake.lock b/flake.lock index c030866..2452c64 100644 --- a/flake.lock +++ b/flake.lock @@ -83,11 +83,11 @@ ] }, "locked": { - "lastModified": 1749155310, - "narHash": "sha256-t0HfHg/1+TbSra5s6nNM0o4tnb3uqWedShSpZXsUMYY=", + "lastModified": 1747864449, + "narHash": "sha256-PIjVAWghZhr3L0EFM2UObhX84UQxIACbON0IC0zzSKA=", "owner": "hyprwm", "repo": "aquamarine", - "rev": "94981cf75a9f11da0b6dd6a1abbd7c50a36ab2d3", + "rev": "389372c5f4dc1ac0e7645ed29a35fd6d71672ef5", "type": "github" }, "original": { @@ -101,11 +101,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1749223974, - "narHash": "sha256-/GAQYRW1duU81KG//2wI9ax8EkHVG/e1UOD97NdwLOY=", + "lastModified": 1748080874, + "narHash": "sha256-sUebEzAkrY8Aq5G0GHFyRddmRNGP/a2iTtV7ISNvi/c=", "owner": "catppuccin", "repo": "nix", - "rev": "3a42cd79c647360ee8742659e42aeec0947dd3b4", + "rev": "0ba11b12be81f0849a89ed17ab635164ea8f0112", "type": "github" }, "original": { @@ -179,11 +179,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1748821116, - "narHash": "sha256-F82+gS044J1APL0n4hH50GYdPRv/5JWm34oCJYmVKdE=", + "lastModified": 1743550720, + "narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "49f0870db23e8c1ca0b5259734a02cd9e1e371a1", + "rev": "c621e8422220273271f52058f618c94e405bb0f5", "type": "github" }, "original": { @@ -337,11 +337,11 @@ ] }, "locked": { - "lastModified": 1749358668, - "narHash": "sha256-V91nN4Q9ZwX0N+Gzu+F8SnvzMcdURYnMcIvpfLQzD5M=", + "lastModified": 1747978958, + "narHash": "sha256-pQQnbxWpY3IiZqgelXHIe/OAE/Yv4NSQq7fch7M6nXQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "06451df423dd5e555f39857438ffc16c5b765862", + "rev": "7419250703fd5eb50e99bdfb07a86671939103ea", "type": "github" }, "original": { @@ -384,11 +384,11 @@ ] }, "locked": { - "lastModified": 1749155331, - "narHash": "sha256-XR9fsI0zwLiFWfqi/pdS/VD+YNorKb3XIykgTg4l1nA=", + "lastModified": 1745948457, + "narHash": "sha256-lzTV10FJTCGNtMdgW5YAhCAqezeAzKOd/97HbQK8GTU=", "owner": "hyprwm", "repo": "hyprcursor", - "rev": "45fcc10b4c282746d93ec406a740c43b48b4ef80", + "rev": "ac903e80b33ba6a88df83d02232483d99f327573", "type": "github" }, "original": { @@ -413,11 +413,11 @@ ] }, "locked": { - "lastModified": 1749238452, - "narHash": "sha256-8qiKEWcxUrjpUpK+WyFNg/72C8rp70LUuyTD23T+SdQ=", + "lastModified": 1745015490, + "narHash": "sha256-apEJ9zoSzmslhJ2vOKFcXTMZLUFYzh1ghfB6Rbw3Low=", "owner": "hyprwm", "repo": "hyprgraphics", - "rev": "c7225d73755a6c4c7c72f4d4f3925ea426e325a8", + "rev": "60754910946b4e2dc1377b967b7156cb989c5873", "type": "github" }, "original": { @@ -444,11 +444,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1749367163, - "narHash": "sha256-qhvFE5j3evQ7oaaIL/cpCwMF57O+KLQj+U/oPRVOOyc=", + "lastModified": 1748112063, + "narHash": "sha256-+1wJYkfvw6weJJ2xTbcqCfhLR/DNy4ymTHsF8I8uj/g=", "ref": "refs/heads/main", - "rev": "c6f713fefe59c8c51783210dad6b68586f248de2", - "revCount": 6174, + "rev": "28c9122adbb9cba2ba19ad723eb0f36c19b21f2d", + "revCount": 6134, "submodules": true, "type": "git", "url": "https://github.com/hyprwm/Hyprland" @@ -471,11 +471,11 @@ ] }, "locked": { - "lastModified": 1749046714, - "narHash": "sha256-kymV5FMnddYGI+UjwIw8ceDjdeg7ToDVjbHCvUlhn14=", + "lastModified": 1743714874, + "narHash": "sha256-yt8F7NhMFCFHUHy/lNjH/pjZyIDFNk52Q4tivQ31WFo=", "owner": "hyprwm", "repo": "hyprland-protocols", - "rev": "613878cb6f459c5e323aaafe1e6f388ac8a36330", + "rev": "3a5c2bda1c1a4e55cc1330c782547695a93f05b2", "type": "github" }, "original": { @@ -496,11 +496,11 @@ ] }, "locked": { - "lastModified": 1749046714, - "narHash": "sha256-kymV5FMnddYGI+UjwIw8ceDjdeg7ToDVjbHCvUlhn14=", + "lastModified": 1738422629, + "narHash": "sha256-5v+bv75wJWvahyM2xcMTSNNxmV8a7hb01Eey5zYnBJw=", "owner": "hyprwm", "repo": "hyprland-protocols", - "rev": "613878cb6f459c5e323aaafe1e6f388ac8a36330", + "rev": "755aef8dab49d0fc4663c715fa4ad221b2aedaed", "type": "github" }, "original": { @@ -528,11 +528,11 @@ ] }, "locked": { - "lastModified": 1749154592, - "narHash": "sha256-DO7z5CeT/ddSGDEnK9mAXm1qlGL47L3VAHLlLXoCjhE=", + "lastModified": 1737634706, + "narHash": "sha256-nGCibkfsXz7ARx5R+SnisRtMq21IQIhazp6viBU8I/A=", "owner": "hyprwm", "repo": "hyprland-qt-support", - "rev": "4c8053c3c888138a30c3a6c45c2e45f5484f2074", + "rev": "8810df502cdee755993cb803eba7b23f189db795", "type": "github" }, "original": { @@ -564,11 +564,11 @@ ] }, "locked": { - "lastModified": 1749155776, - "narHash": "sha256-t1PM0wxQLQwv2F2AW23uA7pm5giwmcgYEWbNIRct9r4=", + "lastModified": 1745951494, + "narHash": "sha256-2dModE32doiyQMmd6EDAQeZnz+5LOs6KXyE0qX76WIg=", "owner": "hyprwm", "repo": "hyprland-qtutils", - "rev": "396e8aa1c06274835b69da7f9a015fff9a9b7522", + "rev": "4be1d324faf8d6e82c2be9f8510d299984dfdd2e", "type": "github" }, "original": { @@ -593,11 +593,11 @@ ] }, "locked": { - "lastModified": 1749145882, - "narHash": "sha256-qr0KXeczF8Sma3Ae7+dR2NHhvG7YeLBJv19W4oMu6ZE=", + "lastModified": 1747484975, + "narHash": "sha256-+LAQ81HBwG0lwshHlWe0kfWg4KcChIPpnwtnwqmnoEU=", "owner": "hyprwm", "repo": "hyprlang", - "rev": "1bfb84f54d50c7ae6558c794d3cfd5f6a7e6e676", + "rev": "163c83b3db48a17c113729c220a60b94596c9291", "type": "github" }, "original": { @@ -614,11 +614,11 @@ "systems": "systems_4" }, "locked": { - "lastModified": 1749162400, - "narHash": "sha256-tK5PCJVvpx95hbKvzUGldS3QIwuFfz5rYdc8EDCelL8=", + "lastModified": 1747584204, + "narHash": "sha256-F3hXDTk28yyFzkDpsWbhrU+QbUzjMsVX9/jO/aTLJwc=", "owner": "hyprwm", "repo": "hyprpicker", - "rev": "b01491ac4e8c193a07e6f55756f159a978a4057b", + "rev": "500c46185dd4f2b5e16cd1a4edfe9ed1e126452e", "type": "github" }, "original": { @@ -636,11 +636,11 @@ "systems": "systems_5" }, "locked": { - "lastModified": 1749186395, - "narHash": "sha256-4PMO6bm0hHEOzGEhXRYSCLpkGT6lGwvax8GkLo+nK5w=", + "lastModified": 1746481417, + "narHash": "sha256-mal2vIpRz5BU/0ll6gP/N2FqjFtgFNDgMBgoI6tLWag=", "owner": "hyprwm", "repo": "hyprsunset", - "rev": "4528cca4b2e4b44ed0a4e767a0ba493770d9d141", + "rev": "2a8ef76c6a77ca249e4613fefcd96bad74b5f9b2", "type": "github" }, "original": { @@ -661,11 +661,11 @@ ] }, "locked": { - "lastModified": 1749135356, - "narHash": "sha256-Q8mAKMDsFbCEuq7zoSlcTuxgbIBVhfIYpX0RjE32PS0=", + "lastModified": 1746635225, + "narHash": "sha256-W9G9bb0zRYDBRseHbVez0J8qVpD5QbizX67H/vsudhM=", "owner": "hyprwm", "repo": "hyprutils", - "rev": "e36db00dfb3a3d3fdcc4069cb292ff60d2699ccb", + "rev": "674ea57373f08b7609ce93baff131117a0dfe70d", "type": "github" }, "original": { @@ -686,11 +686,11 @@ ] }, "locked": { - "lastModified": 1749135356, - "narHash": "sha256-Q8mAKMDsFbCEuq7zoSlcTuxgbIBVhfIYpX0RjE32PS0=", + "lastModified": 1737632363, + "narHash": "sha256-X9I8POSlHxBVjD0fiX1O2j7U9Zi1+4rIkrsyHP0uHXY=", "owner": "hyprwm", "repo": "hyprutils", - "rev": "e36db00dfb3a3d3fdcc4069cb292ff60d2699ccb", + "rev": "006620eb29d54ea9086538891404c78563d1bae1", "type": "github" }, "original": { @@ -711,11 +711,11 @@ ] }, "locked": { - "lastModified": 1749135356, - "narHash": "sha256-Q8mAKMDsFbCEuq7zoSlcTuxgbIBVhfIYpX0RjE32PS0=", + "lastModified": 1741534688, + "narHash": "sha256-EV3945SnjOCuRVbGRghsWx/9D89FyshnSO1Q6/TuQ14=", "owner": "hyprwm", "repo": "hyprutils", - "rev": "e36db00dfb3a3d3fdcc4069cb292ff60d2699ccb", + "rev": "dd1f720cbc2dbb3c71167c9598045dd3261d27b3", "type": "github" }, "original": { @@ -736,11 +736,11 @@ ] }, "locked": { - "lastModified": 1749145760, - "narHash": "sha256-IHaGWpGrv7seFWdw/1A+wHtTsPlOGIKMrk1TUIYJEFI=", + "lastModified": 1747584298, + "narHash": "sha256-PH9qZqWLHvSBQiUnA0NzAyQA3tu2no2z8kz0ZeHWj4w=", "owner": "hyprwm", "repo": "hyprwayland-scanner", - "rev": "817918315ea016cc2d94004bfb3223b5fd9dfcc6", + "rev": "e511882b9c2e1d7a75d45d8fddd2160daeafcbc3", "type": "github" }, "original": { @@ -761,11 +761,11 @@ ] }, "locked": { - "lastModified": 1749145760, - "narHash": "sha256-IHaGWpGrv7seFWdw/1A+wHtTsPlOGIKMrk1TUIYJEFI=", + "lastModified": 1735493474, + "narHash": "sha256-fktzv4NaqKm94VAkAoVqO/nqQlw+X0/tJJNAeCSfzK4=", "owner": "hyprwm", "repo": "hyprwayland-scanner", - "rev": "817918315ea016cc2d94004bfb3223b5fd9dfcc6", + "rev": "de913476b59ee88685fdc018e77b8f6637a2ae0b", "type": "github" }, "original": { @@ -786,11 +786,11 @@ ] }, "locked": { - "lastModified": 1749145760, - "narHash": "sha256-IHaGWpGrv7seFWdw/1A+wHtTsPlOGIKMrk1TUIYJEFI=", + "lastModified": 1739870480, + "narHash": "sha256-SiDN5BGxa/1hAsqhgJsS03C3t2QrLgBT8u+ENJ0Qzwc=", "owner": "hyprwm", "repo": "hyprwayland-scanner", - "rev": "817918315ea016cc2d94004bfb3223b5fd9dfcc6", + "rev": "206367a08dc5ac4ba7ad31bdca391d098082e64b", "type": "github" }, "original": { @@ -835,11 +835,11 @@ "nixpkgs": "nixpkgs_7" }, "locked": { - "lastModified": 1749348095, - "narHash": "sha256-4KaUocEPNoU6gpFE6WPLMvMK5tmvJyc0qf84Mp8Chlw=", + "lastModified": 1747965612, + "narHash": "sha256-koAXv7H+cZBMOZkOekO7AIan0e75/ptPqkiOkO3x9lM=", "owner": "fufexan", "repo": "nix-gaming", - "rev": "4221d80488883c40003f0704af78699a583f0c9f", + "rev": "10e16d55b14d6d2f86d636d546be5130c0827933", "type": "github" }, "original": { @@ -850,11 +850,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1749195551, - "narHash": "sha256-W5GKQHgunda/OP9sbKENBZhMBDNu2QahoIPwnsF6CeM=", + "lastModified": 1747900541, + "narHash": "sha256-dn64Pg9xLETjblwZs9Euu/SsjW80pd6lr5qSiyLY1pg=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "4602f7e1d3f197b3cb540d5accf5669121629628", + "rev": "11f2d9ea49c3e964315215d6baa73a8d42672f06", "type": "github" }, "original": { @@ -881,11 +881,11 @@ }, "nixpkgs-lib": { "locked": { - "lastModified": 1748740939, - "narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=", + "lastModified": 1743296961, + "narHash": "sha256-b1EdN3cULCqtorQ4QeWgLMrd5ZGOjLSLemfa00heasc=", "owner": "nix-community", "repo": "nixpkgs.lib", - "rev": "656a64127e9d791a334452c6b6606d17539476e2", + "rev": "e4822aea2a6d1cdd36653c134cacfd64c97ff4fa", "type": "github" }, "original": { @@ -927,11 +927,11 @@ }, "nixpkgs_11": { "locked": { - "lastModified": 1749143949, - "narHash": "sha256-QuUtALJpVrPnPeozlUG/y+oIMSLdptHxb3GK6cpSVhA=", + "lastModified": 1748026106, + "narHash": "sha256-6m1Y3/4pVw1RWTsrkAK2VMYSzG4MMIj7sqUy7o8th1o=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d3d2d80a2191a73d1e86456a751b83aa13085d7d", + "rev": "063f43f2dbdef86376cc29ad646c45c46e93234c", "type": "github" }, "original": { @@ -991,11 +991,11 @@ }, "nixpkgs_5": { "locked": { - "lastModified": 1748929857, - "narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=", + "lastModified": 1737469691, + "narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4", + "rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab", "type": "github" }, "original": { @@ -1007,11 +1007,11 @@ }, "nixpkgs_6": { "locked": { - "lastModified": 1748929857, - "narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=", + "lastModified": 1741851582, + "narHash": "sha256-cPfs8qMccim2RBgtKGF+x9IBCduRvd/N5F4nYpU0TVE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4", + "rev": "6607cf789e541e7873d40d3a8f7815ea92204f32", "type": "github" }, "original": { @@ -1023,11 +1023,11 @@ }, "nixpkgs_7": { "locked": { - "lastModified": 1749213349, - "narHash": "sha256-UAaWOyQhdp7nXzsbmLVC67fo+QetzoTm9hsPf9X3yr4=", + "lastModified": 1747426788, + "narHash": "sha256-N4cp0asTsJCnRMFZ/k19V9akkxb7J/opG+K+jU57JGc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a4ff0e3c64846abea89662bfbacf037ef4b34207", + "rev": "12a55407652e04dcf2309436eb06fef0d3713ef3", "type": "github" }, "original": { @@ -1039,11 +1039,11 @@ }, "nixpkgs_8": { "locked": { - "lastModified": 1749143949, - "narHash": "sha256-QuUtALJpVrPnPeozlUG/y+oIMSLdptHxb3GK6cpSVhA=", + "lastModified": 1748026106, + "narHash": "sha256-6m1Y3/4pVw1RWTsrkAK2VMYSzG4MMIj7sqUy7o8th1o=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "d3d2d80a2191a73d1e86456a751b83aa13085d7d", + "rev": "063f43f2dbdef86376cc29ad646c45c46e93234c", "type": "github" }, "original": { @@ -1116,11 +1116,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1749380898, - "narHash": "sha256-+2SAsUATVrLVuOfyGW8NoYxHkb8SdMsZCK4qsRsv4Y0=", + "lastModified": 1748115910, + "narHash": "sha256-XrtByWu6NjrGq1nysW4XsliVLslZXXKzCKHSC6QM5dY=", "owner": "nix-community", "repo": "NUR", - "rev": "31c477ffe92da8531f55c71333a394e89fc2438f", + "rev": "24dcce023477b994838e387ae042c6b93a749288", "type": "github" }, "original": { @@ -1350,11 +1350,11 @@ ] }, "locked": { - "lastModified": 1749155346, - "narHash": "sha256-KIkJu3zF8MF3DuGwzAmo3Ww9wsWXolwV30SjJRTAxYE=", + "lastModified": 1745871725, + "narHash": "sha256-M24SNc2flblWGXFkGQfqSlEOzAGZnMc9QG3GH4K/KbE=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "44bf29f1df45786098920c655af523535a9191ae", + "rev": "76bbf1a6b1378e4ab5230bad00ad04bc287c969e", "type": "github" }, "original": { diff --git a/hosts/sakura/default.nix b/hosts/sakura/default.nix index 50945a5..8b81c17 100644 --- a/hosts/sakura/default.nix +++ b/hosts/sakura/default.nix @@ -31,15 +31,11 @@ gui.enable = true; }; - services = { - vnstat.enable = true; - hardware.bolt.enable = true; - }; - hardware.framework = { amd-7040.preventWakeOnAC = true; laptop13.audioEnhancement.enable = true; }; + services.hardware.bolt.enable = true; networking.hostName = "sakura"; diff --git a/modules/home/hyprlock/default.nix b/modules/home/hyprlock/default.nix index 2a5eece..43a6f10 100644 --- a/modules/home/hyprlock/default.nix +++ b/modules/home/hyprlock/default.nix @@ -10,14 +10,14 @@ "/home/${username}/.config/hypr/hyprlock.conf" = { executable = false; text = '' - background { - monitor = - path = /home/liv/.local/share/bg.png - blur_passes = 2 - contrast = 1 - brightness = 0.6 - vibrancy = 0.2 - vibrancy_darkness = 0.2 + # GENERAL + general { + no_fade_in = true + grace = 1 + disable_loading_bar = false + hide_cursor = true + ignore_empty_input = true + text_trim = true } auth { @@ -29,133 +29,102 @@ } } - general { - no_fade_in = false - no_fade_out = false - hide_cursor = false - grace = 0 - disable_loading_bar = false - } - - input-field { - monitor = - size = 250, 60 - outline_thickness = 2 - dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 - dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0 - dots_center = true - outer_color = rgba(0, 0, 0, 0) - inner_color = rgba(0, 0, 0, 0.2) - font_color = rgb(209, 207, 207) - fade_on_empty = false - rounding = 32 - fail_color = rgba(191, 97, 106, 0.75) - check_color = rgba(235, 203, 139, 0.75) - placeholder_text = - hide_input = false - position = 0, -400 - halign = center - valign = center - } - - label { - monitor = - text = cmd[update:1000] echo "$(date +"%A, %B %d")" - color = rgba(209, 207, 207, 0.75) - font_size = 22 - font_family = JetBrains Mono - position = 0, 300 - halign = center - valign = center - } - - label { - monitor = - text = cmd[update:1000] echo "$(date +"%-H:%M")" - color = rgba(209, 207, 207, 0.75) - font_size = 95 - font_family = JetBrains Mono Extrabold - position = 0, 200 - halign = center - valign = center - } - - # Profile Picture - # image { - # monitor = - # path = /home/liv/.face - # size = 100 - # border_size = 3 - # rounding = 64 - # border_color = rgb(133, 180, 234) - # position = 0, -100 - # halign = center - # valign = center - # } - - # CURRENT SONG - image { + #BACKGROUND + background { monitor = - size = 256 # lesser side if not 1:1 ratio - rounding = 6 # negative values mean circle - border_size = 2 - border_color = rgb(133, 180, 234) - rotate = -6 # degrees, counter-clockwise - reload_time = 2 - reload_cmd = ~/.local/bin/hyprlock-art.sh - position = 0, -25 - halign = center - valign = center - opacity = 1 - } - - image { - monitor = - size = 256 # lesser side if not 1:1 ratio - rounding = 6 # negative values mean circle - border_size = 3 - border_color = rgb(133, 180, 234) - rotate = 0 # degrees, counter-clockwise - reload_time = 2 - reload_cmd = /home/liv/.local/bin/hyprlock-art.sh - position = 0, -25 - halign = center - valign = center - opacity = 1 + path = screenshot + blur_passes = 2 + contrast = 0.8916 + brightness = 0.7172 + vibrancy = 0.1696 + vibrancy_darkness = 0 } + # TIME HR label { monitor = - text = cmd[update:1000] echo "$(waybar-music | jq .text | cut -d\" -f2)" - color = rgba(209, 207, 207, 0.75) - #color = rgba(255, 255, 255, 0.6) - font_size = 17 - font_family = JetBrains Mono Nerd Font Mono ExtraBold - position = 0, -200 - halign = center - valign = center - } - - label { - monitor = - text = cmd[update:6000000] echo "$(bash /home/liv/.local/bin/weather.sh)" + text = cmd[update:1000] echo -e "$(date +"%H")" color = rgba(255, 255, 255, 1) - font_size = 10 - font_family = JetBrains Mono Nerd Font Mono ExtraBold - position = 0, 50 + shadow_pass = 2 + shadow_size = 3 + shadow_color = rgb(0,0,0) + shadow_boost = 1.2 + font_size = 150 + # font_family = JetBrains Mono Nerd Font Mono ExtraBold + font_family = AlfaSlabOne + position = 0, -250 halign = center valign = top } + # TIME label { monitor = - text = cmd[update:1000] echo -e "$(/home/liv/.local/bin/hyprlock-battery.sh)" + text = cmd[update:1000] echo -e "$(date +"%M")" + # color = 0xff$color0 + color = rgba(255, 255, 255, 1) + font_size = 150 + # font_family = JetBrains Mono Nerd Font Mono ExtraBold + font_family = AlfaSlabOne + position = 0, -420 + halign = center + valign = top + } + + # DATE + label { + monitor = + text = cmd[update:1000] echo -e "$(date +"%d %b %A")" + color = rgba(255, 255, 255, 1) + font_size = 14 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, -130 + halign = center + valign = center + } + + # WEATHER + label { + monitor = + text = cmd[update:6000000] echo "$(bash /home/${username}/.local/bin/weather.sh)" + color = rgba(255, 255, 255, 1) + font_size = 10 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, 465 + halign = center + valign = center + } + + # INPUT FIELD + input-field { + monitor = + size = 250, 60 + outline_thickness = 0 + outer_color = rgba(0, 0, 0, 1) + dots_size = 0.1 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 1 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + inner_color = rgba(0, 0, 0, 1) + font_color = rgba(200, 200, 200, 1) + fade_on_empty = false + font_family = JetBrains Mono Nerd Font Mono + placeholder_text = + hide_input = false + position = 0, -470 + halign = center + valign = center + zindex = 10 + } + # Information + label { + monitor = + text = cmd[update:1000] echo -e "$(/home/${username}/.local/bin/hyprlock-battery.sh)" color = rgba(255, 255, 255, 1) font_size = 12 font_family = JetBrains Mono Nerd Font Mono ExtraBold - position = 0, 0 + position = -20, -510 halign = right - valign = bottom + valign = center } ''; }; diff --git a/modules/home/hyprlock/scripts.nix b/modules/home/hyprlock/scripts.nix index d7ee935..400e37b 100644 --- a/modules/home/hyprlock/scripts.nix +++ b/modules/home/hyprlock/scripts.nix @@ -43,27 +43,5 @@ echo "$battery_percentage% $battery_icon" ''; }; - "/home/${username}/.local/bin/hyprlock-art.sh" = { - executable = true; - text = '' - #!/usr/bin/env bash - url=$(playerctl metadata mpris:artUrl) - artist=$(playerctl metadata xesam:artist) - album=$(playerctl metadata xesam:album) - metadata=$(printf "$artist - $album") - - if [ "$url" == "No player found" ]; then - exit - elif [ -f "/home/${username}/.cache/albumart/$metadata.png" ]; then - echo "/home/${username}/.cache/albumart/$metadata.png" - else - mkdir -p "/home/${username}/.cache/albumart" - curl -s "$url" -o "/home/${username}/.cache/albumart/$metadata" - magick "/home/${username}/.cache/albumart/$metadata" "/home/${username}/.cache/albumart/$metadata.png" - rm "/home/${username}/.cache/albumart/$metadata" - echo "/home/${username}/.cache/albumart/$metadata.png" - fi - ''; - }; }; }