diff options
| -rw-r--r-- | sarc.config | 7 | ||||
| -rwxr-xr-x | scripts/plugin.sh | 6 | ||||
| -rwxr-xr-x | scripts/set_vars.sh | 4 | ||||
| -rw-r--r-- | wm/dmenu-5.1/-u | 1 | ||||
| -rwxr-xr-x | wm/dmenu-5.1/dmenu_run | 6 | ||||
| -rwxr-xr-x | wm/dmenu-5.1/dmenu_run.old | 2 | ||||
| -rw-r--r-- | wm/dwm-6.3/config.h | 2 |
7 files changed, 26 insertions, 2 deletions
diff --git a/sarc.config b/sarc.config new file mode 100644 index 0000000..ed67975 --- /dev/null +++ b/sarc.config @@ -0,0 +1,7 @@ +# edit this and recompile +sarc_browser="chromium" +sarc_terminal="st" +sarc_fm="st ranger" + +# do NOT EDIT THIS +THEME=default diff --git a/scripts/plugin.sh b/scripts/plugin.sh new file mode 100755 index 0000000..f5aa0ab --- /dev/null +++ b/scripts/plugin.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +mkdir -p plugins/.inuse +echo "Enter path to plugin:" && read file +cp $file plugins/.inuse/ +patch -p1 $file diff --git a/scripts/set_vars.sh b/scripts/set_vars.sh new file mode 100755 index 0000000..aab7c36 --- /dev/null +++ b/scripts/set_vars.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +source ./sarc.config +sed -i "s/SARC_TERMINAL/$sarc_browser/g" wm/dwm-6.3/config.h diff --git a/wm/dmenu-5.1/-u b/wm/dmenu-5.1/-u new file mode 100644 index 0000000..ac60330 --- /dev/null +++ b/wm/dmenu-5.1/-u @@ -0,0 +1 @@ +/usr/local/sbin /usr/local/bin /usr/bin /usr/lib/jvm/default/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /usr/sbin/ /home/khan/.local/bin/ /usr/sbin/ /home/khan/.local/bin/ diff --git a/wm/dmenu-5.1/dmenu_run b/wm/dmenu-5.1/dmenu_run index 834ede5..baf3e57 100755 --- a/wm/dmenu-5.1/dmenu_run +++ b/wm/dmenu-5.1/dmenu_run @@ -1,2 +1,6 @@ #!/bin/sh -dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} & + +DMENU_PATH=$(echo $PATH | sed 's/:/ /g' | sort -u) +EXE=$(ls $DMENU_PATH | grep -v '^/' | sort | dmenu -p "Enter a program name: ") + +$EXE diff --git a/wm/dmenu-5.1/dmenu_run.old b/wm/dmenu-5.1/dmenu_run.old new file mode 100755 index 0000000..834ede5 --- /dev/null +++ b/wm/dmenu-5.1/dmenu_run.old @@ -0,0 +1,2 @@ +#!/bin/sh +dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} & diff --git a/wm/dwm-6.3/config.h b/wm/dwm-6.3/config.h index d998bc5..8116730 100644 --- a/wm/dwm-6.3/config.h +++ b/wm/dwm-6.3/config.h @@ -29,8 +29,8 @@ static const unsigned int alphas[][3] = { }; static const char *const autostart[] = { + "redshift_run", NULL, "xsetroot", "-name", "Loading dwmblocks...", NULL, - "source", "/tmp/display", "&", "autorandr", "-l", "$(echo $display)", NULL, "dwmblocks", NULL, "fehbg", NULL, "dunst", NULL, |