aboutsummaryrefslogtreecommitdiff
path: root/Scripts
diff options
context:
space:
mode:
authorKumar <kumar@kumardamani.xyz>2021-07-11 22:40:36 +0000
committerKumar <kumar@kumardamani.xyz>2021-07-11 22:40:36 +0000
commit25a19bd2eeba50888be4ab28f5a24073d11f2cb3 (patch)
treef5f7c00c22badfc9278293c5435445f2b8454deb /Scripts
parentc7df27b5337ccf1ae7ff4531d3e4e76a80035997 (diff)
updated confs
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/.config/Scripts/autostart.sh6
-rwxr-xr-xScripts/.config/Scripts/setbg3
2 files changed, 5 insertions, 4 deletions
diff --git a/Scripts/.config/Scripts/autostart.sh b/Scripts/.config/Scripts/autostart.sh
index 37c4522..27694d2 100755
--- a/Scripts/.config/Scripts/autostart.sh
+++ b/Scripts/.config/Scripts/autostart.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
function run {
SERVICE="$@"
@@ -24,13 +24,13 @@ FEDORA=$(hostnamectl | grep -qw Fedora && echo $?)
if [ "$FEDORA" == 0 ];
then
xinput --set-prop "Synaptics TM3276-022" "Device Enabled" 0
- run vivaldi
+ run $BROWSER
run light-locker
else
synclient TouchpadOff=1
run /usr/bin/xflux -l 43.6404 -g -79.3995
run st -c email -e neomutt
- run brave
+ run $BROWSER
run mpd
run light-locker
fi
diff --git a/Scripts/.config/Scripts/setbg b/Scripts/.config/Scripts/setbg
index 47f0087..0149f82 100755
--- a/Scripts/.config/Scripts/setbg
+++ b/Scripts/.config/Scripts/setbg
@@ -15,5 +15,6 @@ WALLPAPER_HOME="$HOME/.config/wall.png"
[ -d "$1" ] && cp -f "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -type f | shuf -n 1)" "$WALLPAPER_HOME" && notify-send -i "$WALLPAPER_HOME" "Random Wallpaper chosen."
# wal is installed, use it.
-WALPATH=$( ([[ -f /usr/bin/wal ]] && echo "/usr/bin/wal") || ([[ -f /usr/local/bin/wal ]] && echo "/usr/local/bin/wal") )
+WALPATH=$( ([[ -f $HOME/.local/bin/wal ]] && echo "$HOME/.local/bin/wal") || ([[ -f /usr/local/bin/wal ]] && echo "/usr/local/bin/wal") )
"$WALPATH" -c && "$WALPATH" -o $HOME/.config/Scripts/done.sh -i "$WALLPAPER_HOME"
+