Fixed wifi block, wrote own CPU usage script
Closes #40. Also added file listing USB OS's and made change-sink handle both DAC names.
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Backup destination
|
||||
backup_dest="/run/media/kevin/pc-backup/backups/nzxt"
|
||||
case $1 in
|
||||
nzxt )
|
||||
backup_dest="/run/media/kevin/nzxt-backup/"
|
||||
;;
|
||||
x1 )
|
||||
backup_dest="/run/media/kevin/laptop-backup"
|
||||
;;
|
||||
esac
|
||||
exclude_dirs_list="/home/kevin/linux-config/txt/exlude-dirs-backup.txt"
|
||||
|
||||
# Labels for backup name
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
usb=/dev/sdc
|
||||
iso=/run/media/kevin/pc-backup/isos/w10.iso
|
||||
usb_letter="c"
|
||||
usb="/dev/sd$usb_letter"
|
||||
iso=""
|
||||
|
||||
sudo dd bs=4M if=$iso of=$usb conv=fdatasync status=progress
|
||||
# sudo dd bs=4M if=$usb of=$iso conv=fdatasync status=progress
|
||||
|
||||
@@ -1,12 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Device name variable
|
||||
if [ "$1" = "dac" ]; then
|
||||
devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo"
|
||||
case $1 in
|
||||
dac )
|
||||
devicename="alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo"
|
||||
;;
|
||||
dac2 )
|
||||
devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo"
|
||||
;;
|
||||
line-out )
|
||||
devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
|
||||
;;
|
||||
esac
|
||||
# if [ "$1" = "dac" ]; then
|
||||
# devicename="alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo"
|
||||
elif [ "$1" = "line-out" ]; then
|
||||
devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
|
||||
fi
|
||||
# elif [ "$1" = "dac2" ]; then
|
||||
# devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo"
|
||||
# elif [ "$1" = "line-out" ]; then
|
||||
# devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
|
||||
# fi
|
||||
echo "$devicename"
|
||||
|
||||
#change the default sink
|
||||
|
||||
Reference in New Issue
Block a user