1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Move waybar hyprland config into waybar.nix

This commit is contained in:
RGBCube 2024-05-21 20:43:06 +03:00
parent 7d0a097bda
commit 5343e0d714
No known key found for this signature in database
2 changed files with 6 additions and 5 deletions

View file

@ -42,10 +42,7 @@ in desktopSystemConfiguration {
"wl-paste --type image --watch cliphist store -max-items 1000" "wl-paste --type image --watch cliphist store -max-items 1000"
]; ];
exec = [ exec = [ "pkill swaybg; swaybg --image ${./wallpaper.png}" ];
"pkill swaybg; swaybg --image ${./wallpaper.png}"
"pkill --signal SIGUSR2 waybar"
];
bindl = [ bindl = [
(replaceStrings [ "\n;" "\n" ] [ ";" "" ] '' (replaceStrings [ "\n;" "\n" ] [ ";" "" ] ''
@ -140,7 +137,6 @@ in desktopSystemConfiguration {
"SUPER , T , exec, thunar" "SUPER , T , exec, thunar"
"SUPER , C , exec, hyprpicker --autocopy" "SUPER , C , exec, hyprpicker --autocopy"
"SUPER, B, exec, pkill --signal SIGUSR1 waybar"
"SUPER, SPACE, exec, pkill fuzzel; fuzzel" "SUPER, SPACE, exec, pkill fuzzel; fuzzel"
"SUPER, V , exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy" "SUPER, V , exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"

View file

@ -1,6 +1,11 @@
{ config, lib, ... }: with lib; { config, lib, ... }: with lib;
desktopUserHomeConfiguration { desktopUserHomeConfiguration {
wayland.windowManager.hyprland.settings = {
exec = [ "pkill --signal SIGUSR2 waybar" ];
bind = [ "SUPER, B, exec, pkill --signal SIGUSR1 waybar" ];
};
programs.waybar = with config.theme.withHashtag; enabled { programs.waybar = with config.theme.withHashtag; enabled {
systemd = enabled; systemd = enabled;