move scripts, update other things

This commit is contained in:
fbachus committed 2026-09-30 23:23:35 +02:00
1 parent 8be9fe6370
commit 0c79acd431
61 files changed
+2728 -539

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
#!/bin/bash
SCRIPT_VERSION=0.4.64
#alsa-fp-switch.sh
#ASUS Xonar DX Front Panel mute and unmute Bash Script
#Build version: 1.1
#Build date: 2017.12.15.
#Made by Tamas Banki
#################################################################################
#Copyright (C) 2007 Free Software Foundation.
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
##################################################################################
input=$(arecord -l)
if [[ $input == *"card 0: DX [Xonar DX]"* ]]; then
card_number="0"
elif [[ $input == *"card 1: DX [Xonar DX]"* ]]; then
card_number="1"
elif [[ $input == *"card 2: DX [Xonar DX]"* ]]; then
card_number="2"
elif [[ $input == *"card 3: DX [Xonar DX]"* ]]; then
card_number="3"
elif [[ $input == *"card 4: DX [Xonar DX]"* ]]; then
card_number="4"
fi
input=$(amixer -c "$card_number" sget "Front Panel")
if [[ $input == *"Mono: Playback [off]"* ]]; then
amixer -c "$card_number" -- sset "Front Panel" unmute
elif [[ $input == *"Mono: Playback [on]"* ]]; then
amixer -c "$card_number" -- sset "Front Panel" mute
fi
+52
View File
@@ -0,0 +1,52 @@
#!/bin/bash
SCRIPT_VERSION=0.4.64
#alsa-fp-switch.sh
#ASUS Xonar DX Front Panel mute and unmute Bash Script
#Build version: 1.1
#Build date: 2017.12.15.
#Made by Tamas Banki
#################################################################################
#Copyright (C) 2007 Free Software Foundation.
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
##################################################################################
input=$(arecord -l)
if [[ $input == *"card 0: DX [Xonar DX]"* ]]; then
card_number="0"
elif [[ $input == *"card 1: DX [Xonar DX]"* ]]; then
card_number="1"
elif [[ $input == *"card 2: DX [Xonar DX]"* ]]; then
card_number="2"
elif [[ $input == *"card 3: DX [Xonar DX]"* ]]; then
card_number="3"
elif [[ $input == *"card 4: DX [Xonar DX]"* ]]; then
card_number="4"
fi
input=$(amixer -c "$card_number" sget "Mic Boost (+20dB)")
#it just needs to be on
amixer -c "$card_number" -- sset "Mic Boost (+20dB)" unmute
# if [[ $input == *"Mono: Playback [off]"* ]]; then
# amixer -c "$card_number" -- sset "Mic Boost (+20dB)" unmute
# elif [[ $input == *"Mono: Playback [on]"* ]]; then
# amixer -c "$card_number" -- sset "Mic Boost (+20dB)" mute
# fi
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# script to switch between the two audio outputs on my desktop
headphone_templar=$(pactl list short sinks | grep analog-stereo | awk '{print $2}')
hdmi_sound_templar=$(pactl list short sinks | grep iec958-stereo | awk '{print $2}')
if [[ $(pactl get-default-sink) == $headphone_templar ]]; then
pactl set-default-sink $hdmi_sound_templar
elif [[ $(pactl get-default-sink) == $hdmi_sound_templar ]]; then
pactl set-default-sink $headphone_templar
fi
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/fish
set b $(seq 0 5 100 | tofi --config ~/.config/tofi/brightness_config)
for i in (ddcutil detect | rg Display | sed -r "s/^Display (\d*)/$1/")
ddcutil setvcp 10 $b -d $i
end
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/sh
b=$( for ((i=0;i<=100;i+=5)) do
echo $i
done| tofi --config ~/.config/tofi/brightness_config)
for i in $(ddcutil detect | rg Display | sed -r "s/^Display (\d*)/$1/")
do ddcutil setvcp 10 $b -d $i
done
+1
View File
@@ -0,0 +1 @@
cliphist list | awk '{gsub("\t", " "); print}'\ | tofi --width=800 --font-size=14 --font-features="" --anchor=bottom-right --background-color=191A1CE0 | awk '{print $1}' | tr -d '\n' | cliphist decode | wl-copy
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/bash
case "$(printf "sleep\nreboot\nshutdown\nhybrid-sleep\nhibernate" | tofi --config .config/tofi/powermenu_config)" in
sleep) systemctl suspend;;
reboot) systemctl reboot;;
shutdown) shutdown now ;;
hybrid-sleep) hyprlock; systemctl suspend-then-hibernate;;
hibernate) systemctl hibernate;;
*) exit 1 ;;
esac