From d7ca2cf1eed147a916630047eaa2d1e41d5028e4 Mon Sep 17 00:00:00 2001 From: whiteline Date: Sun, 9 Apr 2023 13:14:40 +0200 Subject: [PATCH] migrating all my scripts to zsh --- N33R_status.sh | 2 +- battery_monitor.sh | 2 +- browse_source.sh | 2 +- coding-terminal | 2 +- disable_internet.sh | 2 +- float_xinput_device.sh | 2 +- gitlab.lain.la.auth.sh | 2 +- host-cwd.sh | 2 +- lainstream | 2 +- weather | 2 +- youtube-mp3 | 2 +- youtube-mp3-album | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/N33R_status.sh b/N33R_status.sh index 984c775..87bc7ab 100755 --- a/N33R_status.sh +++ b/N33R_status.sh @@ -1,2 +1,2 @@ -#!/bin/bash +#!/bin/zsh sudo nmap minecraft.youdieifyou.work -PN -n -sV -p minecraft diff --git a/battery_monitor.sh b/battery_monitor.sh index 5a9a122..474f4e5 100755 --- a/battery_monitor.sh +++ b/battery_monitor.sh @@ -1,3 +1,3 @@ -#!/bin/sh +#!/bin/zsh BATTERY_PATH="/sys/class/power_supply/BAT1" watch -tn 1 "cat $BATTERY_PATH/status && cat $BATTERY_PATH/capacity" diff --git a/browse_source.sh b/browse_source.sh index 94f16ac..2124b62 100755 --- a/browse_source.sh +++ b/browse_source.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh highlight -O ansi $1 | less -R diff --git a/coding-terminal b/coding-terminal index 45bb9b5..9f51ce0 100755 --- a/coding-terminal +++ b/coding-terminal @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/zsh #xrdb -merge ~/.Xresources.green urxvt -fn xft:inconsolata-26:hinting=false -letsp 1 -im none -b 26 & #xrdb -merge ~/.Xresources diff --git a/disable_internet.sh b/disable_internet.sh index 7f94e06..c067f3d 100755 --- a/disable_internet.sh +++ b/disable_internet.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh newgrp no-internet diff --git a/float_xinput_device.sh b/float_xinput_device.sh index faae5c4..e03c162 100755 --- a/float_xinput_device.sh +++ b/float_xinput_device.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh xinput --float `xinput | grep "$1" | grep -o 'id=[[:digit:]]\+' | cut -d'=' -f2` diff --git a/gitlab.lain.la.auth.sh b/gitlab.lain.la.auth.sh index d0bf633..cef2ab9 100755 --- a/gitlab.lain.la.auth.sh +++ b/gitlab.lain.la.auth.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh age -d gitlab.lain.la.token.encrypted | oathtool -b --totp - diff --git a/host-cwd.sh b/host-cwd.sh index 37bff5f..80cbcce 100755 --- a/host-cwd.sh +++ b/host-cwd.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh ruby -run -e httpd . -p 8080 --bind-address=192.168.1.2 diff --git a/lainstream b/lainstream index 0058798..f0f44d7 100755 --- a/lainstream +++ b/lainstream @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh exec mpv https://lainchan.org:8080/hls/stream.m3u8 diff --git a/weather b/weather index 119b3dc..bb18ed5 100755 --- a/weather +++ b/weather @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh curl wttr.in/`echo $* | sed 's/ /%20/g'` diff --git a/youtube-mp3 b/youtube-mp3 index 8f0ff7e..7ee1e7d 100755 --- a/youtube-mp3 +++ b/youtube-mp3 @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh yt-dlp --extract-audio --audio-format mp3 -f best -o "%(playlist_index)s - %(title)s.%(ext)s" $1 diff --git a/youtube-mp3-album b/youtube-mp3-album index 73902a9..cbb2390 100755 --- a/youtube-mp3-album +++ b/youtube-mp3-album @@ -1,2 +1,2 @@ -#!/bin/sh +#!/bin/zsh yt-dlp --extract-audio --split-chapters --audio-format mp3 -f best -o "chapter:%(section_number)s - %(section_title)s.%(ext)s" $1