add a bunch of scripts i changed recently-ish but forgot about

This commit is contained in:
ktyl 2021-09-05 10:45:01 +01:00
parent 04f1e195d0
commit 682f9b85fb
6 changed files with 46 additions and 14 deletions

View File

@ -2,8 +2,10 @@
export BSPWM_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm" export BSPWM_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm"
# theme colours # restore theme colours
. "${HOME}/.cache/wal/colors.sh" walcache="$HOME/.cache/wal"
. "$walcache/colors.sh"
xrdb "$walcache/colors.Xresources"
# launch bar # launch bar
. $SCRIPTS/bar/launch . $SCRIPTS/bar/launch
@ -13,14 +15,10 @@ bspc monitor --reset-desktops 1 2 3 4 5 6 7 8 9 0
bspc config border_width 0 bspc config border_width 0
bspc config window_gap 0 bspc config window_gap 0
visible=$CONFIG/polybar/.visible bspc config top_padding 0
bspc config bottom_padding 0
vpadding=0 bspc config left_padding 0
hpadding=0 bspc config right_padding 0
bspc config top_padding $vpadding
bspc config bottom_padding $vpadding
bspc config left_padding $hpadding
bspc config right_padding $hpadding
bspc config split_ratio 0.52 bspc config split_ratio 0.52
bspc config borderless_monocle true bspc config borderless_monocle true

View File

@ -485,7 +485,7 @@ underline_char="~"
# #
# Display colors 0-15 in the blocks. (16 colors) # Display colors 0-15 in the blocks. (16 colors)
# neofetch --block_range 0 15 # neofetch --block_range 0 15
block_range=(0 7) block_range=(0 15)
# Toggle color blocks # Toggle color blocks
# #

View File

@ -20,7 +20,7 @@ blur:
{ {
method = "gaussian"; method = "gaussian";
size = 15; size = 15;
deviation = 10.0; deviation = 25.0;
}; };
# Fading # Fading

View File

@ -24,9 +24,9 @@ super + Escape
$HOME/.config/bspwm/bspwmrc reload $HOME/.config/bspwm/bspwmrc reload
Print Print
xfce4-screenshooter $SCRIPTS/screenshot/ssall
super + shift + s super + shift + s
xfce4-screenshooter -cr $SCRIPTS/screenshot/ssregion
# #
# bspwm hotkeys # bspwm hotkeys

View File

@ -7,3 +7,4 @@ source $SCRIPTS/cam/env.sh
export PATH=$PATH:$SCRIPTS export PATH=$PATH:$SCRIPTS
export PATH=$PATH:$SCRIPTS/cam export PATH=$PATH:$SCRIPTS/cam
export PATH=$PATH:$SCRIPTS/img export PATH=$PATH:$SCRIPTS/img
export PATH=$PATH:$SCRIPTS/screenshot

33
.scripts/theme Executable file
View File

@ -0,0 +1,33 @@
#!/usr/bin/env bash
bgdir="$HOME/pic/bg"
cache="$HOME/.cache/wal"
config="$HOME/.config"
dir=$bgdir
if [ $# -eq 1 ]; then
dir=$1
fi
file=`sxiv -o $dir`
if [ $# -eq 1 ]; then
cp $file $bgdir/`basename $file`
fi
# generate terminal colors with wal
wal -i $file
# move temporary files to config in case .cache gets nuked hee hoo
cp "$cache/colors-kitty.conf" "$config/kitty/colors-kitty.conf"
cp "$cache/colors-rofi-light.rasi" "$config/rofi/colors-rofi-light.rasi"
cp "$cache/colors-rofi-dark.rasi" "$config/rofi/colors-rofi-dark.rasi"
# update x resources
xrdb "$cache/colors.Xresources"
# set system theme with wpg
#wpg -a $file -l
#wpg -s $file -l
# reload bspwm
$HOME/.config/bspwm/bspwmrc reload