add a bunch of scripts i changed recently-ish but forgot about
This commit is contained in:
parent
04f1e195d0
commit
682f9b85fb
|
@ -2,8 +2,10 @@
|
|||
|
||||
export BSPWM_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bspwm"
|
||||
|
||||
# theme colours
|
||||
. "${HOME}/.cache/wal/colors.sh"
|
||||
# restore theme colours
|
||||
walcache="$HOME/.cache/wal"
|
||||
. "$walcache/colors.sh"
|
||||
xrdb "$walcache/colors.Xresources"
|
||||
|
||||
# launch bar
|
||||
. $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 window_gap 0
|
||||
|
||||
visible=$CONFIG/polybar/.visible
|
||||
|
||||
vpadding=0
|
||||
hpadding=0
|
||||
bspc config top_padding $vpadding
|
||||
bspc config bottom_padding $vpadding
|
||||
bspc config left_padding $hpadding
|
||||
bspc config right_padding $hpadding
|
||||
bspc config top_padding 0
|
||||
bspc config bottom_padding 0
|
||||
bspc config left_padding 0
|
||||
bspc config right_padding 0
|
||||
|
||||
bspc config split_ratio 0.52
|
||||
bspc config borderless_monocle true
|
||||
|
|
|
@ -485,7 +485,7 @@ underline_char="~"
|
|||
#
|
||||
# Display colors 0-15 in the blocks. (16 colors)
|
||||
# neofetch --block_range 0 15
|
||||
block_range=(0 7)
|
||||
block_range=(0 15)
|
||||
|
||||
# Toggle color blocks
|
||||
#
|
||||
|
|
|
@ -20,7 +20,7 @@ blur:
|
|||
{
|
||||
method = "gaussian";
|
||||
size = 15;
|
||||
deviation = 10.0;
|
||||
deviation = 25.0;
|
||||
};
|
||||
|
||||
# Fading
|
||||
|
|
|
@ -24,9 +24,9 @@ super + Escape
|
|||
$HOME/.config/bspwm/bspwmrc reload
|
||||
|
||||
Print
|
||||
xfce4-screenshooter
|
||||
$SCRIPTS/screenshot/ssall
|
||||
super + shift + s
|
||||
xfce4-screenshooter -cr
|
||||
$SCRIPTS/screenshot/ssregion
|
||||
|
||||
#
|
||||
# bspwm hotkeys
|
||||
|
|
|
@ -7,3 +7,4 @@ source $SCRIPTS/cam/env.sh
|
|||
export PATH=$PATH:$SCRIPTS
|
||||
export PATH=$PATH:$SCRIPTS/cam
|
||||
export PATH=$PATH:$SCRIPTS/img
|
||||
export PATH=$PATH:$SCRIPTS/screenshot
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue