@@ -1,7 +1,7 @@
|
|||||||
import gap from './gap/gap';
|
import gap from './gap/gap';
|
||||||
import date from './date/date';
|
|
||||||
import launcher from './launcher/launcher';
|
import launcher from './launcher/launcher';
|
||||||
import workspace from './workspace/workspace';
|
import workspace from './workspace/workspace';
|
||||||
|
import date from './date/date';
|
||||||
|
|
||||||
export default (monitor: number) => Widget.Window({
|
export default (monitor: number) => Widget.Window({
|
||||||
monitor,
|
monitor,
|
||||||
|
@@ -0,0 +1,10 @@
|
|||||||
|
const icon = () => Widget.Icon({
|
||||||
|
class_name: 'icon',
|
||||||
|
icon: "edit-paste-symbolic",
|
||||||
|
});
|
||||||
|
|
||||||
|
export default () => Widget.EventBox({
|
||||||
|
class_name: 'clipboard',
|
||||||
|
on_primary_click: () => Utils.execAsync('bash -c "cliphist list | rofi -cache-dir $XDG_CACHE_HOME/rofi -dmenu -display-columns 2 | cliphist decode | wl-copy"'),
|
||||||
|
child: icon(),
|
||||||
|
});
|
@@ -26,6 +26,8 @@ in
|
|||||||
hyprland
|
hyprland
|
||||||
nixos-icons
|
nixos-icons
|
||||||
rofi-wayland
|
rofi-wayland
|
||||||
|
wl-clipboard
|
||||||
|
cliphist
|
||||||
];
|
];
|
||||||
text = "ags &> /tmp/ags.log";
|
text = "ags &> /tmp/ags.log";
|
||||||
})} &";
|
})} &";
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
min-width: .5 * {{custom.padding}}pt
|
min-width: .5 * {{custom.padding}}pt
|
||||||
|
|
||||||
.launcher
|
.launcher
|
||||||
|
.clipboard
|
||||||
@include interactive
|
@include interactive
|
||||||
|
|
||||||
min-width: {{custom.font_size}}pt
|
min-width: {{custom.font_size}}pt
|
||||||
@@ -27,7 +28,7 @@
|
|||||||
.icon
|
.icon
|
||||||
font-size: {{custom.font_size}}pt
|
font-size: {{custom.font_size}}pt
|
||||||
padding: 0 .3 * {{custom.padding}}pt
|
padding: 0 .3 * {{custom.padding}}pt
|
||||||
color: {{colors.primary.default.hex}}
|
color: {{colors.on_surface.default.hex}}
|
||||||
|
|
||||||
.workspace
|
.workspace
|
||||||
@include interactive
|
@include interactive
|
||||||
|
35
users/configs/cliphist/default.nix
Normal file
35
users/configs/cliphist/default.nix
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{ user ? throw "user argument is required" }: { config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
hmConfig = config.home-manager.users.${user.name};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home-manager.users.${user.name} = {
|
||||||
|
home = {
|
||||||
|
packages = with pkgs; [ wl-clipboard cliphist ];
|
||||||
|
persistence."/cache${user.home}".directories = [ "${hmConfig.xdg.relativeCacheHome}/cliphist" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
initExtraConfig = ''
|
||||||
|
${lib.meta.getExe (pkgs.writeShellApplication {
|
||||||
|
name = "init-cliphist-text";
|
||||||
|
runtimeInputs = with pkgs; [ wl-clipboard cliphist ];
|
||||||
|
text = "wl-paste --type text --watch cliphist store";
|
||||||
|
})} &
|
||||||
|
|
||||||
|
${lib.meta.getExe (pkgs.writeShellApplication {
|
||||||
|
name = "init-cliphist-image";
|
||||||
|
runtimeInputs = with pkgs; [ wl-clipboard cliphist ];
|
||||||
|
text = "wl-paste --type image --watch cliphist store";
|
||||||
|
})} &
|
||||||
|
'';
|
||||||
|
|
||||||
|
settings.bind = [
|
||||||
|
"$mod, v, exec, cliphist list | ${lib.meta.getExe pkgs.rofi-wayland} -cache-dir ${hmConfig.xdg.cacheHome}/rofi -dmenu -display-columns 2 | cliphist decode | wl-copy"
|
||||||
|
"$mod_CTRL, v, exec, cliphist list | ${lib.meta.getExe pkgs.rofi-wayland} -cache-dir ${hmConfig.xdg.cacheHome}/rofi -dmenu -display-columns 2 | cliphist delete"
|
||||||
|
"$mod_CTRL_SHIFT, v, exec, cliphist wipe"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@@ -12,7 +12,10 @@ in
|
|||||||
|
|
||||||
wayland.windowManager.hyprland.initExtraConfig = "${lib.meta.getExe (pkgs.writeShellApplication {
|
wayland.windowManager.hyprland.initExtraConfig = "${lib.meta.getExe (pkgs.writeShellApplication {
|
||||||
name = "init-swww";
|
name = "init-swww";
|
||||||
runtimeInputs = with pkgs; [ swww ];
|
runtimeInputs = with pkgs; [
|
||||||
|
coreutils-full
|
||||||
|
swww
|
||||||
|
];
|
||||||
text = ''
|
text = ''
|
||||||
swww-daemon &> /tmp/swww.log
|
swww-daemon &> /tmp/swww.log
|
||||||
|
|
||||||
@@ -26,11 +29,7 @@ in
|
|||||||
|
|
||||||
theme.extraConfig = lib.mkAfter "${lib.meta.getExe (pkgs.writeShellApplication {
|
theme.extraConfig = lib.mkAfter "${lib.meta.getExe (pkgs.writeShellApplication {
|
||||||
name = "theme-swww";
|
name = "theme-swww";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [ swww ];
|
||||||
coreutils-full
|
|
||||||
procps
|
|
||||||
swww
|
|
||||||
];
|
|
||||||
text = "swww img \"${hmConfig.theme.configDir}/wallpaper\"";
|
text = "swww img \"${hmConfig.theme.configDir}/wallpaper\"";
|
||||||
})} &";
|
})} &";
|
||||||
};
|
};
|
||||||
|
@@ -11,6 +11,7 @@ in
|
|||||||
(import ../configs/firefox { inherit user; })
|
(import ../configs/firefox { inherit user; })
|
||||||
(import ../configs/hyprland { inherit user; })
|
(import ../configs/hyprland { inherit user; })
|
||||||
(import ../configs/hyprshot { inherit user; })
|
(import ../configs/hyprshot { inherit user; })
|
||||||
|
(import ../configs/cliphist { inherit user; })
|
||||||
(import ../configs/ags { inherit user; })
|
(import ../configs/ags { inherit user; })
|
||||||
(import ../configs/wev { inherit user; })
|
(import ../configs/wev { inherit user; })
|
||||||
(import ../configs/brightnessctl { inherit user; })
|
(import ../configs/brightnessctl { inherit user; })
|
||||||
|
Reference in New Issue
Block a user