chpaper now restarts the hyprpaper service instead of pkilling the process

This commit is contained in:
pagedmov
2024-11-06 00:59:33 -05:00
parent 0cbdbafabe
commit 0e85a705e8
3 changed files with 4 additions and 4 deletions

View File

@@ -356,7 +356,7 @@ in {
window#waybar { window#waybar {
border-radius: 20px; border-radius: 20px;
border: 3px solid #${colors.color7}; border: 3px solid #${colors.color7};
background: rgba(46,52,64,0.66); background: rgba(23,29,35,0.50);
margin: 20px; margin: 20px;
} }
window#waybar.empty #window { window#waybar.empty #window {

View File

@@ -7,7 +7,7 @@ pkgs.writeShellScriptBin "chpaper" ''
select choice in "Yes" "No"; do select choice in "Yes" "No"; do
case $choice in case $choice in
"Yes") "Yes")
rebuild;pkill -9 hyprpaper;exit 0;; rebuild;systemctl --user restart hyprpaper;exit 0;;
"No") "No")
echo "Exiting...";exit 0;; echo "Exiting...";exit 0;;
esac esac

View File

@@ -8,7 +8,7 @@
let let
scheme = "tokyo-night-dark"; scheme = "tokyo-night-dark";
wallpaper = "${self}/assets/wallpapers/nord-balloons.png"; wallpaper = "${self}/assets/wallpapers/dark-waves.jpg";
in in
{ {
options = { options = {
@@ -26,7 +26,7 @@ in
}; };
polarity = "dark"; polarity = "dark";
autoEnable = true; autoEnable = true;
opacity.terminal = 0.5; opacity.terminal = 0.50;
targets = { targets = {
console.enable = true; console.enable = true;
feh.enable = true; feh.enable = true;