new configs
This commit is contained in:
parent
f3ab049a81
commit
4c81c0ca4a
10 changed files with 107 additions and 14 deletions
43
.local/scripts/mpdmenu.fish
Executable file
43
.local/scripts/mpdmenu.fish
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set message
|
||||
|
||||
if test (mpc status %consume%) = "on"
|
||||
set -a message ""
|
||||
else
|
||||
set -a message ""
|
||||
end
|
||||
|
||||
if test (mpc status %random%) = "on"
|
||||
set -a message ""
|
||||
else
|
||||
set -a message ""
|
||||
end
|
||||
|
||||
if test (mpc status %repeat%) = "on"
|
||||
set -a message ""
|
||||
else
|
||||
set -a message ""
|
||||
end
|
||||
|
||||
if test (mpc status %single%) = "on"
|
||||
set -a message ""
|
||||
else
|
||||
set -a message ""
|
||||
end
|
||||
|
||||
set options " Play/Pause" " Stop" " Next" " Previous" " Consume" " Random" " Repeat" " Single"
|
||||
|
||||
set input (menu --mesg="$(mpc current --format "%artist% - %album% - %title%")
|
||||
$(string join -- ' ' $message)" $options)
|
||||
|
||||
switch $input
|
||||
case $options[1]
|
||||
mpc consume
|
||||
case $options[2]
|
||||
mpc random
|
||||
case $options[3]
|
||||
mpc repeat
|
||||
case $options[4]
|
||||
mpc single
|
||||
end
|
||||
9
.local/scripts/mpdvolumenotify.fish
Executable file
9
.local/scripts/mpdvolumenotify.fish
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set volume (mpc status "%volume%" | string trim --chars " %")
|
||||
|
||||
if test $volume = "-1"
|
||||
set volume "0"
|
||||
end
|
||||
|
||||
notify-send -c 'status' -h int:value:$volume "MPD Volume" "$volume%"
|
||||
2
.local/scripts/reset-buttom-layout.sh
Executable file
2
.local/scripts/reset-buttom-layout.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#! /usr/bin/env sh
|
||||
dconf reset /org/gnome/desktop/wm/preferences/button-layout
|
||||
Loading…
Add table
Add a link
Reference in a new issue