Commit graph

294 commits

Author SHA1 Message Date
FelixKratz
3862b91271 fix clicks being registered for inactive items 2021-08-24 01:01:20 +02:00
FelixKratz
38ceab3d8a removed clutter 2021-08-24 00:45:24 +02:00
FelixKratz
2dc711f22f allow enabling and disabling of items 2021-08-23 22:57:09 +02:00
FelixKratz
7cba487cd2 custom event system working 2021-08-23 22:38:29 +02:00
FelixKratz
7aefb7c823 added custom event flag logic 2021-08-23 21:15:15 +02:00
FelixKratz
d82d21eae5 added basic structure for custom events 2021-08-23 20:19:07 +02:00
FelixKratz
9944e76d6c streamlined mouse logic further 2021-08-23 19:30:34 +02:00
FelixKratz
07aced2bc6 removed accessibility features 2021-08-23 19:09:06 +02:00
FelixKratz
2a0dadef49 delete A LOT of unneeded bulk 2021-08-23 15:06:09 +02:00
FelixKratz
127824f012 removed unused window title function 2021-08-23 14:46:48 +02:00
FelixKratz
096315e72d removed title component 2021-08-23 14:45:28 +02:00
FelixKratz
e25c8b5af2 only refresh bar on demand 2021-08-22 23:09:35 +02:00
FelixKratz
58683ba4c2 only refresh bar for items that are actually shown 2021-08-22 22:56:44 +02:00
FelixKratz
1eefbe821d Added script caching in RAM for better performance as a item preference 2021-08-22 18:48:50 +02:00
FelixKratz
2b3e59dadb allow setting default values for a lot of properties 2021-08-22 14:37:30 +02:00
FelixKratz
026b2eda0a fixed a bug in token to integer conversion -> spacings in the config might be smaller now 2021-08-21 15:11:52 +02:00
FelixKratz
bc006b5d41 fixed mouse mouse ghost clicks 2021-08-21 12:55:15 +02:00
FelixKratz
a62488c0b7 removed unused mouse callbacks 2021-08-21 12:45:53 +02:00
FelixKratz
cf1a2b93db removed unnecessary mouse flags 2021-08-20 23:56:05 +02:00
FelixKratz
b5e1d01802 hotfix for window title component 2021-08-20 09:01:02 +02:00
Donald Guy
226d7e6d80
Merge branch 'master' into position-bottom 2021-08-18 19:11:24 -04:00
FelixKratz
44ad32fd79 removed dev prints 2021-08-19 01:06:53 +02:00
Donald Guy
4fafebb542 Only factor in menu-bar height for top bar
use log.c facility for EVENT_HANDLER_MOUSE_UP log/printf
2021-08-18 19:05:45 -04:00
FelixKratz
a61fae9621 remove bounding rect comment and added position in rc 2021-08-19 00:42:00 +02:00
FelixKratz
7e96b93e6f bottom position clicking fixed 2021-08-19 00:38:00 +02:00
FelixKratz
a6eb4a8b38 added position back in 2021-08-19 00:13:57 +02:00
FelixKratz
3afeeb7a50 fixed the segfault on display remove and changed reallocs to mallocs along the way 2021-08-19 00:06:20 +02:00
FelixKratz
5ba9ad9e0f move refresh logic to improve performance on multi monitor setups 2021-08-18 23:14:27 +02:00
FelixKratz
600265179c removed unused power source loop 2021-08-18 22:43:17 +02:00
FelixKratz
646df4b6c8 added click actions and some tweaking to the graph logic 2021-08-17 02:11:40 +02:00
FelixKratz
a553aa46ce change screen, display association logic to allow for multiple associations 2021-08-14 21:54:43 +02:00
FelixKratz
8b07957c4c add system event subscribe syntax 2021-08-14 21:32:25 +02:00
FelixKratz
d9b7da5e36 reworked the space component with individual highlight colors 2021-08-14 19:56:48 +02:00
FelixKratz
69283380e0 cleaned up some naming 2021-08-14 19:26:46 +02:00
FelixKratz
32a80803f6 better graph component 2021-08-13 23:24:41 +02:00
FelixKratz
44a0156c3e rename spree 2021-08-13 15:58:00 +02:00
FelixKratz
f28d18c265 integer division correction for the graphs 2021-08-12 23:48:58 +02:00
FelixKratz
19a8972fc0 fixed pesky graph bug 2021-08-12 19:29:45 +02:00
FelixKratz
281128650d deleted unused functions 2021-08-11 18:39:12 +02:00
FelixKratz
6a9203b43d only small comments 2021-08-11 11:54:20 +02:00
FelixKratz
9f1b4433af small layout fixes with the graphs 2021-08-11 11:06:30 +02:00
FelixKratz
63218e5aae added missing cpu files 2021-08-10 18:20:31 +02:00
FelixKratz
d033cc4e83 added graphs and started with cpu and mem, but can be arbitrary graphs (stock?) 2021-08-10 18:20:02 +02:00
FelixKratz
73e65d526b sid and did swap fixed 2021-08-10 12:31:49 +02:00
FelixKratz
72b23e6c43 fixed messaging typo 2021-08-10 12:25:49 +02:00
FelixKratz
1e1bf3dd78 fixed a layout bug 2021-08-10 12:08:11 +02:00
FelixKratz
8e37e190ab scripting working 2021-08-10 01:10:31 +02:00
FelixKratz
a6a5846f48 getting scripts to work 2021-08-10 00:33:45 +02:00
FelixKratz
75f23cbaa7 working prototype 2021-08-10 00:08:31 +02:00
FelixKratz
bd86c42cba removed the junk 2021-08-09 19:06:10 +02:00
Calum MacRae
96e210e579
release: 1.3.0 2021-04-25 16:45:44 +01:00
Calum MacRae
43e526e3ce
feature|fix: Add enable option for DND indicator & fix for Big Sur
As reported in #41 - this is now fixed
2021-04-08 17:22:39 +01:00
Calum MacRae
147672c5cd
fix: When instantiating a handle for a process, ensure it's released
Addressing #59
2021-04-08 17:02:23 +01:00
Calum MacRae
103cca618b
fix: Typo in run_shell when returning error 2021-04-08 14:04:26 +01:00
Calum MacRae
15498e6eb6
fix: Implement separate timer loop for shell refresh
Addressing #59
2021-04-08 13:59:39 +01:00
Calum MacRae
169029527e
fix: Refactor run_shell function to handle buffer/cursor correctly
This should hopefully squash the bug seen in #59 - where setting shell
output early in config was causing the bar to lock up.
2021-04-08 11:39:31 +01:00
Calum MacRae
1a74c0267a
enhancement: Improve efficiency of bar's initialisation
Only use `bar_manager_set_<THING>` functions (which tend to call
refresh/resize/destroy operations) where necessary in
`bar_manager_init`
2021-04-08 10:57:20 +01:00
Calum MacRae
9feb85f469
feature: Option to draw single bar or multiple bars, per display
Closes #47
2021-04-08 10:47:50 +01:00
Calum MacRae
e99175722c
feature: Show spaces for all displays
Also some bugfixes for shell output :)
2021-04-07 15:46:58 +01:00
Calum MacRae
ce0872c9da
docs: Set icon font to "Solid" style 2021-03-30 22:22:23 +01:00
Calum MacRae
c9305ddf33
feature: Add padding options 2021-03-30 22:11:25 +01:00
Calum MacRae
e99329838c
feature: shell outputs
These changes introduce left|right|center shell outputs sections to
accommodate the display of custom information
2021-03-30 21:29:16 +01:00
Calum MacRae
10995851cd
feature: Introduce on|off switches for spaces/clock/power 2021-03-28 00:13:15 +00:00
Calum MacRae
003beb7a85
docs: Document 'title' option & set default to 'on'
Closes #32
2021-03-27 20:57:44 +00:00
Calum MacRae
9f8087d920
fix: Work around Big Sur read buffer tracking
As noted by @koekeishiya on yabai#714, it seems a bug was introduced
in Big Sur which causes `read` calls to track buffers incorrectly.
These changes (taken from koekeishiya/yabai@4f8be49) work around this.

Closes #41
2021-03-27 16:20:51 +00:00
cmacrae
0520f18156
release: v1.2.1 2021-03-27 16:20:51 +00:00
Oddmund Strømme
cb0119149c
Add/fix "get space_icon_strip"
If no value given when calling `spacebar -m config space_icon_strip`,
print the current value.

Prints icon strip names delimited by spaces and surrounded with double
quotation marks, so it supports space names with spaces.
2021-03-27 16:20:51 +00:00
cmacrae
329c79beb3
release: v1.2.0 2021-03-27 16:20:51 +00:00
norviah
3e0a5ff93d feature: implement 'title' option to determine whether or not to display an application's title 2020-08-09 19:08:26 -07:00
cmacrae
4eaab7623a
feature: Add spacing options
As requested in #30
2020-08-05 23:18:34 +01:00
cmacrae
b075de54d6
release: v1.1.1 2020-07-21 19:58:28 +01:00
cmacrae
38ee3992ec
enhancement: More dynamic padding for status area 2020-07-19 01:11:10 +01:00
cmacrae
afa0db1ff0
enhancement: Pad long titles by 100px either side 2020-07-18 19:07:28 +01:00
cmacrae
0e2d05fff2
fix: Correct overlap logic for long titles
These changes fix the logic used to calculate overlaps for the
centre strip.

Closes #28
2020-07-18 15:03:21 +01:00
cmacrae
542855131f
fix: Don't draw titles longer than 100 characters
Closes #26
2020-07-17 21:59:16 +01:00
cmacrae
5ad8cea5aa
feature: Implement 'height' config option 2020-07-17 14:13:52 +01:00
cmacrae
4fd4bb11be
fix: Calculate bottom of display for position 'bottom' 2020-07-16 20:13:42 +01:00
cmacrae
681108fe36
docs: Update author references
somdoron was kind enough to transfer project ownership over to me \o/
2020-07-12 21:26:50 +01:00
cmacrae
0759ebf9a0
feature: Implement 'position' option ('top' or 'bottom') 2020-07-12 17:31:27 +01:00
cmacrae
74cbbc1ac2
feature: Add options to change colours of right strip icons
These changes introduce the following options (should be pretty self
explanatory):
- power_icon_color
- battery_icon_color
- clock_icon_color
- dnd_icon_color

I've also taken the liberty of updating the docs
2020-07-09 19:23:52 +01:00
cmacrae
33f8faad8f
feature: DND indicator
These changes introduce a DoNotDisturb indicator in the right strip.
Colour is currently non-configurable - this will be added as an
enhancement in the future, along with colour options for other
elements in the right strip.
2020-07-09 17:25:41 +01:00
Calum MacRae
85547b5ea0
Merge branch 'master' into enhancement/fix/powerline_position 2020-07-08 21:08:58 +01:00
cmacrae
146f0d45f1
fix: Calculate position of batt_line based on clock format 2020-07-08 21:01:43 +01:00
cmacrae
e7412cf920 enhancement: Remove underlines 2020-06-20 14:01:08 +01:00
cmacrae
9e5d235d04 enhancement: Nicer current space indicator
These changes introduce two things:
- Switch from an underline indicator for the current space to simply
colouring the icon
- Provide a `space_icon_color` config option to set the colour of the
current space
2020-06-17 11:45:25 +01:00
Tom Auger
e7ba4af267
Fix bar flicker when mouse moves between monitors 2020-05-25 23:28:55 +01:00
cmacrae
c982829b11 cleanup: Remove 'status_bar_' config prefixes
As this project is now simply a status bar on its own, the
'status_bar_' prefix on all config options seemed superfluous :)
2020-04-16 10:18:49 +01:00
Doron Somech
9dc81e4bf9 add clock format support 2020-03-30 09:43:21 +03:00
Doron Somech
80b9fe76c9 recreate bars when displays changed 2020-03-29 17:56:58 +03:00
Doron Somech
2c8dd480d6 increase version 2020-03-29 14:45:23 +03:00
Doron Somech
06958d27dd change default icon font to font awesome 5 2020-03-29 14:44:30 +03:00
Doron Somech
afbd1d6647 show correct mission control index 2020-03-29 14:44:11 +03:00
Doron Somech
09c95c249c fix version 2020-03-29 13:58:48 +03:00
Doron Somech
7724fb905a first commit 2020-03-29 13:25:21 +03:00