diff options
| author | stkhan <personal@slickd.xyz> | 2022-05-07 12:42:36 +0000 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2022-05-07 12:42:36 +0000 |
| commit | 0f734f0e317996d246fed2b0bdd1550c49d46e5b (patch) | |
| tree | db0f535dcb02dc1959508a1e94570db74ea3bbb2 /dwm-6.3 | |
| parent | 42966e3e531b8e46e4ab31480d45aa7a141f19ce (diff) | |
Fixed things, added sfm
Diffstat (limited to 'dwm-6.3')
| -rw-r--r-- | dwm-6.3/config.h | 4 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dwm-search | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dwm-6.3/config.h b/dwm-6.3/config.h index 5a8f71c..16fbdb4 100644 --- a/dwm-6.3/config.h +++ b/dwm-6.3/config.h @@ -1,4 +1,3 @@ -#include "../colors.h" #include "cmd.h" /* See LICENSE file for copyright and license details. */ @@ -17,6 +16,7 @@ static const char *fonts[] = { "Source Code Pro:size=9" , "NotoColorEmo static const char dmenufont[] = "Source Code Pro:size=9"; static const unsigned int baralpha = 0xd0; static const unsigned int borderalpha = OPAQUE; +#include "../colors.h" static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, @@ -120,7 +120,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { MODKEY, XK_r, spawn, SHCMD("mpvopen") }, - { MODKEY, XK_F3, spawn, SHCMD("st ranger") }, + { MODKEY, XK_F3, spawn, SHCMD("st sfm") }, { MODKEY, XK_F5, spawn, SHCMD("st ncmpcpp") }, { MODKEY|ShiftMask, XK_f, spawn, SHCMD("firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed surf -e") }, { MODKEY, XK_w, spawn, SHCMD("get_weather") }, diff --git a/dwm-6.3/scripts/dwm-search b/dwm-6.3/scripts/dwm-search index a747424..ff49fc7 100755 --- a/dwm-6.3/scripts/dwm-search +++ b/dwm-6.3/scripts/dwm-search @@ -1,7 +1,7 @@ #!/bin/bash QUERY=$(tac ~/.config/surf/search.txt | sort -u | dmenu -l 20 -p "Search DuckDuckGo: ") -SEARCH=$(echo $QUERY | sed 's/ /+/g') +SEARCH=$(echo $QUERY | sed 's/ /+/g; s/-e//') URL="duckduckgo.com/?q=$SEARCH" CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $URL" @@ -9,6 +9,6 @@ if [[ -z "$SEARCH" ]]; then exit else # saves search to history - echo $QUERY >> ~/.config/surf/search.txt + echo $QUERY | sed 's/-e//' >> ~/.config/surf/search.txt $CMD fi |