i3 config overhaul AGAIN

This commit is contained in:
Wryn Wagner
2020-09-23 16:19:23 -06:00
parent 8b09c44ee7
commit cae7518746
25 changed files with 146 additions and 363 deletions

View File

@ -0,0 +1,4 @@
$WALLPAPER_DIR="$HOME/.config/wryn/wallpaper";
[ -d $WALLPAPER_DIR ] &&\
feh --recursive --randomize --bg-fill $WALLPAPER_DIR

View File

@ -0,0 +1 @@
gmux_backlight -100

View File

@ -0,0 +1 @@
gmux_backlight +100

4
bin/desktop/i3/logout.sh Executable file
View 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
View 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\
;

View File

@ -0,0 +1,2 @@
pactl set-sink-volume @DEFAULT_SINK@ -10%
$HOME/.config/wryn/sfx volume &

View File

@ -0,0 +1,2 @@
pactl set-sink-mute @DEFAULT_SINK@ toggle
$HOME/.config/wryn/sfx mute &

View File

@ -0,0 +1,2 @@
pactl set-sink-volume @DEFAULT_SINK@ +10%
$HOME/.config/wryn/sfx volume &

View File

@ -0,0 +1 @@
pactl set-source-mute @DEFAULT_SOURCE@ toggle

2
bin/desktop/xbacklight/down.sh Executable file
View File

@ -0,0 +1,2 @@
$HOME/.config/wryn/sfx backlight &
xbacklight - 10

2
bin/desktop/xbacklight/up.sh Executable file
View File

@ -0,0 +1,2 @@
$HOME/.config/wryn/sfx backlight &
xbacklight + 10

View 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";

View File

@ -0,0 +1 @@
"$HOME/.wryn/bin/desktop/youtube-music/controller.sh" next

View File

@ -0,0 +1 @@
"$HOME/.wryn/bin/desktop/youtube-music/controller.sh" playpause

View File

@ -0,0 +1 @@
"$HOME/.wryn/bin/desktop/youtube-music/controller.sh" prev