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
|
|
@ -25,6 +25,7 @@
|
|||
"include \"live.kdl\""
|
||||
"output \"eDP-1\" { scale 1.1; }"
|
||||
"animations { window-open { duration-ms 3000; curve \"linear\"; custom-shader r\"\n${builtins.readFile ./shaders/arc.frag}\";};}"
|
||||
"binds {Mod+Shift+I { spawn \"${./scripts/cpdate.sh}\"; }; }"
|
||||
];
|
||||
in
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ binds {
|
|||
// spawn terminal
|
||||
Mod+Return repeat=false { spawn "kitty"; }
|
||||
Mod+D repeat=false { spawn "fuzzel"; }
|
||||
Mod+I repeat=false { spawn "bemoji"; }
|
||||
Mod+I repeat=false { spawn "bemoji" "-n"; }
|
||||
Mod+M repeat=false { spawn "hyprpicker"; }
|
||||
Mod+E repeat=false { spawn "kitty" "hx" "~/.config/niri/live.kdl"; }
|
||||
|
||||
|
|
|
|||
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