vdotfiles

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

commit bc3c35f22293d10e2abb0fd71c8510d55a55b1af
parent 5530a513a63e351ccf8f2db2c8cf97e0e142abd3
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 22 Oct 2019 15:19:39 +0300

script to set xresources

Diffstat:
A.local/bin/dmenuresources | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/.local/bin/dmenuresources b/.local/bin/dmenuresources @@ -0,0 +1,11 @@ +#!/bin/sh + +# 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/)" +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" +printf "$HOME/.local/share/xresource-themes/$theme/$selrsrc" > $HOME/.lastresource