mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-03-01 18:32:48 +01:00
fuzzel stuff
This commit is contained in:
parent
c91ed9d0b6
commit
7377d68831
3 changed files with 22 additions and 1 deletions
20
modules/desktop/home/niri/scripts/cpdate.sh
Executable file
20
modules/desktop/home/niri/scripts/cpdate.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env nu
|
||||
|
||||
const FORMATS = [
|
||||
"%F"
|
||||
"%R"
|
||||
"%d.%m.%Y"
|
||||
"%d.%m"
|
||||
"%T"
|
||||
"%FT%H"
|
||||
"%FT%R"
|
||||
"%F %R"
|
||||
"%F %T"
|
||||
];
|
||||
|
||||
def main [] {
|
||||
let date = date now;
|
||||
let len = $FORMATS | length;
|
||||
|
||||
$FORMATS | each {|it| $date | format date $it } | to text | fuzzel -dl $len | str trim | wl-copy
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue