clip clip

This commit is contained in:
nora 2025-09-18 21:42:55 +02:00
parent 37e325c588
commit b507f381a0
4 changed files with 36 additions and 5 deletions

21
flake.lock generated
View file

@ -1,5 +1,25 @@
{ {
"nodes": { "nodes": {
"clippyboard": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1758224382,
"narHash": "sha256-EQwtymWm+QLeRH35kPZdvGBwyuNsK7zvshg91O/FS7U=",
"owner": "Noratrieb",
"repo": "clippyboard",
"rev": "660afa0bc8f932c9cb13da5b4e1f3e1524c27085",
"type": "github"
},
"original": {
"owner": "Noratrieb",
"repo": "clippyboard",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
@ -219,6 +239,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"clippyboard": "clippyboard",
"home-manager": "home-manager", "home-manager": "home-manager",
"minegrub-theme": "minegrub-theme", "minegrub-theme": "minegrub-theme",
"niri": "niri", "niri": "niri",

View file

@ -19,6 +19,9 @@
niri.url = "github:sodiboo/niri-flake"; niri.url = "github:sodiboo/niri-flake";
clippyboard.url = "github:Noratrieb/clippyboard";
clippyboard.inputs.nixpkgs.follows = "nixpkgs";
# for firefox-nightly # for firefox-nightly
# firefox.url = "github:nix-community/flake-firefox-nightly"; # firefox.url = "github:nix-community/flake-firefox-nightly";
# firefox.inputs.nixpkgs.follows = "nixpkgs"; # firefox.inputs.nixpkgs.follows = "nixpkgs";

View file

@ -334,6 +334,11 @@ window-rule {
open-on-output "Lenovo Group Limited LEN G25-10 U4B30R14" open-on-output "Lenovo Group Limited LEN G25-10 U4B30R14"
} }
window-rule {
match app-id="clippyboard"
open-floating true
}
binds { binds {
// Keys consist of modifiers separated by + signs, followed by an XKB key name // Keys consist of modifiers separated by + signs, followed by an XKB key name
// in the end. To find an XKB name for a particular key, you may use a program // in the end. To find an XKB name for a particular key, you may use a program
@ -550,8 +555,8 @@ binds {
Mod+Shift+KP_Add { set-window-height "+10%"; } Mod+Shift+KP_Add { set-window-height "+10%"; }
// Move the focused window between the floating and the tiling layout. // Move the focused window between the floating and the tiling layout.
Mod+V { toggle-window-floating; } Mod+P { toggle-window-floating; }
Mod+Shift+V { switch-focus-between-floating-and-tiling; } Mod+Shift+P { switch-focus-between-floating-and-tiling; }
// move around floating windows, sadly not available via binds directly. // move around floating windows, sadly not available via binds directly.
Mod+Alt+Up { spawn "niri" "msg" "action" "move-floating-window" "-y" "-50"; } Mod+Alt+Up { spawn "niri" "msg" "action" "move-floating-window" "-y" "-50"; }
@ -593,7 +598,6 @@ binds {
Mod+Shift+E { quit; } Mod+Shift+E { quit; }
Ctrl+Alt+Delete { quit; } Ctrl+Alt+Delete { quit; }
// Powers off the monitors. To turn them back on, do any input like // Paste from clippyboard
// moving the mouse or pressing any other key. Mod+V { spawn "clippyboard-select"; }
Mod+Shift+P { power-off-monitors; }
} }

View file

@ -13,6 +13,7 @@ in
# inputs.hardware.nixosModules.common-ssd # inputs.hardware.nixosModules.common-ssd
inputs.niri.nixosModules.niri inputs.niri.nixosModules.niri
inputs.clippyboard.nixosModules.default
]; ];
nixpkgs = { nixpkgs = {
@ -134,6 +135,8 @@ in
}; };
programs.waybar.enable = true; programs.waybar.enable = true;
services.clippyboard.enable = true;
services.flatpak.enable = true; services.flatpak.enable = true;
console.keyMap = "sg"; console.keyMap = "sg";