diff --git a/archive.sh b/archive.sh index c342dd3..4287b68 100755 --- a/archive.sh +++ b/archive.sh @@ -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 \ No newline at end of file +git-untracked \ +"$scripts_dir" diff --git a/config/bspwm/bspwmrc b/config/bspwm/bspwmrc index 7558d83..25f37df 100755 --- a/config/bspwm/bspwmrc +++ b/config/bspwm/bspwmrc @@ -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 diff --git a/config/bspwm/colors b/config/bspwm/colors new file mode 100755 index 0000000..6ac0ac6 --- /dev/null +++ b/config/bspwm/colors @@ -0,0 +1,3 @@ +bspc config normal_border_color "#232530" +bspc config active_border_color "#9DA0A2" +bspc config focused_border_color "#59E1E3" diff --git a/config/qutebrowser/autoconfig.yml b/config/qutebrowser/autoconfig.yml index e45b76b..341c23b 100755 --- a/config/qutebrowser/autoconfig.yml +++ b/config/qutebrowser/autoconfig.yml @@ -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: diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 038a55c..7f698b5 100755 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -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 \ No newline at end of file +# c.colors.webpage.bg = base00 +#END SHCHEMES BLOCK diff --git a/config/qutebrowser/qsettings/QtProject.conf b/config/qutebrowser/qsettings/QtProject.conf index 37ee274..58cb429 100644 --- a/config/qutebrowser/qsettings/QtProject.conf +++ b/config/qutebrowser/qsettings/QtProject.conf @@ -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) diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index 613a13a..36c2cbe 100755 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -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} diff --git a/scripts/chama b/scripts/chama index 89fc280..f973544 100755 --- a/scripts/chama +++ b/scripts/chama @@ -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 & diff --git a/scripts/qutebrowser b/scripts/qutebrowser new file mode 100755 index 0000000..837a25e --- /dev/null +++ b/scripts/qutebrowser @@ -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" "$@" & diff --git a/scripts/qutesearch b/scripts/qutesearch index 4ecd999..c73c806 100755 --- a/scripts/qutesearch +++ b/scripts/qutesearch @@ -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" diff --git a/scripts/set-desktop-theme b/scripts/set-desktop-theme new file mode 100755 index 0000000..6e80237 --- /dev/null +++ b/scripts/set-desktop-theme @@ -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" diff --git a/wallpapers/linux-wallpaper.jpg b/wallpapers/linux-wallpaper.jpg new file mode 100644 index 0000000..e1020ae Binary files /dev/null and b/wallpapers/linux-wallpaper.jpg differ diff --git a/wallpapers/tradin.jpg b/wallpapers/tradin.jpg new file mode 100644 index 0000000..027709b Binary files /dev/null and b/wallpapers/tradin.jpg differ diff --git a/wallpapers/walkin-just-crop.jpg b/wallpapers/walkin-just-crop.jpg new file mode 100644 index 0000000..2e4fdd3 Binary files /dev/null and b/wallpapers/walkin-just-crop.jpg differ diff --git a/wallpapers/walkin.png b/wallpapers/walkin.png new file mode 100644 index 0000000..ff2f9f2 Binary files /dev/null and b/wallpapers/walkin.png differ