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

View File

@ -1,18 +1,24 @@
#!/bin/bash
#!/bin/sh
dir=$PWD
scripts_subdir=$(echo "$PWD/scripts")
set -x
dotfiles_root="$(dirname "$0")"
dotfiles_root="$(realpath "$dotfiles_root")"
scripts_dir="${dotfiles_root}/scripts"
config_dir="${dotfiles_root}/config"
echo "$scripts_dir"
rsync -a ~/pictures/wallpapers/* wallpapers/
cp ~/.chama "$scripts_subdir/chama"
cp ~/.chama "${scripts_dir}/chama"
cd config
cd "$config_dir" || exit
rsync -a --exclude 'bookmarks' ~/.config/qutebrowser .
rsync -a ~/.config/bspwm .
rsync -a ~/.config/sxhkd .
rsync -a ~/.config/tint2/tint2rc tint2/
cd ~/bin
cd ~/bin || exit
cp \
bsp-float \
bsp-smove \
@ -20,8 +26,11 @@ bsp-toggle-visibility \
pfetch \
power \
qutesearch \
qutebrowser \
rofi-ask \
"set-desktop-theme" \
tabc-smart-detach \
sxhkd-help \
web \
$scripts_subdir
git-untracked \
"$scripts_dir"

View File

@ -34,5 +34,6 @@ bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
xsetroot -cursor_name left_ptr &
$(dirname $0)/colors
export _JAVA_AWT_WM_NONREPARENTING=1

3
config/bspwm/colors Executable file
View File

@ -0,0 +1,3 @@
bspc config normal_border_color "#232530"
bspc config active_border_color "#9DA0A2"
bspc config focused_border_color "#59E1E3"

View File

@ -9,9 +9,19 @@ settings:
bindings.commands:
global:
normal:
J: scroll-page 0 1
K: scroll-page 0 -1
gp: mode-enter passthrough
h: back
l: forward
colors.webpage.preferred_color_scheme:
global: dark
content.autoplay:
global: false
content.cookies.accept:
global: no-unknown-3rdparty
content.cookies.store:
global: false
content.media.audio_capture:
https://online-voice-recorder.com: true
content.notifications.enabled:

View File

@ -1,28 +1,28 @@
# Theme: https://github.com/alternateved/kaolin-inspired/blob/main/kaolin-dark/qutebrowser/default/base16-kaolin-dark.config.py
config.load_autoconfig()
#START SHCHEMES BLOCK : shchemes create_theme qutebrowser
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova
# Kaolin-dark scheme by alternateved (http://github.com/alternateved)
# Inspired by (https://github.com/ogdenwebb/emacs-kaolin-themes)
# Scheme name:
# Scheme author:
# Template author: theova
# Commentary: Tinted Theming: (https://github.com/tinted-theming)
base00 = "#18181B"
base01 = "#222225"
base02 = "#4B5254"
base03 = "#545C5E"
base04 = "#879193"
base05 = "#9ba5a7"
base06 = "#d0d0d4"
base07 = "#E4E4E8"
base08 = "#CD5C60"
base09 = "#DBAC66"
base0A = "#F2C866"
base0B = "#6FB593"
base0C = "#4D9391"
base0D = "#91B9C7"
base0E = "#845A84"
base0F = "#E36D5B"
base00 = "#1C1E26"
base01 = "#232530"
base02 = "#2E303E"
base03 = "#6F6F70"
base04 = "#9DA0A2"
base05 = "#CBCED0"
base06 = "#DCDFE4"
base07 = "#E3E6EE"
base08 = "#E95678"
base09 = "#FAB795"
base0A = "#FAC29A"
base0B = "#29D398"
base0C = "#59E1E3"
base0D = "#26BBD9"
base0E = "#EE64AC"
base0F = "#F09383"
# set qutebrowser colors
@ -302,4 +302,5 @@ c.colors.tabs.selected.even.bg = base02
# Background color for webpages if unset (or empty to use the theme's
# color).
# c.colors.webpage.bg = base00
# c.colors.webpage.bg = base00
#END SHCHEMES BLOCK

View File

@ -1,7 +1,7 @@
[FileDialog]
history=file:///home/dakedres/Downloads, file:///home/dakedres/downloads, file:///home/dakedres/projects/wchs-slideshow, file:///mnt/SICKSTICK/WCHS - Pictures, file:///mnt/SICKSTICK/WCHS - Website Pictures
lastVisited=file:///mnt/SICKSTICK/WCHS - Website Pictures
qtVersion=6.5.2
history=file:///home/dakedres/music, file:///home/dakedres, file:///home/dakedres/pictures, file:///home/dakedres/pictures/wallpapers, file:///home/dakedres/splash
lastVisited=file:///home/dakedres/splash
qtVersion=6.6.2
shortcuts=file:, file:///home/dakedres
sidebarWidth=90
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x2l\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\x1\x7f\0\0\0\x1\0\0\0\0\0\0\0?\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\0n\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff\0\0\0\0)

View File

@ -121,7 +121,7 @@ alt + ctrl + {m,x,y,z}
# focus the node in the given direction
alt + {h,j,k,l,Left,Down,Up,Right}
bspc node -{f} {west,south,north,east,west,south,north,east}
bspc node -{f} {west,south,north,east,west,south,north,east}
# focus the node for the given path jump
alt + {p,b,comma,period}
@ -177,9 +177,9 @@ alt + ctrl + shift + space
alt + s; {h,j,k,l,Left,Down,Up,Right}
bspc node -z {left -20 0,right 20 0,top 0 -20,bottom 0 20,left -20 0,right 20 0,top 0 -20,bottom 0 20}
move a floating window
alt + {h,j,k,l}
bspc node -v {-30 0,0 20,0 -30,20 0}
# move a floating window
# alt + {h,j,k,l}
# bspc node -v {-30 0,0 20,0 -30,20 0}
# move a not-floating window
alt + shift + {h,j,k,l,Left,Down,Up,Right}

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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 KiB

BIN
wallpapers/tradin.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

BIN
wallpapers/walkin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 795 KiB