Add scripts
This commit is contained in:
19
scripts/audio.sh
Executable file
19
scripts/audio.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
case $1 in
|
||||
"raise")
|
||||
pactl set-sink-volume 0 +5%
|
||||
notify-send $(pamixer --get-volume)
|
||||
pkill -RTMIN+1 i3blocks
|
||||
;;
|
||||
"lower")
|
||||
pactl set-sink-volume 0 -5%
|
||||
notify-send $(pamixer --get-volume)
|
||||
pkill -RTMIN+1 i3blocks
|
||||
;;
|
||||
"toggle_mute")
|
||||
pactl set-sink-mute 0 toggle
|
||||
notify-send $(pamixer --get-mute)
|
||||
;;
|
||||
esac
|
||||
|
||||
22
scripts/backlight.sh
Executable file
22
scripts/backlight.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
backlight_float=$(xbacklight -get)
|
||||
current_backlight=${backlight_float%%.*}
|
||||
|
||||
case $1 in
|
||||
"raise")
|
||||
(( current_backlight += 5 ))
|
||||
[[ $current_backlight -gt 100 ]] && current_backlight=100
|
||||
|
||||
xbacklight -set $current_backlight
|
||||
notify-send $current_backlight
|
||||
;;
|
||||
"lower")
|
||||
(( current_backlight -= 5 ))
|
||||
[[ $current_backlight -lt 5 ]] && current_backlight=1
|
||||
|
||||
xbacklight -set $current_backlight
|
||||
notify-send $current_backlight
|
||||
;;
|
||||
esac
|
||||
|
||||
9
scripts/daemons.sh
Executable file
9
scripts/daemons.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ ! $(pidof compton) ]] && compton
|
||||
[[ ! $(pidof unclutter) ]] && unclutter
|
||||
[[ ! $(pidof mpd) ]] && mpd
|
||||
[[ ! $(pidof transmission-daemon) ]] && transmission-daemon
|
||||
[[ ! $(pidof dunst) ]] && dunst
|
||||
[[ ! $(pidof nm-applet) ]] && nm-applet
|
||||
|
||||
16
scripts/music.sh
Executable file
16
scripts/music.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
case $1 in
|
||||
"toggle")
|
||||
mpc toggle
|
||||
;;
|
||||
"next")
|
||||
mpc next
|
||||
pkill -RTMIN+2 i3blocks
|
||||
;;
|
||||
"prev")
|
||||
mpc prev
|
||||
pkill -RTMIN+2 i3blocks
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user