mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
use xdg dirs properly (#549)
This commit is contained in:
parent
a0b422b7b1
commit
88d4f7e926
2 changed files with 2 additions and 2 deletions
|
|
@ -164,7 +164,7 @@ const WaifuImage = (taglist) => {
|
|||
name: 'Hoard',
|
||||
icon: 'save',
|
||||
action: (self) => {
|
||||
execAsync(['bash', '-c', `mkdir -p ~/Pictures/homework${thisBlock.attribute.isNsfw ? '/🌶️' : ''} && cp ${thisBlock.attribute.imagePath} ~/Pictures/homework${thisBlock.attribute.isNsfw ? '/🌶️/' : ''}`])
|
||||
execAsync(['bash', '-c', `mkdir -p $(xdg-user-dir PICTURES)/homework${thisBlock.attribute.isNsfw ? '/🌶️' : ''} && cp ${thisBlock.attribute.imagePath} $(xdg-user-dir PICTURES)/homework${thisBlock.attribute.isNsfw ? '/🌶️/' : ''}`])
|
||||
.then(() => self.label = 'done')
|
||||
.catch(print);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
CONFIG_DIR="$XDG_CONFIG_HOME/ags"
|
||||
$CONFIG_DIR/scripts/color_generation/switchwall.sh $(fd . ~/Pictures/wallpapers/ -e .png -e .jpg -e .svg | xargs shuf -n1 -e)
|
||||
$CONFIG_DIR/scripts/color_generation/switchwall.sh "$(fd . $(xdg-user-dir PICTURES)/wallpapers/ -e .png -e .jpg -e .svg | xargs shuf -n1 -e)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue