various cleanup.

added gammastep-init.sh to config, to give geoclue location to gammastep
chromebook
Alex 2022-05-30 22:31:22 -05:00
parent 27672016e0
commit df1d5daa89
9 changed files with 33 additions and 23 deletions

View File

@ -55,8 +55,6 @@ adjustment-method=wayland
; Keep in mind that longitudes west of Greenwich (e.g. the Americas) ; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
; are negative numbers. ; are negative numbers.
[manual] [manual]
lat=32
lon=-86
; Configuration of the adjustment-method ; Configuration of the adjustment-method
; type 'gammastep -m METHOD:help' to see the settings. ; type 'gammastep -m METHOD:help' to see the settings.

View File

@ -13,7 +13,7 @@ lf_last"
DEST="remote DEST="remote
local" local"
DEST_OPT="$(echo "$DEST" | bemenu -p "select destination machine: ")" DEST_OPT="local" #"$(echo "$DEST" | bemenu -p "select destination machine: ")"
if [ "$DEST_OPT" = "local" ]; then if [ "$DEST_OPT" = "local" ]; then
pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3) pgrep -x transmission-da > /dev/null || (trans-init && notify-send "Starting transmission daemon..." && sleep 3)
@ -45,21 +45,21 @@ else
fi fi
if [ "$TRANSMISSION_REMOTE" ]; then #if [ "$TRANSMISSION_REMOTE" ]; then
SEL_REM="$(echo "$SEL" | sed 's/^\/media\/nagato/\/media\/storage/g')" # SEL_REM="$(echo "$SEL" | sed 's/^\/media\/nagato/\/media\/storage/g')"
fi #fi
if [ "$DEST_OPT" = "remote" ]; then #if [ "$DEST_OPT" = "remote" ]; then
if [ "$SEL_REM" ]; then # if [ "$SEL_REM" ]; then
transmission-remote $TRANSMISSION_REMOTE -a "$@" -w "$SEL_REM" && notify-send " Transmission-daemon" "Torrent added to $SEL" # transmission-remote $TRANSMISSION_REMOTE -a "$@" -w "$SEL_REM" && notify-send " Transmission-daemon" "Torrent added to $SEL"
else # else
transmission-remote $TRANSMISSION_REMOTE -a "$@" && notify-send " Transmission-daemon" "Torrent added." # transmission-remote $TRANSMISSION_REMOTE -a "$@" && notify-send " Transmission-daemon" "Torrent added."
fi # fi
else #else
if [ -d "$SEL" ]; then if [ -d "$SEL" ]; then
transmission-remote -a "$@" -w "$SEL" && notify-send " Transmission-daemon" "Torrent added to $SEL" transmission-remote -a "$@" -w "$SEL" && notify-send " Transmission-daemon" "Torrent added to $SEL"
else else
transmission-remote -a "$@" && notify-send " Transmission-daemon" "Torrent added." transmission-remote -a "$@" && notify-send " Transmission-daemon" "Torrent added."
fi fi
fi #fi

View File

@ -1,5 +1,5 @@
mako mako
gammastep gammastep-init.sh
devmon devmon
pipewire.sh pipewire.sh
mpd mpd

View File

@ -22,7 +22,7 @@ enable_repo() {
enable_repos() { enable_repos() {
#enable lib32 #enable lib32
enable_repo lib32 enable_repo lib32 mirrorlist
sudo pacman -Sy sudo pacman -Sy
@ -31,9 +31,6 @@ enable_repos() {
sudo pacman-key --populate archlinux sudo pacman-key --populate archlinux
sudo pacman -Sy sudo pacman -Sy
#enable arch community repo
enable_repo community mirrorlist-arch
#enable artix universe repo #enable artix universe repo
if [ -z "$(grep "universe" /etc/pacman.conf)" ]; then if [ -z "$(grep "universe" /etc/pacman.conf)" ]; then
sudo sh -c 'echo "[universe]" >> /etc/pacman.conf' sudo sh -c 'echo "[universe]" >> /etc/pacman.conf'
@ -50,7 +47,7 @@ enable_repos() {
#enable arch community repo #enable arch community repo
enable_repo extra mirrorlist-arch enable_repo extra mirrorlist-arch
enable_repo community mirrorlist-arch enable_repo community mirrorlist-arch
enable_repo multilib mirrorlist-arch

View File

@ -27,7 +27,7 @@ compress() {
FILES="$(echo "$@" | xargs -0)" FILES="$(echo "$@" | xargs -0)"
DIRNAME="$(basename "$FILES")" DIRNAME="$(basename "$FILES")"
if ! [ -d "$NAME" ]; then if ! [ -d "$DIRNAME" ]; then
DIRNAME="$(mkname "$@")" DIRNAME="$(mkname "$@")"
echo "making directory $DIRNAME" echo "making directory $DIRNAME"

View File

@ -7,7 +7,7 @@ help() {
! [ -f "$1" ] && touch "$1" ! [ -f "$1" ] && touch "$1"
#Command for ~/.cache/last_fap
if [ "$2" = "-u" ]; then if [ "$2" = "-u" ]; then
echo $(date "+%y%m%d %H") >> "$1" echo $(date "+%y%m%d %H") >> "$1"
else else

View File

@ -0,0 +1,10 @@
#!/bin/sh
#run this to start gammastep
#got this from https://rumpelsepp.org/blog/geolocation-for-gammastep/
#modified to be a posix shell script, and to save location data to a file
#so gammastep still works if internet is out.
FN="$HOME/.cache/gs_geoclue.json"
curl -Ls https://ipapi.co/json > "$FN"
gammastep -l "$( cat "$FN" | jq ".latitude" )":"$( cat "$FN" | jq ".longitude" )" -m wayland

View File

@ -2,6 +2,5 @@
LOC="$HOME/media/videos/sleeping" LOC="$HOME/media/videos/sleeping"
VID="ARTILLERY_ASMR.mp4" VID="ARTILLERY_ASMR.mp4"
#VID="nofap_music_01.mp4"
mpv "$LOC"/"$VID" --loop=inf mpv "$LOC"/"$VID" --loop=inf

View File

@ -64,4 +64,10 @@ export MANPATH="$MANPATH:/usr/local/man/"
#fix arduino ide issues #fix arduino ide issues
export AWT_TOOLKIT=MToolkit export AWT_TOOLKIT=MToolkit
#mount samba share, needs entry in /etc/fstab for this line to work
# //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0
mount /media/nagato &
[ "$(tty)" = /dev/tty1 ] && exec dbus-launch sway [ "$(tty)" = /dev/tty1 ] && exec dbus-launch sway