puffnfresh / iridium Goto Github PK
View Code? Open in Web Editor NEWxmonad with the X11 abstracted and configured with Idris
License: MIT License
xmonad with the X11 abstracted and configured with Idris
License: MIT License
I am currently using Dvorak.
To use the keyboard shortcuts involving J
& K
I have to instead use H
& T
.
Testing master
as of commit 2dc4384
System: OS X 10.9.3
Both user and system keyboard layouts have been defaulted to Dvorak.
We might be able to use HIWindowChangeAttributes
to set kHIWindowBitNoTitleBar
so that no title bars are shown. We'd need a WindowRef
which I think we can get from HIWindowFromCGWindowID
.
Effect: Indefinite switching between the two spaces/apps
I've found each of these methods seem to stop it:
To replicate the switching:
I sometimes randomly get a segfault in quartzWindows()
:
#0 0x00007fff8fe6ce40 in CFBooleanGetValue ()
from /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
#1 0x00000001000032e9 in quartzWindows ()
#2 0x000000010001560f in _idris__123_APPLY0_125_ ()
#3 0x0000000100021753 in _idris_io_95_bind ()
#4 0x0000000100021753 in _idris_io_95_bind ()
#5 0x0000000100021753 in _idris_io_95_bind ()
#6 0x000000010004b242 in _idris__123_runMain0_125_ ()
#7 0x0000000100054bf9 in main ()
There's only two calls to CFBooleanGetValue(..)
in quartzWindows()
, so it must be something to do with them:
CFBooleanRef frontMostRef;
AXUIElementCopyAttributeValue(axElementRef, kAXFrontmostAttribute, (const void **)&frontMostRef);
NSArray *windowRefs = CFBridgingRelease(windowsArrayRef);
for (NSUInteger index = 0; index < windowRefs.count; ++index) {
AXUIElementRef windowRef = (__bridge AXUIElementRef)windowRefs[index];
CFTypeRef subroleRef;
AXUIElementCopyAttributeValue(windowRef, kAXSubroleAttribute, &subroleRef);
NSString *subrole = CFBridgingRelease(subroleRef);
CGWindowID wid;
_AXUIElementGetWindow(windowRef, &wid);
CFBooleanRef mainRef;
AXUIElementCopyAttributeValue(windowRef, kAXMainAttribute, (const void **)&mainRef);
/*
* segfault must be happening here
*/
if (CFBooleanGetValue(frontMostRef) && CFBooleanGetValue(mainRef)) {
windows->focused = wid;
}
if ([subrole isEqualToString:(__bridge NSString *)kAXStandardWindowSubrole]) {
if (windows->length < QUARTZ_WINDOWS_LENGTH) {
windows->wids[windows->length] = wid;
windows->length++;
}
}
}
When I am running Iridium and invoke Alfred, the window disappears right after I begin typing.
I think this is a really awesome project, however, after building with idris --build iridium-quartz.ipkg
and running with ./iridium
, how do I use iridium? What are the default keybindings (are there any)? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.