├── Bar.png
├── Bar2.png
├── Bar3.png
├── Bar4.png
├── girl.jpg
├── next.png
├── omori.png
├── pause.png
├── play.png
├── spotify
├── time.scpt
├── wifi.png
├── no-wifi.png
├── MiniBar1.png
├── MiniBar2.png
├── bluetooth.png
├── geek
├── time.scpt
├── spotifyPlay.applescript
├── wifiStatus.applescript
├── bluetoothStatus.applescript
└── spotifyControl.applescript
├── icons
├── next.png
├── play.png
├── spotify
├── wifi.png
├── pause.png
├── bluetooth.png
├── no-wifi.png
├── previous.png
├── no-bluetooth.png
└── Bar
│ ├── musicbars_desktop-465086267-1 (dragged).tiff
│ ├── musicbars_desktop-465086267-2 (dragged).tiff
│ └── musicbars_desktop-465086267-3 (dragged).tiff
├── previous.png
├── no-bluetooth.png
├── Bar
├── musicbars_desktop-465086267-1 (dragged).tiff
├── musicbars_desktop-465086267-2 (dragged).tiff
└── musicbars_desktop-465086267-3 (dragged).tiff
├── spotifyPlay.applescript
├── wifiStatus.applescript
├── bluetoothStatus.applescript
├── spotifyControl.applescript
└── README.md
/Bar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/Bar.png
--------------------------------------------------------------------------------
/Bar2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/Bar2.png
--------------------------------------------------------------------------------
/Bar3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/Bar3.png
--------------------------------------------------------------------------------
/Bar4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/Bar4.png
--------------------------------------------------------------------------------
/girl.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/girl.jpg
--------------------------------------------------------------------------------
/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/next.png
--------------------------------------------------------------------------------
/omori.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/omori.png
--------------------------------------------------------------------------------
/pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/pause.png
--------------------------------------------------------------------------------
/play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/play.png
--------------------------------------------------------------------------------
/spotify:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/spotify
--------------------------------------------------------------------------------
/time.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/time.scpt
--------------------------------------------------------------------------------
/wifi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/wifi.png
--------------------------------------------------------------------------------
/no-wifi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/no-wifi.png
--------------------------------------------------------------------------------
/MiniBar1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/MiniBar1.png
--------------------------------------------------------------------------------
/MiniBar2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/MiniBar2.png
--------------------------------------------------------------------------------
/bluetooth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/bluetooth.png
--------------------------------------------------------------------------------
/geek/time.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/geek/time.scpt
--------------------------------------------------------------------------------
/icons/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/next.png
--------------------------------------------------------------------------------
/icons/play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/play.png
--------------------------------------------------------------------------------
/icons/spotify:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/spotify
--------------------------------------------------------------------------------
/icons/wifi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/wifi.png
--------------------------------------------------------------------------------
/previous.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/previous.png
--------------------------------------------------------------------------------
/icons/pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/pause.png
--------------------------------------------------------------------------------
/no-bluetooth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/no-bluetooth.png
--------------------------------------------------------------------------------
/icons/bluetooth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/bluetooth.png
--------------------------------------------------------------------------------
/icons/no-wifi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/no-wifi.png
--------------------------------------------------------------------------------
/icons/previous.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/previous.png
--------------------------------------------------------------------------------
/icons/no-bluetooth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/no-bluetooth.png
--------------------------------------------------------------------------------
/Bar/musicbars_desktop-465086267-1 (dragged).tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/Bar/musicbars_desktop-465086267-1 (dragged).tiff
--------------------------------------------------------------------------------
/Bar/musicbars_desktop-465086267-2 (dragged).tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/Bar/musicbars_desktop-465086267-2 (dragged).tiff
--------------------------------------------------------------------------------
/Bar/musicbars_desktop-465086267-3 (dragged).tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/Bar/musicbars_desktop-465086267-3 (dragged).tiff
--------------------------------------------------------------------------------
/icons/Bar/musicbars_desktop-465086267-1 (dragged).tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/Bar/musicbars_desktop-465086267-1 (dragged).tiff
--------------------------------------------------------------------------------
/icons/Bar/musicbars_desktop-465086267-2 (dragged).tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/Bar/musicbars_desktop-465086267-2 (dragged).tiff
--------------------------------------------------------------------------------
/icons/Bar/musicbars_desktop-465086267-3 (dragged).tiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dill101/geektool-widgets/HEAD/icons/Bar/musicbars_desktop-465086267-3 (dragged).tiff
--------------------------------------------------------------------------------
/spotifyPlay.applescript:
--------------------------------------------------------------------------------
1 | use AppleScript version "2.4" -- Yosemite (10.10) or later
2 | use scripting additions
3 |
4 | tell application "Spotify"
5 | if it is running then
6 | if player state is playing then
7 | tell application "GeekTool Helper"
8 | tell its image geeklet "musicWidget"
9 | set the image url to "file:///Users/dill/Documents/icons/pause.png"
10 | end tell
11 | end tell
12 | else
13 | tell application "GeekTool Helper"
14 | tell its image geeklet "musicWidget"
15 | set the image url to "file:///Users/dill/Documents/icons/play.png"
16 | end tell
17 | end tell
18 | end if
19 | end if
20 | end tell
21 |
22 |
23 |
--------------------------------------------------------------------------------
/geek/spotifyPlay.applescript:
--------------------------------------------------------------------------------
1 | use AppleScript version "2.4" -- Yosemite (10.10) or later
2 | use scripting additions
3 |
4 | tell application "Spotify"
5 | if it is running then
6 | if player state is playing then
7 | tell application "GeekTool Helper"
8 | tell its image geeklet "musicWidget"
9 | set the image url to "file:///Users/dill/Documents/icons/pause.png"
10 | end tell
11 | end tell
12 | else
13 | tell application "GeekTool Helper"
14 | tell its image geeklet "musicWidget"
15 | set the image url to "file:///Users/dill/Documents/icons/play.png"
16 | end tell
17 | end tell
18 | end if
19 | end if
20 | end tell
21 |
22 |
23 |
--------------------------------------------------------------------------------
/wifiStatus.applescript:
--------------------------------------------------------------------------------
1 | try
2 | do shell script "ping -o -t 2 www.google.com"
3 | tell application "GeekTool Helper"
4 | tell its image geeklet "Wifi"
5 | set the image url to "file:///Users/dill/Documents/icons/wifi.png"
6 | end tell
7 | tell its shell geeklet "WifiStatus"
8 | set the command to "/Sy*/L*/Priv*/Apple8*/V*/C*/R*/airport -I | awk '/ SSID:/ {print $2}'"
9 | end tell
10 | end tell
11 | on error
12 | tell application "GeekTool Helper"
13 | tell its image geeklet "Wifi"
14 | set the image url to "file:///Users/dill/Documents/icons/no-wifi.png"
15 | end tell
16 | tell its shell geeklet "WifiStatus"
17 | set the command to "echo 'Wifi is OFF'"
18 | end tell
19 | end tell
20 | end try
--------------------------------------------------------------------------------
/geek/wifiStatus.applescript:
--------------------------------------------------------------------------------
1 | try
2 | do shell script "ping -o -t 2 www.google.com"
3 | tell application "GeekTool Helper"
4 | tell its image geeklet "Wifi"
5 | set the image url to "file:///Users/dill/Documents/icons/wifi.png"
6 | end tell
7 | tell its shell geeklet "WifiStatus"
8 | set the command to "/Sy*/L*/Priv*/Apple8*/V*/C*/R*/airport -I | awk '/ SSID:/ {print $2}'"
9 | end tell
10 | end tell
11 | on error
12 | tell application "GeekTool Helper"
13 | tell its image geeklet "Wifi"
14 | set the image url to "file:///Users/dill/Documents/icons/no-wifi.png"
15 | end tell
16 | tell its shell geeklet "WifiStatus"
17 | set the command to "echo 'Wifi is OFF'"
18 | end tell
19 | end tell
20 | end try
--------------------------------------------------------------------------------
/bluetoothStatus.applescript:
--------------------------------------------------------------------------------
1 | use AppleScript version "2.4" -- Yosemite (10.10) or later
2 | use scripting additions
3 |
4 | set Status to do shell script "/opt/homebrew/bin/blueutil -p"
5 |
6 | if Status is equal to "1" then
7 | tell application "GeekTool Helper"
8 | tell its image geeklet "Bluetooth"
9 | set the image url to "file:///Users/dill/Documents/icons/bluetooth.png"
10 | end tell
11 | end tell
12 | else
13 | tell application "GeekTool Helper"
14 | tell its image geeklet "Bluetooth"
15 | set the image url to "file:///Users/dill/Documents/icons/no-bluetooth.png"
16 | end tell
17 | end tell
18 | end if
19 |
20 | if Status is equal to "1" then
21 | tell application "GeekTool Helper"
22 | tell its shell geeklet "BluetoothStatus"
23 | set the command to "echo 'Bluetooth is ON'"
24 | end tell
25 | end tell
26 | else
27 | tell application "GeekTool Helper"
28 | tell its shell geeklet "BluetoothStatus"
29 | set the command to "echo 'Bluetooth is OFF'"
30 | end tell
31 | end tell
32 | end if
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/geek/bluetoothStatus.applescript:
--------------------------------------------------------------------------------
1 | use AppleScript version "2.4" -- Yosemite (10.10) or later
2 | use scripting additions
3 |
4 | set Status to do shell script "/opt/homebrew/bin/blueutil -p"
5 |
6 | if Status is equal to "1" then
7 | tell application "GeekTool Helper"
8 | tell its image geeklet "Bluetooth"
9 | set the image url to "file:///Users/dill/Documents/icons/bluetooth.png"
10 | end tell
11 | end tell
12 | else
13 | tell application "GeekTool Helper"
14 | tell its image geeklet "Bluetooth"
15 | set the image url to "file:///Users/dill/Documents/icons/no-bluetooth.png"
16 | end tell
17 | end tell
18 | end if
19 |
20 | if Status is equal to "1" then
21 | tell application "GeekTool Helper"
22 | tell its shell geeklet "BluetoothStatus"
23 | set the command to "echo 'Bluetooth is ON'"
24 | end tell
25 | end tell
26 | else
27 | tell application "GeekTool Helper"
28 | tell its shell geeklet "BluetoothStatus"
29 | set the command to "echo 'Bluetooth is OFF'"
30 | end tell
31 | end tell
32 | end if
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/spotifyControl.applescript:
--------------------------------------------------------------------------------
1 | use AppleScript version "2.4" -- Yosemite (10.10) or later
2 | use scripting additions
3 |
4 | tell application "Spotify"
5 | -- if spotify is running, set the variable c to the current track
6 | if it is running then
7 | set c to the current track
8 |
9 | -- if spotify is playing music, set the variable albumArt to the artwork of the current track and return that value as text
10 | if player state is playing or player state is paused then
11 | set albumUrl to artwork URL of current track
12 | -- tell geektool to tell its image geeklet with the name "albumArt" to set its image url to the variable albumArt as text
13 | tell application "GeekTool Helper"
14 | tell its image geeklet "albumArt"
15 | set the image url to albumUrl
16 | end tell
17 | end tell
18 | return name of c & "
19 | " & "
20 | " & artist of c as text
21 | -- otherwise, return "not playing"
22 | else
23 | return "
24 | " & "
25 | Not playing" as text
26 | end if
27 |
28 | -- if spotify is not running, return "not playing"
29 | else
30 | tell application "GeekTool Helper"
31 | tell its image geeklet "albumArt"
32 | set the image url to " "
33 | end tell
34 | end tell
35 | return "
36 | " & "
37 | Not playing" as text
38 | end if
39 | end tell
--------------------------------------------------------------------------------
/geek/spotifyControl.applescript:
--------------------------------------------------------------------------------
1 | use AppleScript version "2.4" -- Yosemite (10.10) or later
2 | use scripting additions
3 |
4 | tell application "Spotify"
5 | -- if spotify is running, set the variable c to the current track
6 | if it is running then
7 | set c to the current track
8 |
9 | -- if spotify is playing music, set the variable albumArt to the artwork of the current track and return that value as text
10 | if player state is playing or player state is paused then
11 | set albumUrl to artwork URL of current track
12 | -- tell geektool to tell its image geeklet with the name "albumArt" to set its image url to the variable albumArt as text
13 | tell application "GeekTool Helper"
14 | tell its image geeklet "albumArt"
15 | set the image url to albumUrl
16 | end tell
17 | end tell
18 | return name of c & "
19 | " & "
20 | " & artist of c as text
21 | -- otherwise, return "not playing"
22 | else
23 | return "
24 | " & "
25 | Not playing" as text
26 | end if
27 |
28 | -- if spotify is not running, return "not playing"
29 | else
30 | tell application "GeekTool Helper"
31 | tell its image geeklet "albumArt"
32 | set the image url to " "
33 | end tell
34 | end tell
35 | return "
36 | " & "
37 | Not playing" as text
38 | end if
39 | end tell
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Dotfiles
2 | **MacOS dotfiles**
3 |
4 | Here are the dotfiles for my newly created macOS widgets! The program used is Geektools, and sadly, as like Rainmeter on Windows, you'll have to manually position the widgets on your device's screen, as well as manually inputting some text and options, without the benefit of presets by me...
5 |
6 | **EDIT:**
7 |
8 | time.scpt is unnecessary.
9 |
10 | **2nd EDIT:**
11 |
12 | Make sure to change the directory paths mentioned in the applescript files from dill to your macOS username.
13 |
14 |
15 |
16 |
17 |
18 | And here's the *not so pretty side of things*, with the widgets arranged:
19 |
20 |
21 |
22 |
23 |
24 | In terms of how to get this config up and running, follow the steps below:
25 |
26 | 1. Open Geektools, drag and drop and arrange first the 3 white bars that make up the base of these widgets.
27 |
28 | 2. Add three of the colorful bars ontop.
29 |
30 | 3. From there add the non-script-based-text by dragging and dropping 4 shell widgets, and simply type within the "command" space, echo "____" for all 4, the blank being filled in by either "Network", "Bluetooth", "You're listening to:" the name tag or the hostname.
31 |
32 | 4. Drag and drop 4 image widgets, and in the URL section, navigate to the respective image repo (that being the the forward and backward icons, the Spotify icon, and the profile icon). (For the music-bar gif, you'll have to create a folder, direct the URL to the folder, and enable "Randomize")
33 |
34 | 5. Import 3 shell widgets, each being dedicated to the 3 applescript files (excluding spotifyPlay.applescript for now).
35 |
36 | 6. Within one of the 3 added shell widgets, in the command area type "osascript /path/to/spotifyControl.applescript". This shell widget will now display the Spotify song artist and title. Also make sure to change the refresh rate to above 0s if you want the script to refresh (do this for the latter 2 shell widgets).
37 |
38 | 7. Now within the 2 other shell widgets, in the command section write "osascript /path/to/wifiStatus.applescript", and in the other shell widget, write "osascript /path/to/bluetoothStatus.applescript". (Remember to change the refresh rate!)
39 |
40 | 8. After doing so, add 2 more shell widgets (in addition to the 3 previously added shell widgets) and rename one to BluetoothStatus, and another to WifiStatus.
41 |
42 | 9. Now add 2 image widgets. Rename one to Wifi, the other to Bluetooth.
43 |
44 | 10. Almost done. First import an image widget and rename it to albumArt. As is obvious, this widget will display the Spotify album picture.
45 |
46 | 11. Add a shell script, and in command write "osascript /path/to/spotifyPlay.applescript".
47 |
48 | 12. Lastly, add a image widget and rename it to musicWidget. This widget will display the pause/play icon.
49 |
50 |
51 |
52 | If you want the bar, you'll have to download Ubersicht widgets, and go to the simple-bar git repository here: https://github.com/Jean-Tinland/simple-bar
53 |
54 |
--------------------------------------------------------------------------------