-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Glenn Wurr
committed
Jul 24, 2020
1 parent
d6451b3
commit eb53708
Showing
27 changed files
with
717 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env sh | ||
|
||
spacebar -m config text_font "Helvetica Neue:Bold:12.0" | ||
spacebar -m config icon_font "Font Awesome 5 Free:Regular:12.0" | ||
spacebar -m config background_color 0xff202020 | ||
spacebar -m config foreground_color 0xffa8a8a8 | ||
spacebar -m config space_icon_strip I II III IV V VI VII VIII IX X | ||
spacebar -m config power_icon_strip | ||
spacebar -m config space_icon | ||
spacebar -m config clock_icon | ||
spacebar -m config clock_format "%d/%m/%y %R" | ||
|
||
echo "spacebar configuration loaded.." |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env sh | ||
|
||
# global settings | ||
yabai -m config mouse_follows_focus on | ||
#yabai -m config focus_follows_mouse autoraise | ||
yabai -m config focus_follows_mouse autofocus | ||
yabai -m config window_placement second_child | ||
yabai -m config window_topmost on | ||
yabai -m config window_shadow on | ||
yabai -m config window_opacity on | ||
yabai -m config window_opacity_duration 0.0 | ||
#yabai -m config active_window_opacity 1.0 | ||
yabai -m config active_window_opacity 0.96 | ||
yabai -m config normal_window_opacity 0.88 | ||
yabai -m config window_border on | ||
yabai -m config window_border_width 10 | ||
yabai -m config active_window_border_color 0xff775759 | ||
yabai -m config normal_window_border_color 0xff555555 | ||
yabai -m config insert_feedback_color 0xffd75f5f | ||
yabai -m config split_ratio 0.50 | ||
yabai -m config auto_balance off | ||
yabai -m config mouse_modifier fn | ||
yabai -m config mouse_action1 move | ||
yabai -m config mouse_action2 resize | ||
|
||
# general space settings | ||
yabai -m config layout bsp | ||
yabai -m config top_padding 12 | ||
yabai -m config bottom_padding 12 | ||
yabai -m config left_padding 12 | ||
yabai -m config right_padding 12 | ||
#yabai -m config window_gap 06 | ||
yabai -m config window_gap 12 | ||
|
||
# add padding for bar | ||
yabai -m config external_bar all:20:20 | ||
|
||
# float and sticky system preferences | ||
yabai -m rule --add app="^System Preferences$" manage=off | ||
yabai -m rule --add app="^System Preferences$" sticky=on | ||
|
||
# show digital colour meter topmost and on all spaces | ||
#yabai -m rule --add app="^Digital Colou?r Meter$" sticky=on | ||
|
||
# update nibar | ||
yabai -m signal --add event=space_changed \ | ||
action="$HOME/bin/mac_refresh_nibar" | ||
yabai -m signal --add event=display_changed \ | ||
action="$HOME/bin/mac_refresh_nibar" |
38 changes: 38 additions & 0 deletions
38
Library/Application Support/Übersicht/widgets/gwurr3.coffee
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# this is the shell command that gets executed every time this widget refreshes | ||
command: "${HOME}/bin/mac_check_wireless_battery" | ||
|
||
# the refresh frequency in milliseconds | ||
refreshFrequency: 30000 | ||
|
||
# render gets called after the shell command has executed. The command's output | ||
# is passed in as a string. Whatever it returns will get rendered as HTML. | ||
render: (output) -> """ | ||
<h1>#{output}</h1> | ||
""" | ||
|
||
# the CSS style for this widget, written using Stylus | ||
# (http://learnboost.github.io/stylus/) | ||
style: """ | ||
-webkit-backdrop-filter: blur(2px) | ||
border-radius: 5px | ||
border: 1px solid #fff | ||
box-sizing: border-box | ||
color: #DC143C | ||
font-family: Glass TTY VT220 | ||
font-weight: 300 | ||
left: 100% | ||
line-height: 1.5 | ||
margin-left: -295px | ||
padding: 7px 7px 7px | ||
top: 94% | ||
text-align: justify | ||
h1 | ||
font-size: 16px | ||
font-weight: 300 | ||
margin: 16px 0 8px | ||
em | ||
font-weight: 400 | ||
font-style: normal | ||
""" |
64 changes: 64 additions & 0 deletions
64
Library/Application Support/Übersicht/widgets/nibar/.gitignore
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# OS Files | ||
.DS_Store |
21 changes: 21 additions & 0 deletions
21
Library/Application Support/Übersicht/widgets/nibar/LICENSE
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Gadzhi Kharkharov | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This whole dir is stolen from https://github.com/kkga/nibar |
23 changes: 23 additions & 0 deletions
23
Library/Application Support/Übersicht/widgets/nibar/bar.jsx
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import styles from "./lib/styles.jsx"; | ||
|
||
const style = { | ||
background: styles.colors.bg, | ||
cursor: "default", | ||
userSelect: "none", | ||
zIndex: "-1", | ||
width: "100%", | ||
height: "20px", | ||
position: "fixed", | ||
overflow: "hidden", | ||
top: "0px", | ||
right: "0px", | ||
left: "0px" | ||
}; | ||
|
||
export const refreshFrequency = 1000000; | ||
|
||
export const render = ({ output }) => { | ||
return <div style={style} />; | ||
}; | ||
|
||
export default null; |
22 changes: 22 additions & 0 deletions
22
Library/Application Support/Übersicht/widgets/nibar/lib/Battery.jsx
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import styles from "./styles.jsx"; | ||
|
||
const render = ({ output }) => { | ||
let charging = output.charging; | ||
let percentage = output.percentage; | ||
let remaining = output.remaining; | ||
return ( | ||
<div> | ||
<div | ||
style={ | ||
percentage < 10 && charging == false | ||
? { color: styles.colors.red } | ||
: null | ||
} | ||
> | ||
<span>{charging ? "" : null} {percentage}%</span> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default render; |
12 changes: 12 additions & 0 deletions
12
Library/Application Support/Übersicht/widgets/nibar/lib/Cpu.jsx
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import styles from "./styles.jsx"; | ||
|
||
const render = ({ output }) => { | ||
if (typeof output === "undefined") return null; | ||
return ( | ||
<div style={output.loadAverage > 3 ? { color: styles.colors.red } : null}> | ||
<span> {output.loadAverage}</span> | ||
</div> | ||
); | ||
}; | ||
|
||
export default render; |
Oops, something went wrong.