mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-19 16:27:45 +02:00
Compare commits
No commits in common. "9e4d95af44fcddde43bf0a402cb2197edabd4771" and "910422efec6d7a8c71c2152e098a6049c43aa580" have entirely different histories.
9e4d95af44
...
910422efec
@ -25,9 +25,9 @@ super + m
|
|||||||
thunderbird
|
thunderbird
|
||||||
|
|
||||||
super + bracketright
|
super + bracketright
|
||||||
mic_toggle
|
mic_toggle && pkill -RTMIN+4 $STATUSBAR
|
||||||
super + backslash
|
super + backslash
|
||||||
sound_toggle
|
sound_toggle && pkill -RTMIN+4 $STATUSBAR
|
||||||
|
|
||||||
super + shift + l
|
super + shift + l
|
||||||
setxkbmap -query | grep -q 'nodeadkeys' && $(setxkbmap de ru ; notify-send -u low 'SXHKD' 'Set keymap to russian') || $(setxkbmap de nodeadkeys ; notify-send -u low 'SXHKD' 'Set keymap to german')
|
setxkbmap -query | grep -q 'nodeadkeys' && $(setxkbmap de ru ; notify-send -u low 'SXHKD' 'Set keymap to russian') || $(setxkbmap de nodeadkeys ; notify-send -u low 'SXHKD' 'Set keymap to german')
|
||||||
@ -62,13 +62,13 @@ super + F12
|
|||||||
prompt "Reboot computer?" "sudo -A reboot now"
|
prompt "Reboot computer?" "sudo -A reboot now"
|
||||||
|
|
||||||
XF86AudioMute
|
XF86AudioMute
|
||||||
sound_toggle
|
sound_toggle && pkill -RTMIN+4 $STATUSBAR
|
||||||
XF86AudioMicMute
|
XF86AudioMicMute
|
||||||
mic_toggle
|
mic_toggle && pkill -RTMIN+4 $STATUSBAR
|
||||||
XF86AudioLowerVolume
|
XF86AudioLowerVolume
|
||||||
lmc down
|
lmc down 5 && pkill -RTMIN+4 $STATUSBAR
|
||||||
XF86AudioRaiseVolume
|
XF86AudioRaiseVolume
|
||||||
lmc up
|
lmc up 5 && pkill -RTMIN+4 $STATUSBAR
|
||||||
XF86MonBrightnessDown
|
XF86MonBrightnessDown
|
||||||
light -U 15
|
light -U 15
|
||||||
XF86MonBrightnessUp
|
XF86MonBrightnessUp
|
||||||
|
@ -1,30 +1,23 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# A general audio interface for LARBS.
|
# A general audio interface for LARBS.
|
||||||
# Based on a script by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||||
|
|
||||||
[ -z "$2" ] && num="5" || num="$2"
|
[ -z "$2" ] && num="2" || num="$2"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
up) wpctl set-volume @DEFAULT_AUDIO_SINK@ "$num"%+ ;;
|
u*) pulsemixer --change-volume +"$num" ;;
|
||||||
down) wpctl set-volume @DEFAULT_AUDIO_SINK@ "$num"%- ;;
|
d*) pulsemixer --change-volume -"$num" ;;
|
||||||
deaf) wpctl set-mute @DEFAULT_SINK@ 1;;
|
m*) pulsemixer --toggle-mute ;;
|
||||||
undeaf) wpctl set-mute @DEFAULT_SINK@ 0;;
|
|
||||||
mute) wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 1;;
|
|
||||||
unmute) wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 0;;
|
|
||||||
*) cat << EOF
|
*) cat << EOF
|
||||||
lmc: cli music interface for pulse for those with divine intellect too
|
lmc: cli music interface for pulse for those with divine intellect too
|
||||||
grand to remember the pamixer commands.
|
grand to remember the pamixer commands.
|
||||||
|
|
||||||
Allowed options:
|
Allowed options:
|
||||||
up NUM Increase volume (5% default)
|
up NUM Increase volume (2 secs default)
|
||||||
down NUM Decrease volume (5% default)
|
down NUM Decrease volume (2 secs default)
|
||||||
mute mute microphone
|
mute Toggle mute
|
||||||
unmute unmute microphone
|
|
||||||
deaf deaf sound
|
|
||||||
undeaf undeaf sound
|
|
||||||
all else Print this message
|
all else Print this message
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
esac
|
esac
|
||||||
pkill -RTMIN+4 $STATUSBAR
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if amixer get Capture | tail -2 | grep -q '\[on\]'; then
|
if amixer get Capture | tail -2 | grep -q '\[on\]'; then
|
||||||
paplay ~/.local/bin/tools/audio/mic_muted.wav
|
paplay ~/.local/bin/tools/audio/mic_muted.wav
|
||||||
lmc mute
|
amixer set Master unmute >/dev/null 2>&1
|
||||||
lmc undeaf
|
amixer set Capture nocap >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
lmc unmute
|
amixer set Master unmute >/dev/null 2>&1
|
||||||
lmc undeaf
|
amixer set Capture cap >/dev/null 2>&1
|
||||||
paplay ~/.local/bin/tools/audio/mic_activated.wav
|
paplay ~/.local/bin/tools/audio/mic_activated.wav
|
||||||
fi
|
fi
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if amixer get Master | tail -2 | grep -q '\[on\]'; then
|
if amixer get Master | tail -2 | grep -q '\[on\]'; then
|
||||||
notify-send -u low 'sxhkd' 'Sound muted\nMicrophone muted'
|
notify-send -u low 'sxhkd' 'Sound muted\nMicrophone muted'
|
||||||
lmc mute
|
amixer set Master mute >/dev/null 2>&1
|
||||||
lmc deaf
|
amixer set Capture nocap >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
lmc mute
|
amixer set Capture nocap >/dev/null 2>&1
|
||||||
lmc undeaf
|
amixer set Master unmute >/dev/null 2>&1
|
||||||
paplay ~/.local/bin/tools/audio/sound_resumed.wav
|
paplay ~/.local/bin/tools/audio/sound_resumed.wav
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
vol="$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print $2}' | sed -e 's/\.//g' | sed 's/^0*//')"
|
vol="$(pulsemixer --get-volume | awk '{print $1}')"
|
||||||
|
|
||||||
if [ "$vol" -eq "0" ]; then
|
if [ "$vol" -eq "0" ]; then
|
||||||
vol_info="^c#dfdfdf^ ^d^"
|
vol_info="^c#dfdfdf^ ^d^"
|
||||||
@ -10,12 +10,12 @@ else
|
|||||||
vol_info="^c#dfdfdf^ ^d^"
|
vol_info="^c#dfdfdf^ ^d^"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -q '\[MUTED\]') && vol_info="^c#ff0000^ ^d^"
|
[ "$(pulsemixer --get-mute)" = "1" ] && vol_info="^c#ff0000^ ^d^"
|
||||||
|
|
||||||
if wpctl get-volume @DEFAULT_SOURCE@ | grep -q '\[MUTED\]'; then
|
if amixer get Capture | tail -2 | grep -q '\[on\]'; then
|
||||||
mic="^b#282828^^c#ff0000^ "
|
|
||||||
else
|
|
||||||
mic="^b#282828^^c#dfdfdf^ "
|
mic="^b#282828^^c#dfdfdf^ "
|
||||||
|
else
|
||||||
|
mic="^b#282828^^c#ff0000^ "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
vol=$(printf %3s $vol | tr ' ' ' ')
|
vol=$(printf %3s $vol | tr ' ' ' ')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user