Browse Source

Surf theme and mpd cache

main
Yigit Colakoglu 4 years ago
parent
commit
fd7e221d39
4 changed files with 8 additions and 3 deletions
  1. +2
    -0
      .gitignore
  2. +4
    -0
      config/mpd/mpd.conf
  3. +1
    -1
      local/bin/st-urlhandler
  4. +1
    -2
      suckless/surf/config.h

+ 2
- 0
.gitignore View File

@ -7,3 +7,5 @@ config/wakatime/wakatime.cfg
config/zsh/secret
config/nextcloud/nextcloud
config/spotifyd/spotifyd.conf
.ccls-cache
**/.ccls-cache

+ 4
- 0
config/mpd/mpd.conf View File

@ -17,3 +17,7 @@ audio_output {
path "/tmp/mpd.fifo"
format "44100:16:2"
}
input_cache {
size "512 MB"
}

+ 1
- 1
local/bin/st-urlhandler View File

@ -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

+ 1
- 2
suckless/surf/config.h View File

@ -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 */


Loading…
Cancel
Save