This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Set pulseaudio default sink to the next available sink and move all existing sink-inputs to the new default. | |
| # Wraps around once the last available sink is reached. | |
| # | |
| # (C) 2022, @j2L4e | |
| # MIT License | |
| currentline=$(pactl list short sinks | grep -n "$(pactl get-default-sink)" | cut -d: -f 1) | |
| lastline=$(pactl list short sinks | wc -l) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # https://gist.github.com/jjarmoc/1299906 | |
| function atoi { | |
| #Returns the integer representation of an IP arg, passed in ascii dotted-decimal notation (x.x.x.x) | |
| IP=$1; IPNUM=0 | |
| for (( i=0 ; i<4 ; ++i )); do | |
| ((IPNUM+=${IP%%.*}*$((256**$((3-${i})))))) | |
| IP=${IP#*.} | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- /usr/share/libalpm/hooks/90-mkinitcpio-install.hook 2020-03-05 12:45:41.000000000 +0800 | |
| +++ /etc/pacman.d/hooks/90-mkinitcpio-install.hook 2020-06-13 23:08:32.861202141 +0800 | |
| @@ -8,5 +8,7 @@ | |
| [Action] | |
| Description = Updating linux initcpios... | |
| When = PostTransaction | |
| -Exec = /usr/share/libalpm/scripts/mkinitcpio-install | |
| +Exec = /usr/local/share/libalpm/scripts/mkinitcpio-install | |
| +Depends = sbsigntools | |
| +Depends = x11-ssh-askpass |