fix clipboard manager

This commit is contained in:
foglar 2024-12-29 16:57:33 +01:00
parent e0b5988688
commit 1163e12cea
4 changed files with 22 additions and 22 deletions

View File

@ -21,7 +21,7 @@
libreoffice libreoffice
localsend localsend
kdePackages.kdeconnect-kde kdePackages.kdeconnect-kde
vlc mpv
openrocket openrocket
spotube spotube
inkscape inkscape

View File

@ -246,7 +246,7 @@
"$mod, Tab, exec, ${pkgs.toybox}/bin/pkill -x rofi || ${pkgs.rofi-wayland}/bin/rofi -show window" "$mod, Tab, exec, ${pkgs.toybox}/bin/pkill -x rofi || ${pkgs.rofi-wayland}/bin/rofi -show window"
"$mod+Shift, E, exec, ${pkgs.toybox}/bin/pkill -x rofi || ${pkgs.rofi-wayland}/bin/rofi -show emoji" "$mod+Shift, E, exec, ${pkgs.toybox}/bin/pkill -x rofi || ${pkgs.rofi-wayland}/bin/rofi -show emoji"
# Clipboard manager # Clipboard manager
"$mod, V, exec, ${pkgs.toybox}/bin/pkill -x rofi || clipboard" "$mod, V, exec, ${pkgs.toybox}/bin/pkill -x rofi || clipboard d"
# Grouped Windows # Grouped Windows
"$mod CTRL, H, changegroupactive, b" "$mod CTRL, H, changegroupactive, b"

View File

@ -9,7 +9,7 @@
}; };
imports = [ imports = [
./clipboard-rofi.nix ./clipboard-rofi.nix
]; ];
config = lib.mkIf config.desktop.hyprland.rofi.enable { config = lib.mkIf config.desktop.hyprland.rofi.enable {
@ -35,7 +35,7 @@
font = "JetBrainsMono Nerd Font 10"; font = "JetBrainsMono Nerd Font 10";
icon-theme = "Tela-circle-dracula"; icon-theme = "Tela-circle-dracula";
}; };
# Main window settings # Main window settings
"window" = { "window" = {
height = mkLiteral "35em"; height = mkLiteral "35em";
@ -49,7 +49,7 @@
#border-color = mkLiteral "@main-br"; # replace with actual color hex if needed #border-color = mkLiteral "@main-br"; # replace with actual color hex if needed
#background-color = mkLiteral "@main-bg"; #background-color = mkLiteral "@main-bg";
}; };
# Mainbox settings # Mainbox settings
"mainbox" = { "mainbox" = {
enabled = true; enabled = true;
@ -58,9 +58,9 @@
orientation = mkLiteral "vertical"; orientation = mkLiteral "vertical";
children = ["inputbar" "listbox"]; children = ["inputbar" "listbox"];
background-color = mkLiteral "transparent"; background-color = mkLiteral "transparent";
background-image = mkLiteral "url(\"~/.dotfiles/config/backgrounds/aurora_borealis.png\", height)"; background-image = mkLiteral "url(\"~/.dotfiles/config/backgrounds/aurora_borealis.png\", HEIGHT)";
}; };
# Input bar settings # Input bar settings
"inputbar" = { "inputbar" = {
enabled = true; enabled = true;
@ -68,9 +68,9 @@
padding = mkLiteral "5em"; padding = mkLiteral "5em";
children = ["entry"]; children = ["entry"];
background-color = mkLiteral "transparent"; background-color = mkLiteral "transparent";
background-image = mkLiteral "url(\"~/.dotfiles/config/backgrounds/aurora_borealis.png\", width)"; background-image = mkLiteral "url(\"~/.dotfiles/config/backgrounds/aurora_borealis.png\", WIDTH)";
}; };
# Entry field settings # Entry field settings
"entry" = { "entry" = {
border-radius = mkLiteral "2em"; border-radius = mkLiteral "2em";
@ -80,7 +80,7 @@
#text-color = mkLiteral "@main-fg"; #text-color = mkLiteral "@main-fg";
#background-color = mkLiteral "@main-bg"; #background-color = mkLiteral "@main-bg";
}; };
# Listbox settings # Listbox settings
"listbox" = { "listbox" = {
padding = mkLiteral "0em"; padding = mkLiteral "0em";
@ -89,7 +89,7 @@
children = ["listview" "mode-switcher"]; children = ["listview" "mode-switcher"];
#background-color = mkLiteral "@main-bg"; #background-color = mkLiteral "@main-bg";
}; };
# List view settings # List view settings
"listview" = { "listview" = {
padding = mkLiteral "1.5em"; padding = mkLiteral "1.5em";
@ -108,7 +108,7 @@
background-color = mkLiteral "transparent"; background-color = mkLiteral "transparent";
#text-color = mkLiteral "@main-fg"; #text-color = mkLiteral "@main-fg";
}; };
# Mode switcher settings # Mode switcher settings
"mode-switcher" = { "mode-switcher" = {
orientation = mkLiteral "vertical"; orientation = mkLiteral "vertical";
@ -118,7 +118,7 @@
spacing = mkLiteral "1.5em"; spacing = mkLiteral "1.5em";
background-color = mkLiteral "transparent"; background-color = mkLiteral "transparent";
}; };
# Button settings # Button settings
"button" = { "button" = {
cursor = "pointer"; cursor = "pointer";
@ -130,7 +130,7 @@
#background-color = mkLiteral "@main-fg"; #background-color = mkLiteral "@main-fg";
#text-color = mkLiteral "@main-bg"; #text-color = mkLiteral "@main-bg";
}; };
# Element settings # Element settings
"element" = { "element" = {
enabled = true; enabled = true;
@ -144,7 +144,7 @@
#background-color = mkLiteral "@select-bg"; #background-color = mkLiteral "@select-bg";
#text-color = mkLiteral "@select-fg"; #text-color = mkLiteral "@select-fg";
}; };
# Icon element settings # Icon element settings
"element-icon" = { "element-icon" = {
size = mkLiteral "3em"; size = mkLiteral "3em";
@ -152,7 +152,7 @@
#background-color = mkLiteral "transparent"; #background-color = mkLiteral "transparent";
#text-color = mkLiteral "inherit"; #text-color = mkLiteral "inherit";
}; };
# Text element settings # Text element settings
"element-text" = { "element-text" = {
vertical-align = mkLiteral "0.5"; vertical-align = mkLiteral "0.5";
@ -161,7 +161,7 @@
#background-color = mkLiteral "transparent"; #background-color = mkLiteral "transparent";
#text-color = mkLiteral "inherit"; #text-color = mkLiteral "inherit";
}; };
# Error message settings # Error message settings
"error-message" = { "error-message" = {
#text-color = mkLiteral "@main-fg"; #text-color = mkLiteral "@main-fg";
@ -169,7 +169,7 @@
text-transform = mkLiteral "capitalize"; text-transform = mkLiteral "capitalize";
children = ["textbox"]; children = ["textbox"];
}; };
# Textbox settings # Textbox settings
"textbox" = { "textbox" = {
#text-color = mkLiteral "inherit"; #text-color = mkLiteral "inherit";
@ -178,6 +178,6 @@
horizontal-align = mkLiteral "0.5"; horizontal-align = mkLiteral "0.5";
}; };
}; };
}; };
}; };
} }

View File

@ -225,9 +225,9 @@
format = "{}"; format = "{}";
rotate = 0; rotate = 0;
exec = "echo ; echo 󰅇 clipboard history"; exec = "echo ; echo 󰅇 clipboard history";
on-click = "sleep 0.1 && cliphist.sh c"; on-click = "sleep 0.1 && clipboard d";
on-click-right = "sleep 0.1 && cliphist.sh d"; on-click-right = "sleep 0.1 && clipboard";
on-click-middle = "sleep 0.1 && cliphist.sh w"; on-click-middle = "sleep 0.1 && clipboard";
interval = 86400; # once every day; interval = 86400; # once every day;
tooltip = true; tooltip = true;
}; };