vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit e488860cf0ff6f5f302772f6a9996887a5a95251
parent 73380a2783f87dbc0c0486cd963032278988188d
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu,  2 Jan 2020 14:52:35 +0300

dmenuresources: linted

Diffstat:
M.local/bin/dmenuresources | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.local/bin/dmenuresources b/.local/bin/dmenuresources @@ -1,13 +1,15 @@ #!/usr/bin/env sh -. "$HOME"/.profile + +# shellcheck disable=SC1090 +. "$HOME/.profile" # User chooses between dark and light themes theme="$(printf "dark\nlight" | dmenu -p "Do you want a light theme or a night theme?")" [ -z "$theme" ] && exit ! [ "$theme" = "dark" ] && ! [ "$theme" = "light" ] && echo not an option && exit -lsrsrc="$(ls $HOME/.local/share/xresource-themes/$theme/)" +lsrsrc="$(ls "$HOME/.local/share/xresource-themes/$theme/")" selrsrc="$(echo "$lsrsrc" | dmenu -p "choose the resource you want to set")" [ -z "$selrsrc" ] && exit -xrdb $HOME/.local/share/xresource-themes/$theme/$selrsrc && notify-send "Xresources Changed" "Your theme has been set to $selrsrc" +xrdb "$HOME/.local/share/xresource-themes/$theme/$selrsrc" && notify-send "Xresources Changed" "Your theme has been set to $selrsrc" [ "$ZATHURA_RECOLOR" = "true" ] && zc -printf "$HOME/.local/share/xresource-themes/$theme/$selrsrc" > $HOME/.lastresource +printf "$HOME/.local/share/xresource-themes/$theme/$selrsrc" > "$HOME/.lastresource"