More scripts. Kernel script to be run with root

dwm changes are useless
This commit is contained in:
inigoortega 2019-09-17 12:51:57 +02:00
parent 0f43640f29
commit 94b36f0820
8 changed files with 40 additions and 11 deletions

View File

@ -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 },

Binary file not shown.

Binary file not shown.

View File

@ -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"

View File

@ -0,0 +1,7 @@
#!/bin/sh
url="$(xclip -o -selection clipboard)"
filename="$(dash $TSCRIPTS/download-video.sh "$url")"
echo "$filename"

View File

@ -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"

3
scripts/xampp-folder.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
dash $TSCRIPTS/run-on-terminal.sh "cd /opt/lampp/; su initega"

View File

@ -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