chore: clean up old files
This commit is contained in:
parent
8be4fa917d
commit
a54d8e6e8b
3 changed files with 1 additions and 55 deletions
|
@ -14,6 +14,7 @@ README.md
|
||||||
.local/bin/launch_polybar
|
.local/bin/launch_polybar
|
||||||
.local/bin/mullvad-status
|
.local/bin/mullvad-status
|
||||||
.local/bin/media-status
|
.local/bin/media-status
|
||||||
|
.local/bin/powermenu
|
||||||
.xscreensaver
|
.xscreensaver
|
||||||
.Xmodmap
|
.Xmodmap
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [[ -x "$(command -v ddate)" ]]; then
|
|
||||||
ddate +"%{%a, %b %e%N%nCelebrate %H!%}"
|
|
||||||
else
|
|
||||||
date +'%A, %b %d'
|
|
||||||
fi
|
|
|
@ -1,48 +0,0 @@
|
||||||
#! /usr/bin/env bash
|
|
||||||
|
|
||||||
# config files
|
|
||||||
gtk2=$HOME/.gtkrc-2.0
|
|
||||||
gtk3=$HOME/.config/gtk-3.0/settings.ini
|
|
||||||
[[ -e $HOME/.extend.Xresources ]] && xr=$HOME/.extend.Xresources || xr=$HOME/.Xresources
|
|
||||||
|
|
||||||
# we'll have to override libxcursor's default
|
|
||||||
default=share/icons/default/index.theme
|
|
||||||
glob_default=/usr/$default
|
|
||||||
user_default=$HOME/.local/$default
|
|
||||||
[[ -e $glob_default ]] && [[ ! -e $user_default ]] && install -D $glob_default "$user_default"
|
|
||||||
|
|
||||||
# cursor-theme entries
|
|
||||||
cursor_gtk2=$(grep "cursor-theme-name" "$gtk2" | cut -d'"' -f2)
|
|
||||||
cursor_gtk3=$(grep "cursor-theme-name" "$gtk3" | cut -d'=' -f2)
|
|
||||||
cursor_xr=$(grep "Xcursor.theme" "$xr" | cut -d' ' -f2)
|
|
||||||
|
|
||||||
cursor=$1
|
|
||||||
|
|
||||||
# find config last modified
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
cursor=$cursor_gtk2; newest=$gtk2
|
|
||||||
[[ $xr -nt $gtk2 ]] && [[ -n $cursor_xr ]] && cursor=$cursor_xr && newest=$xr
|
|
||||||
[[ $gtk3 -nt $newest ]] && [[ -n $cursor_gtk3 ]] && cursor=$cursor_gtk3
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Strip any quotes from cursor string
|
|
||||||
cursor=${cursor/\"/}
|
|
||||||
|
|
||||||
# set theme in all config files
|
|
||||||
echo "setting cursortheme \"$cursor\""
|
|
||||||
[[ "$cursor" != "$cursor_xr" ]] && \
|
|
||||||
sed -i "s/Xcursor.theme:.*/Xcursor.theme: $cursor/g" "$xr" &>/dev/null && \
|
|
||||||
xrdb -merge -I"$HOME" ~/.Xresources
|
|
||||||
[[ "$cursor" != "$cursor_gtk2" ]] && \
|
|
||||||
sed -i "s/cursor-theme-name=\".*\"/cursor-theme-name=\"$cursor\"/" "$gtk2"
|
|
||||||
[[ "$cursor" != "$cursor_gtk3" ]] && \
|
|
||||||
sed -i "s/cursor-theme-name=.*/cursor-theme-name=$cursor/" "$gtk3" &>/dev/null
|
|
||||||
[[ -e $user_default ]] && sed -i "s/Inherits=.*/Inherits=$cursor/" "$user_default" &>/dev/null
|
|
||||||
|
|
||||||
# and in the realms of the GNOMEs
|
|
||||||
[[ -f /usr/bin/gconftool-2 ]] && gconftool-2 --type string -s /desktop/gnome/peripherals/mouse/cursor "$cursor"
|
|
||||||
[[ -f /usr/bin/gsettings ]] && gsettings set org.gnome.desktop.interface cursor-theme "$cursor"
|
|
||||||
|
|
||||||
exit
|
|
||||||
|
|
||||||
# oberon 2016
|
|
Loading…
Reference in a new issue