tobys / indicator-chars Goto Github PK
View Code? Open in Web Editor NEWIndicator for character copying
Indicator for character copying
On my Ubuntu 10.10 x86_64 with python-gtk2 2.24.0-2, I had to delete the gtk.Clipboard constructor attributes in the click event; now it’s working.
I think it might be useful for many users to include a default/sample ".indicator-chars" file like this:
[characters] âîôûÆæßðÐÑÝÞýþΩΓΔΘΨ
[numbers] ¼½¾⅛⅜⅝⅞¹²Ø
[numbering1] ➊➋➌➍➎➏➐➑➒➓
[numbering2] ①②③④⑤⑥⑦⑧⑨⑩
[math] ×÷≈≃≠≤≥±√‰ⁿ°∞Ω℮∂∆∏∑
[symbols1] “”`´«»[]{}|#·¬§µ†‡•…—¯
[symbols2] ®™℅№�☑☒¥£€$¢
[symbols3] ⊕⊖⊗⊘⊙□☎☞☹☺✂✓✔✗✘❍❏❑
[arrows] ←↑→↓↔↕↗↘↳↵⇐⇒⇔⇤⇥⇦⇧⇨⇩
Direct injection of character (though XTest? http://pypi.python.org/pypi/xtest/1.1) Instead of having to paste would be a nice feature.
Just an idea. Thanks for this widget!
добавьте, пожалуйста,
I have implemented the following customization on this matter:
DarkTheme_item = self.create_menu_item('Use dark theme icons')
DarkTheme_item.connect("activate", self.DarkTheme)
menu.append(DarkTheme_item)
LightTheme_item = self.create_menu_item('Use light theme icons')
LightTheme_item.connect("activate", self.LightTheme)
menu.append(LightTheme_item)
def DarkTheme(self, dude):
os.system("/usr/local/indicator-chars/dark-theme-icons")
def LightTheme(self, dude):
os.system("/usr/local/indicator-chars/light-theme-icons")
(As you can see I've also moved your script to /usr/local/indicator-chars even symlinking it in /usr/local/bin)
Perhaps, if you wish, you can implement this icon switching feature in a better way as I I only know a little bit shell scripting.
with Ubuntu 14.10 ( 3.13.0-39-generic #66-Ubuntu x86_64 GNU/Linux )
menu text is not "copied" when clicked, further investigation reveal that
I will have to change:
cb = gtk.Clipboard(selection="PRIMARY")
to
cb = gtk.Clipboard(selection="CLIPBOARD")
I'd just like to recommend including an example configuration file to go along with the app.
Change "Install" to "Configuration". It appeared as though you were indicating to install the files into a folder named "~/.indicator-chars"
Also change these from:
Create ~/.indicator-chars
Each row corresponds to a set of chars
To something like:
Create the configuration file ~/.indicator-chars (so as to explicitly differentiate from creating a directory)
Input a group of characters to access on each line of the file
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.