Keylock indicator for Xfce panel
The keylock indicator plugin for Xfce4 "shows the state of your keyboard LEDs: Caps, Scroll and Num Lock in Xfce panel."
Installation instructions for Xfce4 keylock indicator plugin:
(Note: This works on Xfce versions 4.6 and 4.8. Xfce 4.10 uses a different version of the libxfce4ui
widget library and I haven't tested this plugin with 4.10).
EDIT: Tested and it works fine till Xfce versions 4.12.
Download the files from here.
-
Move to your download directory and unpack the files by running the following command:
sudo tar -jxf xfce4-kbdleds-plugin-0.0.6.tar.bz2
-
Next, change to the directory
xfce4-kbdleds-plugin-0.0.6
and run these commands:./configure --prefix=/usr make sudo make install
-
Finally, add the plugin to your panel.
-- The Add New Items dialogue can be opened by right clicking on an empty space on the panel and selecting Add New Items. If you right click on a space occupied by a panel plugin, you can access Add New Items by going to Panel → Add New Items.
Related videos on Youtube
leftspin
Updated on September 18, 2022Comments
-
leftspin over 1 year
This works as expected:
// Return a sequence for photos [[[[[[RACObserve(self, event.photos) filter:^BOOL(id value) { return value != nil ; }] flattenMap:^RACStream *(NSDictionary *photos) { NSLog(@"Got photos: %@" , photos) ; return photos.rac_sequence.signal ; }] // Consider each photo filter:^BOOL(NSDictionary *photoDescriptor) { NSLog(@"Descriptor: %@" , photoDescriptor) ; return ((NSNumber *)photoDescriptor[@"primary"]).boolValue ; }] // Load the selected photo map:^id(NSDictionary *selectedPhotoDescriptor) { NSLog(@"Photo URL: %@" , selectedPhotoDescriptor[@"url"]) ; return [[AsyncImageFetcher imageAtURL:[NSURL URLWithString:selectedPhotoDescriptor[@"url"]] cache:YES] firstOrDefault:[UIImage imageNamed:@"detail_placeholder"]] ; }] // Deliver on main thread deliverOn:RACScheduler.mainThreadScheduler] subscribeNext:^(id x) { ((UIImageView *)self.headerView).image = x ; }] ;
This does not; the image is never set:
RAC( ((UIImageView *)self.headerView), image ) = // Return a sequence for photos [[[[[RACObserve(self, event.photos) filter:^BOOL(id value) { return value != nil ; }] flattenMap:^RACStream *(NSDictionary *photos) { NSLog(@"Got photos: %@" , photos) ; return photos.rac_sequence.signal ; }] // Consider each photo filter:^BOOL(NSDictionary *photoDescriptor) { NSLog(@"Descriptor: %@" , photoDescriptor) ; return ((NSNumber *)photoDescriptor[@"primary"]).boolValue ; }] // Load the selected photo map:^id(NSDictionary *selectedPhotoDescriptor) { NSLog(@"Photo URL: %@" , selectedPhotoDescriptor[@"url"]) ; return [[AsyncImageFetcher imageAtURL:[NSURL URLWithString:selectedPhotoDescriptor[@"url"]] cache:YES] firstOrDefault:[UIImage imageNamed:@"detail_placeholder"]] ; }] // Deliver on main thread deliverOn:RACScheduler.mainThreadScheduler] ;
Why?
-
Glutanimate over 11 yearsThis thread might help you with installing this plugin.
-
leftspin about 10 yearsJust a note, it's likely one of the problems is that -firstOrDefault: doesn't return a signal. I took that part out, but it's still not binding. I'll post an answer if I stumble across the answer.
-
leftspin about 10 yearsAnother problem, I'm returning a signal as a value in -map:. Looks like I'm getting my signals and values conflated.
-
-
Eric almost 5 yearsThe GitHub repository for this doesn't include
configure
, but this one does, and it works with XFCE 4.12: archive.xfce.org/src/panel-plugins/xfce4-kbdleds-plugin/0.0/… -
Kevin Bowen almost 5 years@Eric Thanks for the update with a new link. At the time, I may have used autogen.sh to compile. The last update, which you linked to, for this plugin was ~8 years ago.