dell-xps-15 branch should be good

This commit is contained in:
Chris Nutter committed 2020-09-07 14:07:04 -07:00
1 parent 7fd47915ae
commit 42731f7488
59 files changed
+13326

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#! /bin/bash
for ((;;))
do
sl
done
+3
View File
@@ -0,0 +1,3 @@
#! /usr/bin/env bash
kitty -e ncmpcpp
+41
View File
@@ -0,0 +1,41 @@
#!/bin/bash
if [ $UID != 0 ] ; then
echo "Must be root!"
exit 1
fi
patch_dir=/home/$(logname)/.cache/wal
if [ ! "$1" = "" ] ; then
patch_dir=$1
fi
echo "Patch dir is $patch_dir"
vivaldi_path=$(dirname $(find /opt -name "vivaldi-bin"))
if [ "$vivaldi_path" = "" ] ; then
echo "Cannot find vivaldi path"
exit 2
fi
echo "Patching vivaldi located at $vivaldi_path"
# backup browser.html
cp "$vivaldi_path/resources/vivaldi/browser.html" "$vivaldi_path/resources/vivaldi/browser.html-$(date +%Y-%m-%dT%H-%M-%S)"
# add custom.js
if [ -f "$patch_dir/vivaldi.js" ] ; then
echo "Using js file: $path_dir/vivaldi.js"
# copy js
cp -f "$patch_dir/vivaldi.js" "$vivaldi_path/resources/vivaldi/style/custom.js"
# patch browser.html
js_patched=$(grep '<script src="style/custom.js"><\/script>' $vivaldi_path/resources/vivaldi/browser.html)
if [ "$js_patched" = "" ] ; then
echo "Browser.html have been patched"
sed -i -e 's/<\/body>/<script src="style\/custom.js"><\/script> <\/body>/' "$vivaldi_path/resources/vivaldi/browser.html"
fi
fi
+7
View File
@@ -0,0 +1,7 @@
#! /bin/bash
ls | sort -R | tail -$N | while read file; do
neofetch --ascii ~/.scripts/ascii/file
done
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Terminate already running bar instances
killall -q polybar
# If all your bars have ipc enabled, you can also use
# polybar-msg cmd quit
# Launch bar1 and bar2
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
polybar bar1 >>/tmp/polybar1.log 2>&1 &
polybar bar2 >>/tmp/polybar2.log 2>&1 &
echo "Bars launched..."
+1
View File
@@ -0,0 +1 @@
sudo mount.cifs //192.168.1.176/data /mnt/purple/ -o user=admin
+36
View File
@@ -0,0 +1,36 @@
#!/bin/bash
# _ _ _
# __| |_ _ _ __ ___| |___ ____ _| |
# / _` | | | | '_ \/ __| __\ \ /\ / / _` | |
# | (_| | |_| | | | \__ \ |_ \ V V / (_| | |
# \__,_|\__,_|_| |_|___/\__| \_/\_/ \__,_|_|
# Author: Kwest Ambani
# Created: 02.08.19
# get pywal colors
kolor00=$(sed -n 1p ~/.cache/wal/colors)
kolor01=$(sed -n 2p ~/.cache/wal/colors)
kolor02=$(sed -n 3p ~/.cache/wal/colors)
kolor03=$(sed -n 4p ~/.cache/wal/colors)
kolor04=$(sed -n 5p ~/.cache/wal/colors)
kolor05=$(sed -n 6p ~/.cache/wal/colors)
kolor06=$(sed -n 7p ~/.cache/wal/colors)
kolor07=$(sed -n 8p ~/.cache/wal/colors)
kolor08=$(sed -n 9p ~/.cache/wal/colors)
kolor09=$(sed -n 10p ~/.cache/wal/colors)
kolor10=$(sed -n 11p ~/.cache/wal/colors)
kolor11=$(sed -n 12p ~/.cache/wal/colors)
kolor12=$(sed -n 13p ~/.cache/wal/colors)
kolor13=$(sed -n 14p ~/.cache/wal/colors)
kolor14=$(sed -n 15p ~/.cache/wal/colors)
kolor15=$(sed -n 16p ~/.cache/wal/colors)
# inject pywal colors into dunst config
sed -i "s/background = .*/background = \"$kolor00\"/g" ~/.config/dunst/dunstrc
sed -i "s/foreground = .*/foreground = \"$kolor04\"/g" ~/.config/dunst/dunstrc
sed -i "s/frame_color = .*/frame_color = \"$kolor04\"/g" ~/.config/dunst/dunstrc
pkill dunst
dunst &
+3
View File
@@ -0,0 +1,3 @@
#! /bin/bash
cp ~/.cache/wal-discord/style.css ~/.config/discordcanary/0.0.103/modules/discord_desktop_core/ && cd ~/.config/discordcanary/0.0.103/modules/discord_desktop_core/ && mv style.css discord-custom.css