# SED
sed is really nice, look:
## Usage
## Final note
Have fun with sed
| # TOML interpretation of the https://github.com/nordtheme/alacritty | |
| # See also: https://github.com/nordtheme/alacritty/issues/40 | |
| # (if the above is resolved, you may not need this Gist) | |
| [colors.primary] | |
| background = "#2e3440" | |
| foreground = "#d8dee9" | |
| dim_foreground = "#a5abb6" | |
| [colors.cursor] |
# SED
sed is really nice, look:
## Usage
## Final note
Have fun with sed
| # This code is an example for a tutorial on Ubuntu Unity/Gnome AppIndicators: | |
| # http://candidtim.github.io/appindicator/2014/09/13/ubuntu-appindicator-step-by-step.html | |
| import os | |
| import signal | |
| import json | |
| from urllib2 import Request, urlopen, URLError | |
| from gi.repository import Gtk as gtk |
| import os | |
| import signal | |
| from gi.repository import Gtk as gtk | |
| from gi.repository import AppIndicator3 as appindicator | |
| APPINDICATOR_ID = 'myappindicator' | |
| def main(): | |
| indicator = appindicator.Indicator.new(APPINDICATOR_ID, os.path.abspath('sample_icon.svg'), appindicator.IndicatorCategory.SYSTEM_SERVICES) | |
| indicator.set_status(appindicator.IndicatorStatus.ACTIVE) |
| import signal | |
| from gi.repository import Gtk as gtk | |
| from gi.repository import AppIndicator3 as appindicator | |
| APPINDICATOR_ID = 'myappindicator' | |
| def main(): | |
| indicator = appindicator.Indicator.new(APPINDICATOR_ID, 'whatever', appindicator.IndicatorCategory.SYSTEM_SERVICES) | |
| indicator.set_status(appindicator.IndicatorStatus.ACTIVE) | |
| indicator.set_menu(build_menu()) |
| import signal | |
| from gi.repository import Gtk as gtk | |
| from gi.repository import AppIndicator3 as appindicator | |
| APPINDICATOR_ID = 'myappindicator' | |
| def main(): | |
| indicator = appindicator.Indicator.new(APPINDICATOR_ID, 'whatever', appindicator.IndicatorCategory.SYSTEM_SERVICES) | |
| indicator.set_status(appindicator.IndicatorStatus.ACTIVE) | |
| indicator.set_menu(gtk.Menu()) |
| from gi.repository import Gtk as gtk | |
| from gi.repository import AppIndicator3 as appindicator | |
| APPINDICATOR_ID = 'myappindicator' | |
| def main(): | |
| indicator = appindicator.Indicator.new(APPINDICATOR_ID, 'whatever', appindicator.IndicatorCategory.SYSTEM_SERVICES) | |
| indicator.set_status(appindicator.IndicatorStatus.ACTIVE) | |
| indicator.set_menu(gtk.Menu()) | |
| gtk.main() |