From fd7e221d395af1d4abd9af759f1e1a2654f85711 Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Sat, 3 Apr 2021 12:55:54 +0300 Subject: [PATCH] Surf theme and mpd cache --- .gitignore | 2 ++ config/mpd/mpd.conf | 4 ++++ local/bin/st-urlhandler | 2 +- suckless/surf/config.h | 3 +-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ad772590..deb065e7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ config/wakatime/wakatime.cfg config/zsh/secret config/nextcloud/nextcloud config/spotifyd/spotifyd.conf +.ccls-cache +**/.ccls-cache diff --git a/config/mpd/mpd.conf b/config/mpd/mpd.conf index 8bdfd0a3..68365c2d 100644 --- a/config/mpd/mpd.conf +++ b/config/mpd/mpd.conf @@ -17,3 +17,7 @@ audio_output { path "/tmp/mpd.fifo" format "44100:16:2" } + +input_cache { + size "512 MB" +} diff --git a/local/bin/st-urlhandler b/local/bin/st-urlhandler index c8ab4d3e..79a73a9c 100755 --- a/local/bin/st-urlhandler +++ b/local/bin/st-urlhandler @@ -13,7 +13,7 @@ urls="$(sed 's/.*│//g' | tr -d '\n' | # First remove linebreaks and mutt sideb while getopts "hoc" o; do case "${o}" in h) printf "Optional arguments for custom use:\\n -c: copy\\n -o: xdg-open\\n -h: Show this message\\n" && exit 1 ;; o) chosen="$(echo "$urls" | dmenu -w "$WINDOWID" -i -p 'Follow which url?' -l 10)" - setsid xdg-open "$chosen" >/dev/null 2>&1 & ;; + echo "$chosen" | setsid xargs -n 1 xdg-open >/dev/null 2>&1 & ;; c) echo "$urls" | dmenu -w "$WINDOWID" -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard ;; *) printf "Invalid option: -%s\\n" "$OPTARG" && exit 1 ;; esac done diff --git a/suckless/surf/config.h b/suckless/surf/config.h index a1e03a87..49283b3f 100644 --- a/suckless/surf/config.h +++ b/suckless/surf/config.h @@ -140,8 +140,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | */ static SiteSpecific styles[] = { /* regexp file in $styledir */ - { "google.com", "google.css" }, - { ".*", "default.css" }, + { ".*", "localwiki.css" }, }; /* certificates */