Browse Source

Align more wth xdg base directories

master
Micah Halter 2 years ago
parent
commit
f22907fa5e
  1. 2
      scripts/.config/Scripts/bemenulatex
  2. 2
      scripts/.config/Scripts/bemenuunicode
  3. 2
      scripts/.config/Scripts/displayselect
  4. 2
      scripts/.config/Scripts/dunstbar
  5. 2
      scripts/.config/Scripts/dunstcolor
  6. 2
      scripts/.config/Scripts/lock
  7. 2
      scripts/.config/Scripts/nowplaying
  8. 6
      scripts/.config/Scripts/setbackground
  9. 2
      scripts/.config/Scripts/statusbar/fullbar
  10. 5
      scripts/.config/Scripts/statusbar/mail
  11. 4
      scripts/.config/Scripts/statusbar/music
  12. 2
      scripts/.config/Scripts/statusbar/network
  13. 0
      scripts/.local/share/emoji
  14. 0
      scripts/.local/share/unicode

2
scripts/.config/Scripts/bemenulatex

@ -2,7 +2,7 @@
xclip -h >/dev/null || exit
chosen=$(grep -v "#" -h $HOME/.config/Scripts/latexchars | bemenucolor -l 20)
chosen=$(grep -v "#" -h $XDG_CONFIG_HOME/Scripts/latexchars | bemenucolor -l 20)
[ "$chosen" != "" ] || exit

2
scripts/.config/Scripts/bemenuunicode

@ -2,7 +2,7 @@
xclip -h >/dev/null || exit
chosen=$(grep -v "#" -h $HOME/.config/Scripts/emoji $HOME/.config/Scripts/unicode | bemenucolor -i -l 20)
chosen=$(grep -v "#" -h $XDG_DATA_HOME/emoji $XDG_DATA_HOME/unicode | bemenucolor -i -l 20)
[ "$chosen" != "" ] || exit

2
scripts/.config/Scripts/displayselect

@ -5,7 +5,7 @@
# User may also select "manual selection" which opens arandr.
# I plan on adding a routine from multi-monitor setups later.
layoutloc=$HOME/.screenlayout
layoutloc=$XDG_CONFIG_HOME/screenlayout
twoscreen() { # If multi-monitor is selected and there are two screens.

2
scripts/.config/Scripts/dunstbar

@ -1,6 +1,6 @@
#!/bin/bash
scripts="$HOME/.config/Scripts/statusbar"
scripts="$XDG_CONFIG_HOME/Scripts/statusbar"
time=3000
script="$scripts/fullbar"

2
scripts/.config/Scripts/dunstcolor

@ -1,6 +1,6 @@
#!/usr/bin/env bash
. "$HOME/.cache/wal/colors.sh"
. "$XDG_CACHE_HOME/wal/colors.sh"
dunst \
-lb "${background:-#FFFFFF}" \

2
scripts/.config/Scripts/lock

@ -6,7 +6,7 @@ if [ $? -eq 0 ]; then
fi
lock() {
. $HOME/.cache/wal/colors.sh
. $XDG_CACHE_HOME/wal/colors.sh
killall -SIGUSR1 dunst

2
scripts/.config/Scripts/nowplaying

@ -1,7 +1,7 @@
#!/bin/bash
# SETTINGS
NOW_PLAYING_PIPE="$HOME/.cache/nowplaying"
NOW_PLAYING_PIPE="$XDG_CACHE_HOME/nowplaying"
title=""

6
scripts/.config/Scripts/setbackground

@ -5,11 +5,11 @@ base="${file##*/}"
if [ ! -z "$2" ]; then
wpg -a "$1"
file="$HOME/.config/wpg/wallpapers/${base//\ /_}"
file="$XDG_CONFIG_HOME/wpg/wallpapers/${base//\ /_}"
fi
[ ! -z "$file" ] && cp "$file" ~/.config/wall && notify-send "Wallpaper changed"
[ ! -z "$file" ] && cp "$file" $XDG_CONFIG_HOME/wall && notify-send "Wallpaper changed"
xwallpaper --zoom "$HOME/.config/wall"
xwallpaper --zoom "$XDG_CONFIG_HOME/wall"
[ ! -z "$2" ] && wpg -s "${base//\ /_}"

2
scripts/.config/Scripts/statusbar/fullbar

@ -1,6 +1,6 @@
#!/bin/bash
scripts="$HOME/.config/Scripts/statusbar"
scripts="$XDG_CONFIG_HOME/Scripts/statusbar"
echo "$({ $scripts/mail;
$scripts/volume;

5
scripts/.config/Scripts/statusbar/mail

@ -1,7 +1,8 @@
#!/bin/bash
if [[ -d $HOME/.Mail ]]; then
out=$(find $HOME/.Mail/Gatech/INBOX/new $HOME/.Mail/Gmail/INBOX/new -type f|wc -l)
MAILHOME="$XDG_DATA_HOME/Mail"
if [[ -d $MAILHOME ]]; then
out=$(find $MAILHOME/Gatech/INBOX/new $MAILHOME/Gmail/INBOX/new -type f|wc -l)
if [ -f /tmp/mailsync ]; then
echo " $(cat /tmp/mailsync)"

4
scripts/.config/Scripts/statusbar/music

@ -1,5 +1,5 @@
#!/bin/bash
if [[ -f $HOME/.cache/nowplaying ]]; then
echo " $(cat $HOME/.cache/nowplaying)"
if [[ -f $XDG_CACHE_HOME/nowplaying ]]; then
echo " $(cat $XDG_CACHE_HOME/nowplaying)"
fi

2
scripts/.config/Scripts/statusbar/network

@ -1,5 +1,5 @@
#!/bin/bash
scripts="$HOME/.config/Scripts/statusbar"
scripts="$XDG_CONFIG_HOME/Scripts/statusbar"
echo "$({ $scripts/vpn; $scripts/wifi; $scripts/ethernet; } | tr '\n' ' ')"

0
scripts/.config/Scripts/emoji → scripts/.local/share/emoji

0
scripts/.config/Scripts/unicode → scripts/.local/share/unicode

Loading…
Cancel
Save