浏览代码

Updated I3 wallpaper setter

Samuel W. Flint 7 年之前
父节点
当前提交
86f02e3fbf
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      i3-set-wallpaper

+ 6 - 1
i3-set-wallpaper

@@ -1,3 +1,8 @@
 #!/bin/sh
 
-feh --bg-fill ~/.config/i3/wallpapers/lisp.png
+BACKGROUND=$1
+if [[ $BACKGROUND == "" ]] ; then
+    BACKGROUND=color-bg
+fi
+
+feh --bg-fill ~/.config/i3/wallpapers/${BACKGROUND}.png