Hyprland: Add clipboard management

This commit is contained in:
GHOSCHT 2024-12-14 00:43:32 +01:00
parent 4b6f14b2d2
commit 45fa574d81
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 18 additions and 17 deletions

View file

@ -3,15 +3,16 @@
settings = { settings = {
# autostart # autostart
exec-once = [ exec-once = [
"picokontroller" "picokontroller" # volume & light control
"systemctl --user start hyprpolkitagent" "systemctl --user start hyprpolkitagent" # polkit agent
"busctl --user -- set-property rs.wl-gammarelay / rs.wl.gammarelay Temperature q 4000" "hyprshade on bluelight" # set bluelight shader
"hyprshade on bluelight" "fcitx5 -d" # japanese typing
"fcitx5 -d" "webcord --start-minimized --force-audio-share-support" # discord but some privacy
"webcord --start-minimized --force-audio-share-support" "kdeconnect-indicator & kdeconnect-cli -l" # kde connect
"kdeconnect-indicator & kdeconnect-cli -l"
"signal-desktop --start-in-tray" "signal-desktop --start-in-tray"
"easyeffects --gapplication-service" "easyeffects --gapplication-service"
"wl-clip-persist --clipboard both &" # Keep Wayland clipboard even after programs close
"wl-paste --watch cliphist store &" # Store clipboard contents in cliphist on each change
]; ];
input = { input = {
@ -114,7 +115,7 @@
"$mainMod, Return, exec, $terminal" "$mainMod, Return, exec, $terminal"
"$mainMod SHIFT, C, killactive" "$mainMod SHIFT, C, killactive"
"$mainMod SHIFT, Q, exit" "$mainMod SHIFT, Q, exit"
"$mainMod, V, togglefloating" "$mainMod, T, togglefloating"
"$mainMod, Space, exec, $menu" "$mainMod, Space, exec, $menu"
"$mainMod, P, pseudo" # dwindle "$mainMod, P, pseudo" # dwindle
"$mainMod, J, togglesplit" # dwindle "$mainMod, J, togglesplit" # dwindle
@ -162,6 +163,9 @@
",XF86AudioNext,exec, playerctl next" ",XF86AudioNext,exec, playerctl next"
",XF86AudioPrev,exec, playerctl previous" ",XF86AudioPrev,exec, playerctl previous"
",XF86AudioStop,exec, playerctl stop" ",XF86AudioStop,exec, playerctl stop"
# clipboard manager
"$mainMod, V, exec, cliphist list | wofi --show dmenu | cliphist decode | wl-copy"
]; ];
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with mainMod + LMB/RMB and dragging

View file

@ -1,19 +1,16 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ ./config.nix ./variables.nix ]; imports = [ ./config.nix ./variables.nix ];
home.packages = with pkgs; [ home.packages = with pkgs; [
swww hyprpicker # color picker
hyprpicker wofi # dmenu replacement
wofi hyprshade # shader control, used for rudimentary blue-light filter
hyprshade
hyprpolkitagent hyprpolkitagent
grim grim
slurp slurp
# clipboard management
wl-clip-persist wl-clip-persist
wl-clipboard
cliphist cliphist
wf-recorder
glib
wayland
direnv
]; ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
@ -25,7 +22,7 @@
enable = true; enable = true;
settings = { settings = {
global = { global = {
corner_radius = 5; corner_radius = 5;
}; };
}; };
}; };