substitute ~/.local/share with $XDG_DATA_HOME
This commit is contained in:
parent
2b572b2a89
commit
82cf021b78
10 changed files with 13 additions and 13 deletions
|
@ -43,4 +43,4 @@ alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)"
|
|||
alias \
|
||||
magit="nvim -c MagitOnly" \
|
||||
ref="shortcuts >/dev/null; source ~/.config/shortcutrc" \
|
||||
weath="less -S ~/.local/share/weatherreport" \
|
||||
weath="less -S $XDG_DATA_HOME/weatherreport" \
|
||||
|
|
|
@ -222,7 +222,7 @@ for_window [title="mpvfloat"] border pixel 0
|
|||
no_focus [title="mpvfloat"]
|
||||
|
||||
# #---Function Buttons---# #
|
||||
bindsym $mod+F1 exec --no-startup-id groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura -
|
||||
bindsym $mod+F1 exec --no-startup-id groff -mom $XDG_DATA_HOME/larbs/readme.mom -Tpdf | zathura -
|
||||
bindsym $mod+F2 restart
|
||||
bindsym $mod+F3 exec --no-startup-id displayselect
|
||||
bindsym $mod+F4 exec --no-startup-id prompt "Hibernate computer?" "$hibernate"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[Default Applications]
|
||||
|
||||
# xdg-open will use these settings to determine how to open filetypes.
|
||||
# These .desktop entries can also be seen and changed in ~/.local/share/applications/
|
||||
# These .desktop entries can also be seen and changed in $XDG_DATA_HOME/applications/
|
||||
|
||||
text/x-shellscript=text.desktop;
|
||||
x-scheme-handler/magnet=torrent.desktop;
|
||||
|
|
|
@ -10,7 +10,7 @@ ncmpcpp_directory = ~/.config/ncmpcpp
|
|||
## MPD clients (eg. ncmpc) also use that location.
|
||||
##
|
||||
#
|
||||
lyrics_directory = ~/.local/share/lyrics
|
||||
lyrics_directory = $XDG_DATA_HOME/lyrics
|
||||
#
|
||||
##### connection settings #####
|
||||
#
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# Must have xclip installed to even show menu.
|
||||
xclip -h 2>/dev/null || exit 1
|
||||
|
||||
chosen=$(cut -d ';' -f1 ~/.local/share/larbs/emoji | dmenu -i -l 20 | sed "s/ .*//")
|
||||
chosen=$(cut -d ';' -f1 $XDG_DATA_HOME/larbs/emoji | dmenu -i -l 20 | sed "s/ .*//")
|
||||
|
||||
[ "$chosen" != "" ] || exit
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
cat ~/.local/share/larbs/getkeys/"$1" 2>/dev/null && exit
|
||||
cat $XDG_DATA_HOME/larbs/getkeys/"$1" 2>/dev/null && exit
|
||||
echo "Run command with one of the following arguments for info about that program:"
|
||||
ls ~/.local/share/larbs/getkeys
|
||||
ls $XDG_DATA_HOME/larbs/getkeys
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
[ "$(pgrep -x $(basename $0) | wc -l)" -gt 2 ] && exit
|
||||
|
||||
echo ~/.local/share/newsboat/queue | entr -p queueandnotify 2>/dev/null
|
||||
echo $XDG_DATA_HOME/newsboat/queue | entr -p queueandnotify 2>/dev/null
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;;
|
||||
1) groff -mom $XDG_DATA_HOME/larbs/readme.mom -Tpdf | zathura - ;;
|
||||
2) i3 restart ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "❓ Help module" "\- Left click to open LARBS guide.
|
||||
- Middle click to refresh i3.";;
|
||||
|
|
|
@ -13,7 +13,7 @@ case $BLOCK_BUTTON in
|
|||
- Middle click syncs mail" ;;
|
||||
esac
|
||||
|
||||
unread="$(find ~/.local/share/mail/*/INBOX/new/* -type f | wc -l 2>/dev/null)"
|
||||
unread="$(find $XDG_DATA_HOME/mail/*/INBOX/new/* -type f | wc -l 2>/dev/null)"
|
||||
|
||||
icon="$(cat "/tmp/imapsyncicon_$USER")"
|
||||
|
||||
|
|
6
.profile
6
.profile
|
@ -3,8 +3,8 @@
|
|||
# Adds `~/.local/bin` to $PATH
|
||||
export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
|
||||
|
||||
# Get default LARBS WM from ~/.local/share/larbs/wm
|
||||
export LARBSWM="$(cat ~/.local/share/larbs/wm 2>/dev/null)" &&
|
||||
# Get default LARBS WM from $XDG_DATA_HOME/larbs/wm
|
||||
export LARBSWM="$(cat $XDG_DATA_HOME/larbs/wm 2>/dev/null)" &&
|
||||
[ "$LARBSWM" = "dwm" ] || export LARBSWM="i3"
|
||||
|
||||
# Default programs:
|
||||
|
@ -46,4 +46,4 @@ export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
|||
[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec startx
|
||||
|
||||
# Switch escape and caps if tty and no passwd required:
|
||||
sudo -n loadkeys ~/.local/share/larbs/ttymaps.kmap 2>/dev/null
|
||||
sudo -n loadkeys $XDG_DATA_HOME/larbs/ttymaps.kmap 2>/dev/null
|
||||
|
|
Loading…
Reference in a new issue