Work on wallpaper scripts

This commit is contained in:
Daniel Flanagan 2018-11-08 10:49:00 -06:00
parent 432e36183a
commit 6e18bfed69
7 changed files with 36 additions and 15 deletions

14
de/bspwm/fehbg Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
feh --no-fehbg --bg-fill \
"${HOME}/.wallpaper" \
"${HOME}/.wallpaper2" \
"${HOME}/.wallpaper3" \
"${HOME}/.wallpaper4" \
"${HOME}/.wallpaper5" \
"${HOME}/.wallpaper6" \
"${HOME}/.wallpaper7" \
"${HOME}/.wallpaper8" \
"${HOME}/.wallpaper9" \
"${HOME}/.wallpaper_last" \
2>/dev/null

View File

@ -1,5 +1,5 @@
[Desktop Entry]
Name=Sway
Comment=SirCmpwn's Wayland window manager
Name=sway-lytedev
Comment=SirCmpwn's Wayland window manager with lytedev's config
Exec=sway-lytedev
Type=Application

View File

@ -33,6 +33,7 @@ super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# swap previous/next desktops
super + bracket{left,right}
bspc desktop -f {prev,next}
@ -72,6 +73,7 @@ super + {_,shift + }{1-9,0}
~button1
bspc node -f pointed
# set the current node's dimensions to 1920x1080 (for streaming)
super + shift + alt + ctrl + s
wres1080
@ -131,17 +133,9 @@ super + ctrl + alt + shift + space
super + ctrl + alt + space
bspc config -d focused bottom_padding 200; bspc config -d focused top_padding 200; bspc config -d focused left_padding 400; bspc config -d focused right_padding 400
super + alt + minus
bspc config -d focused bottom_padding $(expr $(bspc config -d focused bottom_padding) - 5)
# wm-independant shortcuts
# spawn a transparent node
super + alt + t
urxvtc && compton-trans -c -o 0
# rotate the current node
super + r
bspc node -R 90
@ -150,6 +144,12 @@ super + r
super + shift + b
bspc node -B
# wm-independant shortcuts
# spawn a transparent node
super + alt + t
urxvtc && compton-trans -c -o 0
# make current node transparent
super + t
compton-trans -c -o 0
@ -168,7 +168,7 @@ super + Return
# spawn a floating terminal
super + shift + Return
bspc rule -a '*' -o state=floating && urxvtc --dimensions 80x24
bspc rule -a '*' -o state=floating && urxvtc
# spawn the app launcher
super + space

View File

@ -1,3 +1,7 @@
#!/usr/bin/env bash
feh --bg-fill "$@"
index="${2}"
wp_file="${HOME}/.wallpaper${index}"
rm -f "${wp_file}"
ln -s "${1}" "${wp_file}"
"${HOME}/.fehbg"

View File

@ -1,3 +1,6 @@
#!/usr/bin/env bash
"$DOTFILES_PATH/de/x/loadresources" lodpi && autorandr --change && sleep 1 && restartbar
"${DOTFILES_PATH}/de/x/loadresources" lodpi
autorandr --change
restartbar
"${HOME}/.fehbg"

3
setup
View File

@ -7,8 +7,9 @@ source "${dfp}/scripts/setup_helpers.bash"
links=(
# desktop environment files
"$dfp/de/sway/config" "$XDG_CONFIG_HOME/sway/config"
"$dfp/de/bspwm/bspwmrc" "$XDG_CONFIG_HOME/bspwm/bspwmrc"
"$dfp/de/bspwm/fehbg" "$HOME/.fehbg"
"$dfp/de/sway/config" "$XDG_CONFIG_HOME/sway/config"
"$dfp/de/sxhkd/sxhkdrc" "$XDG_CONFIG_HOME/sxhkd/sxhkdrc"
"$dfp/de/x/resources" "$HOME/.Xresources"
"$dfp/de/x/initrc" "$HOME/.xinitrc"

View File

@ -69,7 +69,6 @@ alias gl="git log --graph --pretty=oneline --abbrev-commit --decorate"
# misc aliases
alias qute="qutebrowser --backend webengine"
alias p="ping 8.8.8.8"
alias setbg="feh --bg-fill"
alias C="clear && clear"
alias keyrepeat="xset r rate 250 80"
alias r="ranger"