clipse and batsignal
This commit is contained in:
parent
a590e31e3e
commit
49d20db7f3
4 changed files with 57 additions and 1 deletions
|
@ -54,6 +54,8 @@
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
nwg-drawer.enable = true;
|
nwg-drawer.enable = true;
|
||||||
waybar.enable = true;
|
waybar.enable = true;
|
||||||
|
batsignal.enable = true;
|
||||||
|
clipse.enable = true;
|
||||||
|
|
||||||
# display manager
|
# display manager
|
||||||
sddm.enable = true;
|
sddm.enable = true;
|
||||||
|
|
23
modules/desktop/batsignal.nix
Normal file
23
modules/desktop/batsignal.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.batsignal;
|
||||||
|
in {
|
||||||
|
options.modules.desktop.batsignal = {
|
||||||
|
enable = mkEnableOption "Enable batsignal, a battery notification service";
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.batsignal;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
hm.wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
|
# -w 20 -c 10 -d 5 -- set battery levels
|
||||||
|
# -p -- notify on plug/unplug
|
||||||
|
# -m 2 -- set interval to 2 seconds
|
||||||
|
"${lib.getExe cfg.package} -w 20 -c 10 -d 5 -p -m 2"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
31
modules/desktop/clipse.nix
Normal file
31
modules/desktop/clipse.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.clipse;
|
||||||
|
in {
|
||||||
|
options.modules.desktop.clipse = {
|
||||||
|
enable = mkEnableOption "Enable clipse, a generic clipboard manager";
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.clipse;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
hm.wayland.windowManager.hyprland.settings = let
|
||||||
|
class = "clipse";
|
||||||
|
in {
|
||||||
|
exec-once = [ "${lib.getExe cfg.package} -listen-shell" ];
|
||||||
|
|
||||||
|
windowrulev2 = [
|
||||||
|
"float, class:^${class}$"
|
||||||
|
"size 622 652, class:^${class}$"
|
||||||
|
];
|
||||||
|
|
||||||
|
bind = [
|
||||||
|
"$mod, V, exec, ${lib.getExe pkgs.wezterm} start --class ${class} -e '${lib.getExe cfg.package}'"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -103,7 +103,7 @@ in {
|
||||||
"$mod, T, exec, ${lib.getExe pkgs.wezterm}"
|
"$mod, T, exec, ${lib.getExe pkgs.wezterm}"
|
||||||
|
|
||||||
"$mod, Q, killactive, "
|
"$mod, Q, killactive, "
|
||||||
"$mod, V, togglefloating, "
|
"$mod, F, togglefloating, "
|
||||||
"$mod, P, pseudo, " # dwindle
|
"$mod, P, pseudo, " # dwindle
|
||||||
"$mod, J, togglesplit, " # dwindle
|
"$mod, J, togglesplit, " # dwindle
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue