diff options
Diffstat (limited to '')
-rw-r--r-- | .config/x11/xinitrc | 2 | ||||
-rwxr-xr-x | .local/bin/dmsearch | 8 | ||||
-rwxr-xr-x | .local/bin/linkview | 9 |
3 files changed, 14 insertions, 5 deletions
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 611a5a3..20fe9d0 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -4,9 +4,9 @@ startif() { pgrep "$1" >/dev/null || "$@" >/dev/null 2>&1 & } -xset s off "$HOME"/.local/bin/setwp "$HOME"/.local/bin/kb +xset s off startif dunst startif picom pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 diff --git a/.local/bin/dmsearch b/.local/bin/dmsearch index 68fb77c..cfef937 100755 --- a/.local/bin/dmsearch +++ b/.local/bin/dmsearch @@ -2,7 +2,7 @@ use strict; use warnings; -use constant BROWSER_PATH => '/usr/local/bin/firefox'; +use constant BROWSER_PATH => '/usr/local/bin/iridium'; sub main { @@ -12,15 +12,15 @@ sub main $choice = `printf "" | dmenu -i -m 0 -p 'Search:'`; if (not $choice) { - return (0); + return; } $choice =~ s/ /+/g; $url = 'https://duckduckgo.com/?q=' . $choice; $pid = fork(); if (not $pid) { - exec(BROWSER_PATH, '--kiosk', $url); + exec(BROWSER_PATH, $url); } - return (0); + return; } main(); diff --git a/.local/bin/linkview b/.local/bin/linkview index 7024ade..226e643 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -128,6 +128,15 @@ sub open_link if ($quality eq 'uncap') { system(YTDL_PATH . ' --newline --add-metadata ' . $url . ' >' . $tmpfile); } + elsif ($quality eq '1440') { + system(YTDL_PATH . " -f '308+140' --newline --add-metadata " . $url . ' >' . $tmpfile); + } + elsif ($quality eq '1080') { + system(YTDL_PATH . " -f '299+140' --newline --add-metadata " . $url . ' >' . $tmpfile); + } + elsif ($quality eq '720') { + system(YTDL_PATH . " -f '298+140' --newline --add-metadata " . $url . ' >' . $tmpfile); + } else { system(YTDL_PATH . " -f '[height<=" . $quality . "]' --newline --add-metadata " . $url . ' >' . $tmpfile); } |