i3 config overhaul AGAIN
This commit is contained in:
4
bin/desktop/feh/randomize-background.sh
Executable file
4
bin/desktop/feh/randomize-background.sh
Executable file
@ -0,0 +1,4 @@
|
||||
$WALLPAPER_DIR="$HOME/.config/wryn/wallpaper";
|
||||
|
||||
[ -d $WALLPAPER_DIR ] &&\
|
||||
feh --recursive --randomize --bg-fill $WALLPAPER_DIR
|
1
bin/desktop/gmux-backlight/down.sh
Executable file
1
bin/desktop/gmux-backlight/down.sh
Executable file
@ -0,0 +1 @@
|
||||
gmux_backlight -100
|
1
bin/desktop/gmux-backlight/up.sh
Executable file
1
bin/desktop/gmux-backlight/up.sh
Executable file
@ -0,0 +1 @@
|
||||
gmux_backlight +100
|
4
bin/desktop/i3/logout.sh
Executable file
4
bin/desktop/i3/logout.sh
Executable file
@ -0,0 +1,4 @@
|
||||
i3-nagbar \
|
||||
-t warning \
|
||||
-m 'Do you really want to exit i3?' \
|
||||
-B 'Yes' "notify-send 'system' 'exiting i3...' -i face-tired; $HOME/.config/wryn/sfx logout; i3-msg exit"
|
28
bin/desktop/i3lock/lock.sh
Executable file
28
bin/desktop/i3lock/lock.sh
Executable file
@ -0,0 +1,28 @@
|
||||
# requires i3lock-color
|
||||
INSIDE_VER='001020'
|
||||
RING_VER='004040'
|
||||
|
||||
INSIDE_WRONG='200010'
|
||||
RING_WRONG='4a0020'
|
||||
|
||||
INSIDE='002010'
|
||||
RING='103020'
|
||||
LINE='8888ff'
|
||||
KEYDOWN='44ff44'
|
||||
KEYREMOVE='4444ff'
|
||||
|
||||
TIME='aaaaaa'
|
||||
DATE='888888'
|
||||
|
||||
i3lock\
|
||||
-e\
|
||||
--pass-screen-keys --pass-media-keys --pass-volume-keys --pass-power-keys\
|
||||
-B 6\
|
||||
--force-clock\
|
||||
--insidevercolor=$INSIDE_VER --ringvercolor=$RING_VER --verifcolor=$INSIDE_VER\
|
||||
--insidewrongcolor=$INSIDE_WRONG --ringwrongcolor=$RING_WRONG --wrongcolor=$INSIDE_WRONG\
|
||||
--insidecolor=002010 --ringcolor=103020\
|
||||
--linecolor=$LINE\
|
||||
--timecolor=$TIME --datecolor=$DATE\
|
||||
--keyhlcolor=$KEYDOWN --bshlcolor=$KEYREMOVE\
|
||||
;
|
2
bin/desktop/pulseaudio/sink-volume/default-down.sh
Executable file
2
bin/desktop/pulseaudio/sink-volume/default-down.sh
Executable file
@ -0,0 +1,2 @@
|
||||
pactl set-sink-volume @DEFAULT_SINK@ -10%
|
||||
$HOME/.config/wryn/sfx volume &
|
2
bin/desktop/pulseaudio/sink-volume/default-mute.sh
Executable file
2
bin/desktop/pulseaudio/sink-volume/default-mute.sh
Executable file
@ -0,0 +1,2 @@
|
||||
pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
$HOME/.config/wryn/sfx mute &
|
2
bin/desktop/pulseaudio/sink-volume/default-up.sh
Executable file
2
bin/desktop/pulseaudio/sink-volume/default-up.sh
Executable file
@ -0,0 +1,2 @@
|
||||
pactl set-sink-volume @DEFAULT_SINK@ +10%
|
||||
$HOME/.config/wryn/sfx volume &
|
1
bin/desktop/pulseaudio/source-volume/default-mute.sh
Executable file
1
bin/desktop/pulseaudio/source-volume/default-mute.sh
Executable file
@ -0,0 +1 @@
|
||||
pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
2
bin/desktop/xbacklight/down.sh
Executable file
2
bin/desktop/xbacklight/down.sh
Executable file
@ -0,0 +1,2 @@
|
||||
$HOME/.config/wryn/sfx backlight &
|
||||
xbacklight - 10
|
2
bin/desktop/xbacklight/up.sh
Executable file
2
bin/desktop/xbacklight/up.sh
Executable file
@ -0,0 +1,2 @@
|
||||
$HOME/.config/wryn/sfx backlight &
|
||||
xbacklight + 10
|
26
bin/desktop/youtube-music/controller.sh
Executable file
26
bin/desktop/youtube-music/controller.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#
|
||||
# Chrome / YouTube only accepts keypresses when window is active
|
||||
#
|
||||
# This activates the YouTube window, sends the keypress, then reactivates the original window
|
||||
#
|
||||
|
||||
xdotool search --name 'YouTube Music' >/dev/null 2>&1 || return 1;
|
||||
|
||||
ACTIVE_DESKTOP="$(xdotool get_desktop)"
|
||||
ACTIVE_WINDOW_ID="$(xdotool getactivewindow)"
|
||||
ACTIVE_WINDOW_NAME="$(xdotool getwindowname $ACTIVE_WINDOW_ID)"
|
||||
|
||||
TIMEOUT='0.1';
|
||||
|
||||
case $1 in
|
||||
next) KEY_COMMAND='j';;
|
||||
prev) KEY_COMMAND='k';;
|
||||
*) KEY_COMMAND='space';;
|
||||
esac
|
||||
|
||||
xdotool search --name 'YouTube Music' windowactivate;
|
||||
sleep $TIMEOUT;
|
||||
xdotool key --clearmodifiers "$KEY_COMMAND";
|
||||
|
||||
xdotool set_desktop "$ACTIVE_DESKTOP";
|
||||
[[ "$ACTIVE_WINDOW_NAME" != "Desktop" ]] && xdotool windowactivate "$ACTIVE_WINDOW_ID";
|
1
bin/desktop/youtube-music/next.sh
Executable file
1
bin/desktop/youtube-music/next.sh
Executable file
@ -0,0 +1 @@
|
||||
"$HOME/.wryn/bin/desktop/youtube-music/controller.sh" next
|
1
bin/desktop/youtube-music/playpause.sh
Executable file
1
bin/desktop/youtube-music/playpause.sh
Executable file
@ -0,0 +1 @@
|
||||
"$HOME/.wryn/bin/desktop/youtube-music/controller.sh" playpause
|
1
bin/desktop/youtube-music/previous.sh
Executable file
1
bin/desktop/youtube-music/previous.sh
Executable file
@ -0,0 +1 @@
|
||||
"$HOME/.wryn/bin/desktop/youtube-music/controller.sh" prev
|
Reference in New Issue
Block a user