44 lines
1.4 KiB
Bash
Executable File
44 lines
1.4 KiB
Bash
Executable File
#!/bin/zsh
|
|
source "$HOME/.config/wryn/env.zsh"
|
|
case $1 in
|
|
#next ) scwrypts desktop/media -- next ;;
|
|
#prev ) scwrypts desktop/media -- prev ;;
|
|
#play ) scwrypts desktop/media -- play ;;
|
|
|
|
volumeup ) scwrypts desktop/pulseaudio -- sink up ;;
|
|
volumedown ) scwrypts desktop/pulseaudio -- sink down ;;
|
|
volumemute ) scwrypts desktop/pulseaudio -- sink mute ;;
|
|
micmute ) scwrypts desktop/pulseaudio -- source mute ;;
|
|
|
|
backlightup ) scwrypts desktop/backlight -- up ;;
|
|
backlightdown ) scwrypts desktop/backlight -- down ;;
|
|
|
|
lock ) scwrypts desktop/i3/lock -- ;;
|
|
|
|
bgrandomize ) scwrypts desktop/i3/set-background -- random ;;
|
|
|
|
alternateterm ) scwrypts desktop/kitty-alternate-theme -- ;;
|
|
|
|
logout ) scwrypts desktop/i3/logout -- ;;
|
|
|
|
launch )
|
|
local PROGRAM
|
|
local ARGS=()
|
|
case $2 in
|
|
messages ) PROGRAM=android-messages-desktop ;;
|
|
voice ) PROGRAM=google-voice-desktop ;;
|
|
ytmusic ) PROGRAM=youtubemusic-nativefier ;;
|
|
|
|
1pass ) PROGRAM=1password ARGS+=(-c 1Password) ;;
|
|
discord ) PROGRAM=discord ARGS+=(-a --has-statusbar-icon) ;;
|
|
obs ) PROGRAM=obs ARGS+=(-c '^obs' -n -l --has-statusbar-icon) ;;
|
|
pavuctrl ) PROGRAM=pavucontrol ARGS+=(-s 0.5 -c '^Pavucontrol') ;;
|
|
scrcpy ) PROGRAM=scrcpy ARGS+=(-n -l) ;;
|
|
spotify ) PROGRAM=spotify ARGS+=(-c Spotify) ;;
|
|
|
|
* ) PROGRAM=$2 ;;
|
|
esac
|
|
scwrypts i3/launch-or-show -- $PROGRAM ${ARGS[@]}
|
|
;;
|
|
esac
|