This commit is contained in:
2024-04-07 17:44:55 -06:00
parent 5c1270830c
commit 1f4d4ab9df
15 changed files with 104 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/sh
BROWSER=qutebrowser
feh --bg-scale /home/dakedres/pictures/blur-pseudo-mono.png
feh --bg-scale /home/dakedres/.wallpaper.png
setxkbmap -option caps:swapescape
pipewire &

15
scripts/qutebrowser Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# initial idea: Florian Bruhin (The-Compiler)
# author: Thore Bödecker (foxxx0)
_url="$1"
_qb_version='1.0.4'
_proto_version=1
_ipc_socket="${XDG_RUNTIME_DIR}/qutebrowser/ipc-$(echo -n "$USER" | md5sum | cut -d' ' -f1)"
_qute_bin="/home/dakedres/repos/qutebrowser/.venv/bin/qutebrowser"
printf '{"args": ["%s"], "target_arg": null, "version": "%s", "protocol_version": %d, "cwd": "%s"}\n' \
"${_url}" \
"${_qb_version}" \
"${_proto_version}" \
"${PWD}" | socat -lf /dev/null - UNIX-CONNECT:"${_ipc_socket}" || "$_qute_bin" "$@" &

View File

@@ -3,4 +3,4 @@
db=$HOME/.local/share/qutebrowser/history.sqlite
url=$(sqlite3 "$db" "select title,url from History" | tac | rofi -dmenu | awk -F '|' '{print $NF}')
[ -z "$url" ] && exit
qutebrowser --target window "$url"
qutebrowser "$url"

26
scripts/set-desktop-theme Executable file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
# Favorites:
# - horizon-terminal-dark
# - heetch
# - blueforest
# - tarot
export SCHEME=$1
shchemes install_tinted_scheme
shchemes inject "$HOME/.config/qutebrowser/config.py"
pkill -HUP qutebrowser
BSPWM_THEME="$HOME/.config/bspwm/colors"
shchemes create_theme bspwm > "$BSPWM_THEME"
"$BSPWM_THEME"
shchemes inject "$HOME/.config/alacritty/alacritty.toml"
shchemes inject "$HOME/.config/rofi/config.rasi" "//"
WALLPAPER_OUT="$HOME/.wallpaper.png"
shchemes create_theme imagemagick \
| convert ~/pictures/wallpapers/tradin.jpg -dither FloydSteinberg -colorspace srgb -remap txt:- "$WALLPAPER_OUT"
feh --bg-scale "$WALLPAPER_OUT"