Created
November 13, 2016 20:50
-
Star
(153)
You must be signed in to star a gist -
Fork
(33)
You must be signed in to fork a gist
-
-
Save Skehmatics/4c683abb2b612434aa304ecc09aad51d to your computer and use it in GitHub Desktop.
Revisions
-
Derek Schmidt created this gist
Nov 13, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash # export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me PID=$(pgrep -u USER gnome-session-b) export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) /usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Flat-Plat' /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat' /usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH' /usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected] set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(69,90,100)' This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ #!/bin/bash # export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me PID=$(pgrep -o gnome-session -u "USER") export DBUS_SESSION_BUS_ADDRESS=$(sudo grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) TIME="$(date '+%H%M')" echo "The current time is $TIME" CIVS="$(/usr/local/bin/find-twilight | cut -f1 -d\ )" CIVE="$(/usr/local/bin/find-twilight | cut -f2 -d\ )" echo "Daylight starts at $CIVS ends at $CIVE" if [ $TIME -ge $CIVS ] && [ $TIME -le $CIVE ] ; then echo "Switching to Day mode" RESP=exec /usr/local/bin/day-mode else echo "Switching to Night mode" RESP=exec /usr/local/bin/night-mode fi if [[ $RESP ]] ; then echo "Switch failure" else echo "Switch sucess" fi This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ #!/bin/bash echo $(/usr/local/bin/solunar -c CITY --syslocal | grep 'Sunrise\|Sunset' | grep -Eo '[0-9]' | tr -d '\n' | grep -Eo '[0-9]{4,4}') This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash # export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me PID=$(pgrep -u USER gnome-session) export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) /usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Flat-Plat-Dark' /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat-Dark' /usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH' /usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected] set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(33,33,33)'