diff options
Diffstat (limited to '')
| -rw-r--r-- | .config/yt-dlp/config | 1 | ||||
| -rwxr-xr-x | .local/bin/dmlog | 32 |
2 files changed, 4 insertions, 29 deletions
diff --git a/.config/yt-dlp/config b/.config/yt-dlp/config index b996746..041b986 100644 --- a/.config/yt-dlp/config +++ b/.config/yt-dlp/config @@ -1 +1,2 @@ --extractor-args=youtube:player-client=default,-tv_simply +--remote-components ejs:github diff --git a/.local/bin/dmlog b/.local/bin/dmlog index 6a92258..8acdfee 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -68,41 +68,15 @@ sub action chomp $var; if ($var eq ${+LIST}[0]) { - if (defined $ENV{WAYLAND_DISPLAY}) { - exec("waylock", - "-init-color", "0x1d2021", - "-input-color", "0xd79921", - "-fail-color", "0xcc241d"); - } - else { - exec(SLOCK_PATH . " && exec herbe 'welcome back, partner!'"); - } + exec(SLOCK_PATH . " && exec herbe 'welcome back, partner!'"); } elsif ($var eq ${+LIST}[1]) { if (confirm($var, $color) == 1) { - notify("g'night, partner!"); - sleep 1; $pid = fork(); if (not $pid) { - # if (defined $ENV{WAYLAND_DISPLAY}) { - # exec("waylock", - # "-init-color", "0x1d2021", - # "-input-color", "0xd79921", - # "-fail-color", "0xcc241d"); - # } - # else { - # system(SLOCK_PATH); - # notify("g'day, partner!"); - # return; - # } - if (HOSTNAME eq 'mother') { - # setsid(); - # sleep 4; - # exec(LOGINCTL_PATH, 'suspend'); - } + return; } else { - sleep 1; if (HOSTNAME eq 'mother') { my $user = 'jozan'; my $self = $$; @@ -189,7 +163,7 @@ sub main } $choice = `printf "%s" "$list" | $menu -i`; action($choice, $color); - return (0); + return; } main(); |
