diff options
| author | Joe <rbo@gmx.us> | 2025-03-10 18:46:45 +0100 | 
|---|---|---|
| committer | Joe <rbo@gmx.us> | 2025-03-10 18:46:45 +0100 | 
| commit | 6085a6e4862d0bc42188de2ab5ed4990da24d1cd (patch) | |
| tree | 6d83090f6586a09abe3f3273cbf52d9248bc4790 /.local/bin | |
| parent | up (diff) | |
| download | dotfiles-bsd-6085a6e4862d0bc42188de2ab5ed4990da24d1cd.tar.gz dotfiles-bsd-6085a6e4862d0bc42188de2ab5ed4990da24d1cd.tar.bz2 dotfiles-bsd-6085a6e4862d0bc42188de2ab5ed4990da24d1cd.tar.xz dotfiles-bsd-6085a6e4862d0bc42188de2ab5ed4990da24d1cd.tar.zst dotfiles-bsd-6085a6e4862d0bc42188de2ab5ed4990da24d1cd.zip | |
up
Diffstat (limited to '')
| -rwxr-xr-x | .local/bin/dmlog | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/.local/bin/dmlog b/.local/bin/dmlog index d209ee5..7264d75 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -93,7 +93,7 @@ sub action  				exec(LOGINCTL_PATH, 'suspend');  			}  			elsif (HOSTNAME eq 'po-rbo') { -				exec('systemctl', 'suspend'); +				exec('doas', 'systemctl', 'suspend');  			}  			exec(ACPI_PATH, '-s', '3');  		} @@ -112,7 +112,7 @@ sub action  				exec(LOGINCTL_PATH, 'reboot');  			}  			elsif (HOSTNAME eq 'po-rbo') { -				exec('systemctl', 'reboot'); +				exec('doas', 'systemctl', 'reboot');  			}  			system(  				NOTIF_PATH, @@ -138,7 +138,7 @@ sub action  				exec(LOGINCTL_PATH, 'poweroff');  			}  			elsif (HOSTNAME eq 'po-rbo') { -				exec('systemctl', 'poweroff'); +				exec('doas', 'systemctl', 'poweroff');  			}  			exec(SHUTDOWN_PATH, '-p', 'now');  		} | 
