2020-09-23 22:19:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
UTIL_BIN="$HOME/.wryn/bin/desktop"
|
2021-02-24 20:32:04 +00:00
|
|
|
APP_BIN="$HOME/.config/wryn/default-applications"
|
2020-09-23 22:19:23 +00:00
|
|
|
|
|
|
|
MEDIA__NEXT="$UTIL_BIN/youtube-music/next.sh"
|
|
|
|
MEDIA__PREV="$UTIL_BIN/youtube-music/previous.sh"
|
|
|
|
MEDIA__PLAYPAUSE="$UTIL_BIN/youtube-music/playpause.sh"
|
|
|
|
|
|
|
|
VOLUME__UP="$UTIL_BIN/pulseaudio/sink-volume/default-up.sh";
|
|
|
|
VOLUME__DOWN="$UTIL_BIN/pulseaudio/sink-volume/default-down.sh";
|
|
|
|
VOLUME__MUTE="$UTIL_BIN/pulseaudio/sink-volume/default-mute.sh";
|
|
|
|
VOLUME__MICMUTE="$UTIL_BIN/pulseaudio/source-volume/default-mute.sh";
|
|
|
|
|
|
|
|
BACKLIGHT__UP="$UTIL_BIN/xbacklight/up.sh";
|
|
|
|
BACKLIGHT__DOWN="$UTIL_BIN/xbacklight/down.sh";
|
|
|
|
|
|
|
|
LOCK_SCREEN="$UTIL_BIN/i3lock/lock.sh";
|
|
|
|
LOG_OUT="$UTIL_BIN/i3/logout.sh";
|
2021-02-24 20:32:04 +00:00
|
|
|
LAUNCH_OR_SHOW="$UTIL_BIN/i3/launch-or-show-application.sh";
|
2020-09-23 22:19:23 +00:00
|
|
|
|
|
|
|
BG_RANDOMIZE="$UTIL_BIN/feh/randomize-background.sh"
|
|
|
|
|
2021-02-23 22:38:03 +00:00
|
|
|
ALTERNATE_TERMINAL="$UTIL_BIN/kitty/alternate-terminal.sh"
|
|
|
|
|
2021-02-24 20:32:04 +00:00
|
|
|
DISCORD="$APP_BIN/discord"
|
|
|
|
EMAIL="$APP_BIN/email"
|
|
|
|
MEDIA="$APP_BIN/media"
|
|
|
|
MESSAGES="$APP_BIN/messages"
|
|
|
|
SLACK="$APP_BIN/slack"
|
2020-09-23 22:19:23 +00:00
|
|
|
|
|
|
|
case $1 in
|
|
|
|
next ) "$MEDIA__NEXT" ;;
|
|
|
|
prev ) "$MEDIA__PREV" ;;
|
|
|
|
playpause ) "$MEDIA__PLAYPAUSE" ;;
|
|
|
|
|
|
|
|
volumeraise ) "$VOLUME__UP" ;;
|
|
|
|
volumelower ) "$VOLUME__DOWN" ;;
|
|
|
|
mute ) "$VOLUME__MUTE" ;;
|
|
|
|
micmute ) "$VOLUME__MICMUTE" ;;
|
|
|
|
|
|
|
|
backlightup ) "$BACKLIGHT__UP" ;;
|
|
|
|
backlightdown ) "$BACKLIGHT__DOWN" ;;
|
|
|
|
|
|
|
|
lock ) "$LOCK_SCREEN" ;;
|
|
|
|
logout ) "$LOG_OUT" ;;
|
|
|
|
|
|
|
|
bgrandomize ) "$BG_RANDOMIZE" ;;
|
2021-02-23 22:38:03 +00:00
|
|
|
|
|
|
|
alternateterm ) "$ALTERNATE_TERMINAL" ;;
|
2021-02-24 20:32:04 +00:00
|
|
|
|
|
|
|
discord ) "$LAUNCH_OR_SHOW" "$2" "$DISCORD" ;;
|
|
|
|
email ) "$LAUNCH_OR_SHOW" "$2" "$EMAIL" ;;
|
|
|
|
media ) "$LAUNCH_OR_SHOW" "$2" "$MEDIA" ;;
|
|
|
|
message ) "$LAUNCH_OR_SHOW" "$2" "$MESSAGES";;
|
|
|
|
slack ) "$LAUNCH_OR_SHOW" "$2" "$SLACK" ;;
|
2020-09-23 22:19:23 +00:00
|
|
|
esac
|