diff --git a/dwm/dwm-6.2/config.h b/dwm/dwm-6.2/config.h index d3f8a7c..7c8ae2b 100644 --- a/dwm/dwm-6.2/config.h +++ b/dwm/dwm-6.2/config.h @@ -35,7 +35,7 @@ static const Rule rules[] = { /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, -{ "Tor Browser", NULL, NULL, 1 << 8, 0, -1 }, +{ "Tor Browser", "Navigator",NULL, 1 << 8, 0, -1 }, { "TelegramDesktop", NULL, NULL, 1 << 6, 0, -1 }, { "Workrave", NULL, NULL, ~0, 1, -1 }, { "mpv", "gl", NULL, 1 << 5, 0, -1 }, diff --git a/dwm/dwm-6.2/dwm b/dwm/dwm-6.2/dwm index 88d6f13..f968939 100755 Binary files a/dwm/dwm-6.2/dwm and b/dwm/dwm-6.2/dwm differ diff --git a/dwm/dwm-6.2/dwm.o b/dwm/dwm-6.2/dwm.o index 02c4b6f..8aaf264 100644 Binary files a/dwm/dwm-6.2/dwm.o and b/dwm/dwm-6.2/dwm.o differ diff --git a/scripts/download-current-video.sh b/scripts/download-current-video.sh new file mode 100644 index 0000000..ed013fa --- /dev/null +++ b/scripts/download-current-video.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +xdotool key ctrl+l +xdotool key ctrl+c +# xdotool type yy + +# link="$(xclip -o -selection clipboard | sed -E 's|([^&]*)(&)(.*)|\1|')" +link="$(xclip -o | sed -E 's|([^&]*)(&)(.*)|\1|')" + +filename="$(dash $SCRIPTS/download-selected-video.sh "$link")" + +echo "$filename" diff --git a/scripts/download-selected-video.sh b/scripts/download-selected-video.sh new file mode 100644 index 0000000..2542e1b --- /dev/null +++ b/scripts/download-selected-video.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +url="$(xclip -o -selection clipboard)" + +filename="$(dash $TSCRIPTS/download-video.sh "$url")" + +echo "$filename" diff --git a/scripts/watch-select-twitch.sh b/scripts/watch-select-twitch.sh new file mode 100644 index 0000000..b060d2e --- /dev/null +++ b/scripts/watch-select-twitch.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +fav_streamers="$(cat $FAV_STREAMERS)" + +watch="$(echo "$fav_streamers" | rofi -dmenu -matching fuzzy)" + +[ -n "$watch" ] && mpv "https://www.twitch.tv/$watch" diff --git a/scripts/xampp-folder.sh b/scripts/xampp-folder.sh new file mode 100644 index 0000000..7c83594 --- /dev/null +++ b/scripts/xampp-folder.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +dash $TSCRIPTS/run-on-terminal.sh "cd /opt/lampp/; su initega" diff --git a/termscripts/kernel-update.sh b/termscripts/kernel-update.sh index cedc32e..66ffb20 100644 --- a/termscripts/kernel-update.sh +++ b/termscripts/kernel-update.sh @@ -2,23 +2,23 @@ next_number="$(eselect kernel list | wc -l)" && -old_config="$HOME/kernel-config-`uname -r`" && +old_config="/home/initega/kernel-config-`uname -r`" && cp /usr/src/linux/.config $old_config && -sudo emerge --ask --update --deep --with-bdeps=y --newuse \ +emerge --ask --update --deep --with-bdeps=y --newuse \ sys-kernel/gentoo-sources && -sudo eselect kernel set $next_number && +eselect kernel set $next_number && cp $old_config /usr/src/linux/.config && cd /usr/src/linux && -sudo make syncconfig && -sudo make modules_prepare && -sudo emerge --ask @module-rebuild && -sudo make -j2 && -sudo make modules_install && -sudo make install && +make syncconfig && +make modules_prepare && +emerge --ask @module-rebuild && +make -j2 && +make modules_install && +make install && -sudo grub-mkconfig -o /grub/libreboot_grub.cfg +grub-mkconfig -o /grub/libreboot_grub.cfg