mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Use xwallpaper instead of nitrogen again
This commit is contained in:
parent
ca8d5065d2
commit
4b260b802d
@ -46,7 +46,6 @@ A repository of my personal configuration files.
|
|||||||
- [[https://github.com/canonical/lightdm][LightDM]]
|
- [[https://github.com/canonical/lightdm][LightDM]]
|
||||||
- [[https://github.com/internalfx/mailcap][mailcap]]
|
- [[https://github.com/internalfx/mailcap][mailcap]]
|
||||||
- [[https://mpv.io/][mpv]]
|
- [[https://mpv.io/][mpv]]
|
||||||
- [[https://github.com/l3ib/nitrogen/][nitrogen]]
|
|
||||||
- [[https://github.com/phuhl/notify-send.py][notify-send.py]]
|
- [[https://github.com/phuhl/notify-send.py][notify-send.py]]
|
||||||
- [[https://github.com/cdemoulins/pamixer][pamixer]]
|
- [[https://github.com/cdemoulins/pamixer][pamixer]]
|
||||||
- [[https://github.com/dylanaraps/pfetch][pfetch]]
|
- [[https://github.com/dylanaraps/pfetch][pfetch]]
|
||||||
@ -56,6 +55,7 @@ A repository of my personal configuration files.
|
|||||||
- [[http://www.gnu.org/software/stow/][stow]]
|
- [[http://www.gnu.org/software/stow/][stow]]
|
||||||
- [[https://github.com/muennich/sxiv][sxiv]]
|
- [[https://github.com/muennich/sxiv][sxiv]]
|
||||||
- [[https://www.freedesktop.org/wiki/Software/udisks/][udisks]]
|
- [[https://www.freedesktop.org/wiki/Software/udisks/][udisks]]
|
||||||
|
- [[https://github.com/stoeckmann/xwallpaper][xwallpaper]]
|
||||||
- [[https://pwmt.org/projects/zathura/][zathura]]
|
- [[https://pwmt.org/projects/zathura/][zathura]]
|
||||||
** Fonts
|
** Fonts
|
||||||
- [[https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FiraCode][Fira Code Nerd Patched]]
|
- [[https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FiraCode][Fira Code Nerd Patched]]
|
||||||
|
@ -45,7 +45,7 @@ end
|
|||||||
|
|
||||||
###---Wallpaper & opacity---###
|
###---Wallpaper & opacity---###
|
||||||
wal -R
|
wal -R
|
||||||
nitrogen --restore
|
~/.local/bin/wallpaper
|
||||||
picom -b
|
picom -b
|
||||||
|
|
||||||
###---Global Settings---###
|
###---Global Settings---###
|
||||||
|
7
bspwm/.local/bin/wallpaper
Executable file
7
bspwm/.local/bin/wallpaper
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
if [ -e ~/.cache/wall1.png ] && [ -e ~/.cache/wall2.png ]; then
|
||||||
|
xwallpaper --output HDMI-2 --zoom ~/.cache/wall2.png --output DP-1 --zoom ~/.cache/wall1.png &
|
||||||
|
elif [ -e ~/.cache/wall1.png ]; then
|
||||||
|
xwallpaper --output eDP1 --zoom ~/.cache/wall1.png &
|
||||||
|
fi
|
@ -81,8 +81,8 @@ super + Escape
|
|||||||
# Misc apps
|
# Misc apps
|
||||||
ctrl + alt + {l, n, r, w, s, p, v, k}
|
ctrl + alt + {l, n, r, w, s, p, v, k}
|
||||||
alacritty --class float,float -e {lf, neomutt, /usr/bin/newsboat, ~/.config/polybar/bin/wttr-and-wait, spt, castero, nvim, ~/.local/bin/calendar-and-wait}
|
alacritty --class float,float -e {lf, neomutt, /usr/bin/newsboat, ~/.config/polybar/bin/wttr-and-wait, spt, castero, nvim, ~/.local/bin/calendar-and-wait}
|
||||||
ctrl + alt + {b, e, S, N}
|
ctrl + alt + {b, e, S}
|
||||||
{brave, emacs, spotify, nitrogen}
|
{brave, emacs, spotify}
|
||||||
|
|
||||||
#-----------------------------------------------------------Bspwm--------------------------------------------------------------
|
#-----------------------------------------------------------Bspwm--------------------------------------------------------------
|
||||||
# quit/restart bspwm
|
# quit/restart bspwm
|
||||||
|
@ -2,16 +2,27 @@
|
|||||||
|
|
||||||
function generateWallpaper() {
|
function generateWallpaper() {
|
||||||
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Setting wallpaper" &
|
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Setting wallpaper" &
|
||||||
nitrogen --head="$1" --set-zoom-fill --save "$2"
|
|
||||||
|
|
||||||
# Only generate wal color schemes for main monitor
|
# Only generate wal color schemes for main monitor
|
||||||
if [ "$1" == 0 ]; then
|
if [ "$1" == 0 ]; then
|
||||||
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Generating wal color scheme" &
|
OUTPUT_IMAGE="$HOME/.cache/wall1.png"
|
||||||
~/.local/bin/generatewal
|
# Use tail -n 1 to get last monitor so this works with laptop as well
|
||||||
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Generating LightDM wallpaper" &
|
WIDTH=$(xrandr | grep '\*' | tail -n 1 | awk -F 'x' '{print $1}' | sed 's/ //g')
|
||||||
doas convert "$2" /usr/share/pixmaps/wallpaper.png
|
HEIGHT=$(xrandr | grep '\*' | tail -n 1 | awk -F 'x' '{print $2}' | awk '{print $1}' | sed 's/ //g')
|
||||||
|
elif [ "$1" == 1 ]; then
|
||||||
|
OUTPUT_IMAGE="$HOME/.cache/wall2.png"
|
||||||
|
WIDTH=$(xrandr | grep '\*' | sed -n '1p' | awk -F 'x' '{print $2}' | awk -F '_' '{print $1}' | sed 's/ //g')
|
||||||
|
HEIGHT=$(xrandr | grep '\*' | sed -n '1p' | awk -F 'x' '{print $1}' | sed 's/ //g')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Converting wallpaper" &
|
||||||
|
convert "${2}" "${OUTPUT_IMAGE}"
|
||||||
|
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Generating wal color scheme" &
|
||||||
|
~/.local/bin/generatewal
|
||||||
|
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Generating LightDM wallpaper" &
|
||||||
|
doas convert "$2" /usr/share/pixmaps/wallpaper.png
|
||||||
|
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Setting wallpaper" &
|
||||||
|
~/.local/bin/wallpaper
|
||||||
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Wallpaper set" &
|
notify-send.py --hint string:image-path:"$2" --replaces-process setwallpaper -a sxiv "Wallpaper set" &
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
sed -n '/xin_0/{n;p;}' ~/.config/nitrogen/bg-saved.cfg | awk -F '=' '{ print $2 }' | xargs wal -n -i
|
|
||||||
|
if [ -e ~/.cache/wall1.png ]; then
|
||||||
|
wal -n -i ~/.cache/wall1.png
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user