mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-11 01:12:43 +02:00
worked on waybar config
This commit is contained in:
1 parent
25e3032ff6
commit
8fea37feef
4 files changed
+77
-20
No files matched your search
@@ -1,11 +1,20 @@
|
||||
{ writeShellApplication, hyprpicker, libnotify, toybox, ... }:
|
||||
|
||||
# useless
|
||||
# used to come from my old dotfiles which were copied from fedora-hyprdots
|
||||
# just use hyprpicker | tee >(wl-copy) | cliphist store
|
||||
# because hyprpicker and cliphist are inside my configuration.nix
|
||||
# no need to verify their existence
|
||||
|
||||
|
||||
{ writeShellApplication, hyprpicker, libnotify, toybox, wl-clipboard, ... }:
|
||||
|
||||
writeShellApplication {
|
||||
name = "custom-colorpicker";
|
||||
name = "custom-colorpicker-useless";
|
||||
runtimeInputs = [
|
||||
hyprpicker
|
||||
libnotify
|
||||
toybox
|
||||
wl-clipboard
|
||||
];
|
||||
text = ''
|
||||
check() {
|
||||
|
||||
@@ -14,7 +14,7 @@ TEXT2="''$(curl -s "https://wttr.in/?format=%t")"
|
||||
TEXT2=''${TEXT2/$PATTERN/}
|
||||
TEXT3="''$(curl -s "https://wttr.in/?format=%f")"
|
||||
TEXT3=''${TEXT3/$PATTERN/}
|
||||
printf '{"text":"%s\n%s\n%s", "tooltip": false, "class": "weather"}\n' \
|
||||
printf '{"text":" %s\\n %s\\n %s", "tooltip": false, "class": "weather"}\\n' \
|
||||
"$TEXT1" "$TEXT2" "$TEXT3"
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user