diff --git a/.emacs.d/exwm/start-exwm.sh b/.emacs.d/exwm/start-exwm.sh index c7ae368..63cdcb4 100755 --- a/.emacs.d/exwm/start-exwm.sh +++ b/.emacs.d/exwm/start-exwm.sh @@ -7,12 +7,8 @@ #picom -b --config /home/jaeus/.config/i3/picom.conf & # Enable screen locking on suspend #xss-lock -- slock & -# Fire it up for WSL -VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2) -export DISPLAY=$VETHER_IP:10.0 -#export DISPLAY=192.168.144.1:10.0 rm ~/.emacs.d/emacs.el picom -b --config $HOME/.xmonad/scripts/picom.conf & -~/scripts/random_wallpaper.sh ~/ShareDirectory/wallpaper/karina/portrait +~/scripts/random_wallpaper.sh exec dbus-launch --exit-with-session emacs -mm --debug-init -l ~/.emacs.d/desktop.el diff --git a/.zshrc b/.zshrc index 9897e58..c187d5e 100644 --- a/.zshrc +++ b/.zshrc @@ -30,3 +30,9 @@ alias ytv-best="youtube-dl -f bestvideo+bestaudio " figlet -w 100 "JaeUs-Device" cat ~/.cache/wal/sequences & + +# Fire it up for WSL2 +#VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2) +#export DISPLAY=$VETHER_IP:10.0 +export DISPLAY=192.168.144.1:10.0 + diff --git a/scripts/random_wallpaper.sh b/scripts/random_wallpaper.sh index b2273b7..deb9798 100755 --- a/scripts/random_wallpaper.sh +++ b/scripts/random_wallpaper.sh @@ -1,6 +1,11 @@ #!/bin/bash +#wal_dir=~/ShareDirectory/wallpaper/idol/landscape/karina +#wal_dir=~/ShareDirectory/wallpaper/idol/portrait/karina +wal_dir=~/ShareDirectory/wallpaper/normal -files=($1/*) + +export DISPLAY=192.168.144.1:10.0 +files=($wal_dir/**/*) randomfile=$(printf "%s\n" "${files[RANDOM % ${#files[@]}]}") echo $randomfile wal -i $randomfile --saturate 1.0 diff --git a/scripts/wsl_init_daemon.sh b/scripts/wsl_init_daemon.sh new file mode 100644 index 0000000..01a45ec --- /dev/null +++ b/scripts/wsl_init_daemon.sh @@ -0,0 +1,10 @@ +# SSH Daemon +sudo /bin/sshd + +# Cron +sudo /bin/crond + +# Ip config ( When Netcus desktop ) +sudo ip addr add dev eth0 192.168.144.2/24 +sudo ip addr add dev eth0 192.168.1.146/24 +