This commit is contained in:
NAME
2022-06-18 15:15:18 -04:00
parent dc915e293f
commit f1cad2f3cd
+3 -2
View File
@@ -28,7 +28,7 @@ odict(){
# Linux specific functions
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
set_wallpaper(){
function set_wallpaper(){
local file=$1
# convert to abs path
if [[ ! "$file" = /* ]]; then
@@ -37,12 +37,13 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
gsettings set org.gnome.desktop.background picture-uri file://$file
}
fi
# Mac OSX specific functions
if [[ "$OSTYPE" == "darwin"* ]]; then
set_wallpaper(){
function set_wallpaper(){
local file=$1
# convert to abs path
if [[ ! "$file" = /* ]]; then