summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2023-11-26 02:56:02 -0500
committerMitsuo Tokumori <[email protected]>2023-11-26 02:56:02 -0500
commitd07c9fab11f99c7e6981a94027077e68f6f0cb99 (patch)
treea3c46adf17f4fe6c931c89adbb49bd21bdd612f0
parentc3e93efbd534ba8b2dd5e5ea0745005f37b42df2 (diff)
downloaddotfiles-d07c9fab11f99c7e6981a94027077e68f6f0cb99.tar.gz
dotfiles-d07c9fab11f99c7e6981a94027077e68f6f0cb99.tar.bz2
dotfiles-d07c9fab11f99c7e6981a94027077e68f6f0cb99.zip
Add background to dwm
-rw-r--r--config/bash/bash_aliases1
-rw-r--r--config/xorg/xinitrc1
-rwxr-xr-xlocal/bin/setbg.sh7
3 files changed, 9 insertions, 0 deletions
diff --git a/config/bash/bash_aliases b/config/bash/bash_aliases
index 46051cf..5ea253d 100644
--- a/config/bash/bash_aliases
+++ b/config/bash/bash_aliases
@@ -63,3 +63,4 @@ alias mpv_nhk_720p='mpv "https://nhkwlive-ojp.akamaized.net/hls/live/2003459/nhk
# ======================================================================
alias :q="cowsay -d \"this isn't Vim\""
alias :w="cowsay -b \"this isn't Vim\""
+alias sl="sl -de -5"
diff --git a/config/xorg/xinitrc b/config/xorg/xinitrc
index c70e4fa..74aeeef 100644
--- a/config/xorg/xinitrc
+++ b/config/xorg/xinitrc
@@ -69,4 +69,5 @@ setxkbmap -option caps:escape # map CAPSLOCK to ESC
# Start dwm
xautolock -time 10 -locker slock &
dwmblocks &
+setbg.sh &
exec dwm
diff --git a/local/bin/setbg.sh b/local/bin/setbg.sh
new file mode 100755
index 0000000..cd1a404
--- /dev/null
+++ b/local/bin/setbg.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Sets the background (Suckless setup)
+
+bgfile="$HOME/media/Pictures/Wallpapers/landscapes/japan/Lake_Kawaguchiko_Sakura_Mount_Fuji_3.jpg"
+
+xwallpaper --output eDP --zoom "$bgfile"