From 09bb352341d4519179bd462179608a73fecf426d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 22 Feb 2014 05:58:20 +0100 Subject: add icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- COPYING | 2 + Makefile | 16 +- icons/blueshift-off.svg | 2132 ++++++++++++++++++++++++++++++++++++++++++++++ icons/blueshift-on.svg | 2137 +++++++++++++++++++++++++++++++++++++++++++++++ icons/blueshift.svg | 2137 +++++++++++++++++++++++++++++++++++++++++++++++ src/blueshift-tray.py | 8 +- 6 files changed, 6423 insertions(+), 9 deletions(-) create mode 100644 icons/blueshift-off.svg create mode 100644 icons/blueshift-on.svg create mode 100644 icons/blueshift.svg diff --git a/COPYING b/COPYING index e4b6631..d2fd891 100644 --- a/COPYING +++ b/COPYING @@ -1,3 +1,5 @@ +Icons are derived word of Redshift (https://github.com/jonls/redshift) + blueshift-tray – Systray wrapper for Blueshift Copyright © 2014 Mattias Andrée (maandree@member.fsf.org) diff --git a/Makefile b/Makefile index 0163504..bf9a0e0 100644 --- a/Makefile +++ b/Makefile @@ -11,11 +11,14 @@ BINDIR ?= $(PREFIX)$(BIN) DATADIR ?= $(PREFIX)$(DATA) LICENSEDIR ?= $(DATADIR)/licenses LOCALEDIR ?= $(DATADIR)/locale +ICONDIR ?= $(DATADIR)/icons SHEBANG ?= /usr/bin/env python2 COMMAND ?= blueshift-tray PKGNAME ?= blueshift-tray +ICONS = blueshift blueshift-on blueshift-off + .PHONY: all all: command shell @@ -62,9 +65,11 @@ install: install-base install-shell install-base: install-command install-license .PHONY: install-command -install-command: bin/blueshift-tray +install-command: bin/blueshift-tray $(foreach I,$(ICONS),icons/$(I).svg) install -dm755 -- "$(DESTDIR)$(BINDIR)" - install -m755 $< -- "$(DESTDIR)$(BINDIR)/$(COMMAND)" + install -m755 bin/blueshift-tray -- "$(DESTDIR)$(BINDIR)/$(COMMAND)" + install -dm755 -- "$(DESTDIR)$(ICONDIR)/hicolor/scalable/apps" + install -m644 $(foreach I,$(ICONS),icons/$(I).svg) -- "$(DESTDIR)$(ICONDIR)/hicolor/scalable/apps" .PHONY: install-license install-license: @@ -75,17 +80,17 @@ install-license: install-shell: install-bash install-zsh install-fish .PHONY: install-bash -install-bash: bin/blueshift.bash +install-bash: bin/blueshift-tray.bash install -dm755 -- "$(DESTDIR)$(DATADIR)/bash-completion/completions" install -m644 $< -- "$(DESTDIR)$(DATADIR)/bash-completion/completions/$(COMMAND)" .PHONY: install-zsh -install-zsh: bin/blueshift.zsh +install-zsh: bin/blueshift-tray.zsh install -dm755 -- "$(DESTDIR)$(DATADIR)/zsh/site-functions" install -m644 $< -- "$(DESTDIR)$(DATADIR)/zsh/site-functions/_$(COMMAND)" .PHONY: install-fish -install-fish: bin/blueshift.fish +install-fish: bin/blueshift-tray.fish install -dm755 -- "$(DESTDIR)$(DATADIR)/fish/completions" install -m644 $< -- "$(DESTDIR)$(DATADIR)/fish/completions/$(COMMAND).fish" @@ -93,6 +98,7 @@ install-fish: bin/blueshift.fish .PHONY: uninstall uninstall: -rm -- "$(DESTDIR)$(BINDIR)/$(COMMAND)" + -rm -- $(foreach I,$(ICONS),"$(DESTDIR)$(ICONDIR)/hicolor/scalable/apps/$(I).svg") -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE" -rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" diff --git a/icons/blueshift-off.svg b/icons/blueshift-off.svg new file mode 100644 index 0000000..1c896b4 --- /dev/null +++ b/icons/blueshift-off.svg @@ -0,0 +1,2132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/blueshift-on.svg b/icons/blueshift-on.svg new file mode 100644 index 0000000..ab652f6 --- /dev/null +++ b/icons/blueshift-on.svg @@ -0,0 +1,2137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/blueshift.svg b/icons/blueshift.svg new file mode 100644 index 0000000..ab652f6 --- /dev/null +++ b/icons/blueshift.svg @@ -0,0 +1,2137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/blueshift-tray.py b/src/blueshift-tray.py index 0e14e43..e4be23e 100755 --- a/src/blueshift-tray.py +++ b/src/blueshift-tray.py @@ -59,10 +59,10 @@ def create_menu(menu, image, title, function): def f_toggle(widget, data = None): process.send_signal(signal.SIGUSR2) - if icon.get_icon_name() == 'redshift-status-on': - icon.set_from_icon_name('redshift-status-off') + if icon.get_icon_name() == 'blueshift-on': + icon.set_from_icon_name('blueshift-off') else: - icon.set_from_icon_name('redshift-status-on') + icon.set_from_icon_name('blueshift-on') def f_reload(widget, data = None): process.send_signal(signal.SIGUSR1) @@ -94,7 +94,7 @@ def f_popup(widget, button, time, data = None): try: icon = gtk.StatusIcon() - icon.set_from_icon_name('redshift-status-on') + icon.set_from_icon_name('blueshift-on') icon.set_tooltip('Blueshift') menu = gtk.Menu() -- cgit v1.2.3-70-g09d2