mirror of
				https://github.com/Stunkymonkey/dotfiles.git
				synced 2025-10-30 18:02:10 +01:00 
			
		
		
		
	shell/aliases: rename yt-dlp and remove dpms
This commit is contained in:
		
							parent
							
								
									b33e57d67a
								
							
						
					
					
						commit
						4cb70e1260
					
				
					 1 changed files with 2 additions and 9 deletions
				
			
		|  | @ -15,7 +15,7 @@ alias :qw="exit" | |||
| alias vim="vim -p" | ||||
| alias vi="vim -p" | ||||
| 
 | ||||
| alias yt-dl='yt-dlp -o "%(title)s.%(ext)s"' | ||||
| alias yt-dlp='yt-dlp -o "%(title)s.%(ext)s"' | ||||
| alias yt-audio='yt-dlp -o "%(title)s.%(ext)s" --extract-audio' | ||||
| alias yt-mp3='yt-dlp -o "%(title)s.%(ext)s" --extract-audio --audio-format mp3' | ||||
| alias music-gain="find ~/Music -iname '*.mp3' -execdir mp3gain -q -k -p {} \+" | ||||
|  | @ -78,7 +78,7 @@ alias notify='notify-send Terminal "Process has been finished"' | |||
| 
 | ||||
| # xorg | ||||
| alias screen-off-x='xset -display :0.0 dpms force off' | ||||
| alias mon-update="xrandr --auto" | ||||
| alias screen-update-x="xrandr --auto" | ||||
| 
 | ||||
| # wayland: | ||||
| alias pdfpc="pdfpc --wayland-workaround" | ||||
|  | @ -109,13 +109,6 @@ alias esp32-terminal="screen /dev/ttyUSB? 115200" | |||
| alias ttime_green="sh -c \"sleep 180 && notify-send -u critical 'The tea is ready'\" &" | ||||
| alias ttime_black="sh -c \"sleep 300 && notify-send -u critical 'The tea is ready'\" &" | ||||
| 
 | ||||
| # set DPMS values in minutes | ||||
| dpms(){ | ||||
| 	[ -z "${1}" ] && echo "No time given!" && return 1 | ||||
| 	local secs=`expr "60" "*" "${1}"` | ||||
| 	xset s off | ||||
| 	xset dpms "${secs}" "${secs}" "${secs}" | ||||
| } | ||||
| # IPv6 ping | ||||
| for INTERFACE in /sys/class/net/*; do | ||||
| 	[ -e "$INTERFACE" ] || break # incase it is empty | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Felix Buehler
						Felix Buehler