initial commit
|
@ -0,0 +1 @@
|
||||||
|
--enable-features=UseOzonePlatform --ozone-platform=wayland
|
|
@ -0,0 +1 @@
|
||||||
|
brave-flags.conf
|
|
@ -0,0 +1,8 @@
|
||||||
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/var/lib/flatpak/exports/bin:/opt/flutter/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:$HOME/scripts:$HOME/.local/bin:$PATH
|
||||||
|
alias ls="echo ewwww\newwww\newwww"
|
||||||
|
alias l="exa"
|
||||||
|
alias v="nvim"
|
||||||
|
if status is-interactive
|
||||||
|
# Commands to run in interactive sessions can go here
|
||||||
|
|
||||||
|
end
|
|
@ -0,0 +1,32 @@
|
||||||
|
# This file contains fish universal variable definitions.
|
||||||
|
# VERSION: 3.0
|
||||||
|
SETUVAR __fish_initialized:3100
|
||||||
|
SETUVAR fish_color_autosuggestion:4c566a
|
||||||
|
SETUVAR fish_color_cancel:\x2dr
|
||||||
|
SETUVAR fish_color_command:81a1c1
|
||||||
|
SETUVAR fish_color_comment:434c5e
|
||||||
|
SETUVAR fish_color_cwd:green
|
||||||
|
SETUVAR fish_color_cwd_root:red
|
||||||
|
SETUVAR fish_color_end:88c0d0
|
||||||
|
SETUVAR fish_color_error:ebcb8b
|
||||||
|
SETUVAR fish_color_escape:00a6b2
|
||||||
|
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||||
|
SETUVAR fish_color_host:normal
|
||||||
|
SETUVAR fish_color_host_remote:yellow
|
||||||
|
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||||
|
SETUVAR fish_color_normal:normal
|
||||||
|
SETUVAR fish_color_operator:00a6b2
|
||||||
|
SETUVAR fish_color_param:eceff4
|
||||||
|
SETUVAR fish_color_quote:a3be8c
|
||||||
|
SETUVAR fish_color_redirection:b48ead
|
||||||
|
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
||||||
|
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||||
|
SETUVAR fish_color_status:red
|
||||||
|
SETUVAR fish_color_user:brgreen
|
||||||
|
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||||
|
SETUVAR fish_greeting:\x1d
|
||||||
|
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||||
|
SETUVAR fish_pager_color_completion:normal
|
||||||
|
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||||
|
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||||
|
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
|
@ -0,0 +1,139 @@
|
||||||
|
function fish_prompt
|
||||||
|
# This prompt shows:
|
||||||
|
# - green lines if the last return command is OK, red otherwise
|
||||||
|
# - your user name, in red if root or yellow otherwise
|
||||||
|
# - your hostname, in cyan if ssh or blue otherwise
|
||||||
|
# - the current path (with prompt_pwd)
|
||||||
|
# - date +%X
|
||||||
|
# - the current virtual environment, if any
|
||||||
|
# - the current git status, if any, with fish_git_prompt
|
||||||
|
# - the current battery state, if any, and if your power cable is unplugged, and if you have "acpi"
|
||||||
|
# - current background jobs, if any
|
||||||
|
|
||||||
|
# It goes from:
|
||||||
|
# ┬─[nim@Hattori:~]─[11:39:00]
|
||||||
|
# ╰─>$ echo here
|
||||||
|
|
||||||
|
# To:
|
||||||
|
# ┬─[nim@Hattori:~/w/dashboard]─[11:37:14]─[V:django20]─[G:master↑1|●1✚1…1]─[B:85%, 05:41:42 remaining]
|
||||||
|
# │ 2 15054 0% arrêtée sleep 100000
|
||||||
|
# │ 1 15048 0% arrêtée sleep 100000
|
||||||
|
# ╰─>$ echo there
|
||||||
|
|
||||||
|
set -l retc red
|
||||||
|
test $status = 0; and set retc green
|
||||||
|
|
||||||
|
set -q __fish_git_prompt_showupstream
|
||||||
|
or set -g __fish_git_prompt_showupstream auto
|
||||||
|
|
||||||
|
function _nim_prompt_wrapper
|
||||||
|
set retc $argv[1]
|
||||||
|
set -l field_name $argv[2]
|
||||||
|
set -l field_value $argv[3]
|
||||||
|
|
||||||
|
set_color normal
|
||||||
|
set_color $retc
|
||||||
|
echo -n '─'
|
||||||
|
set_color -o green
|
||||||
|
echo -n '['
|
||||||
|
set_color normal
|
||||||
|
test -n $field_name
|
||||||
|
and echo -n $field_name:
|
||||||
|
set_color $retc
|
||||||
|
echo -n $field_value
|
||||||
|
set_color -o green
|
||||||
|
echo -n ']'
|
||||||
|
end
|
||||||
|
|
||||||
|
set_color $retc
|
||||||
|
echo -n '┬─'
|
||||||
|
set_color -o green
|
||||||
|
echo -n [
|
||||||
|
|
||||||
|
if functions -q fish_is_root_user; and fish_is_root_user
|
||||||
|
set_color -o red
|
||||||
|
else
|
||||||
|
set_color -o yellow
|
||||||
|
end
|
||||||
|
|
||||||
|
echo -n $USER
|
||||||
|
set_color -o white
|
||||||
|
echo -n @
|
||||||
|
|
||||||
|
if [ -z "$SSH_CLIENT" ]
|
||||||
|
set_color -o blue
|
||||||
|
else
|
||||||
|
set_color -o cyan
|
||||||
|
end
|
||||||
|
|
||||||
|
echo -n (prompt_hostname)
|
||||||
|
set_color -o white
|
||||||
|
echo -n :(prompt_pwd)
|
||||||
|
set_color -o green
|
||||||
|
echo -n ']'
|
||||||
|
|
||||||
|
# Date
|
||||||
|
_nim_prompt_wrapper $retc '' (date +%X)
|
||||||
|
|
||||||
|
# Vi-mode
|
||||||
|
# The default mode prompt would be prefixed, which ruins our alignment.
|
||||||
|
function fish_mode_prompt
|
||||||
|
end
|
||||||
|
|
||||||
|
if test "$fish_key_bindings" = fish_vi_key_bindings
|
||||||
|
or test "$fish_key_bindings" = fish_hybrid_key_bindings
|
||||||
|
set -l mode
|
||||||
|
switch $fish_bind_mode
|
||||||
|
case default
|
||||||
|
set mode (set_color --bold red)N
|
||||||
|
case insert
|
||||||
|
set mode (set_color --bold green)I
|
||||||
|
case replace_one
|
||||||
|
set mode (set_color --bold green)R
|
||||||
|
echo '[R]'
|
||||||
|
case replace
|
||||||
|
set mode (set_color --bold cyan)R
|
||||||
|
case visual
|
||||||
|
set mode (set_color --bold magenta)V
|
||||||
|
end
|
||||||
|
set mode $mode(set_color normal)
|
||||||
|
_nim_prompt_wrapper $retc '' $mode
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# Virtual Environment
|
||||||
|
set -q VIRTUAL_ENV_DISABLE_PROMPT
|
||||||
|
or set -g VIRTUAL_ENV_DISABLE_PROMPT true
|
||||||
|
set -q VIRTUAL_ENV
|
||||||
|
and _nim_prompt_wrapper $retc V (basename "$VIRTUAL_ENV")
|
||||||
|
|
||||||
|
# git
|
||||||
|
set -l prompt_git (fish_git_prompt '%s')
|
||||||
|
test -n "$prompt_git"
|
||||||
|
and _nim_prompt_wrapper $retc G $prompt_git
|
||||||
|
|
||||||
|
# Battery status
|
||||||
|
type -q acpi
|
||||||
|
and test (acpi -a 2> /dev/null | string match -r off)
|
||||||
|
and _nim_prompt_wrapper $retc B (acpi -b | cut -d' ' -f 4- | tail -n 1)
|
||||||
|
|
||||||
|
# New line
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Background jobs
|
||||||
|
set_color normal
|
||||||
|
|
||||||
|
for job in (jobs)
|
||||||
|
set_color $retc
|
||||||
|
echo -n '│ '
|
||||||
|
set_color brown
|
||||||
|
echo $job
|
||||||
|
end
|
||||||
|
|
||||||
|
set_color normal
|
||||||
|
set_color $retc
|
||||||
|
echo -n '╰─>'
|
||||||
|
set_color -o red
|
||||||
|
echo -n '$ '
|
||||||
|
set_color normal
|
||||||
|
end
|
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
"float": [
|
||||||
|
{
|
||||||
|
"class": "pop-shell-example",
|
||||||
|
"title": "pop-shell-example"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "albert",
|
||||||
|
"title": "albert — Albert"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "wofi",
|
||||||
|
"title": "drun"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "VirtualBox Manager"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "obs",
|
||||||
|
"title": "Windowed Projector (Preview)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "X32-Edit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "pensela"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "lmms"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "wofi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"class": "wofi",
|
||||||
|
"title": "dmenu"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"skiptaskbarhidden": [],
|
||||||
|
"log_on_focus": false,
|
||||||
|
"move_pointer_on_switch": false,
|
||||||
|
"default_pointer_position": "TOP_LEFT"
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
// Copyright (C) 2011-2017 R M Yorston
|
||||||
|
// Licence: GPLv2+
|
||||||
|
|
||||||
|
const Main = imports.ui.main;
|
||||||
|
const SessionMode = imports.ui.sessionMode;
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
}
|
||||||
|
|
||||||
|
function enable() {
|
||||||
|
// do nothing if the clock isn't centred in this mode
|
||||||
|
if ( Main.sessionMode.panel.center.indexOf('dateMenu') == -1 ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let centerBox = Main.panel._centerBox;
|
||||||
|
let rightBox = Main.panel._rightBox;
|
||||||
|
let dateMenu = Main.panel.statusArea['dateMenu'];
|
||||||
|
let children = centerBox.get_children();
|
||||||
|
|
||||||
|
// only move the clock if it's in the centre box
|
||||||
|
if ( children.indexOf(dateMenu.container) != -1 ) {
|
||||||
|
centerBox.remove_actor(dateMenu.container);
|
||||||
|
|
||||||
|
children = rightBox.get_children();
|
||||||
|
rightBox.insert_child_at_index(dateMenu.container, children.length-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function disable() {
|
||||||
|
// do nothing if the clock isn't centred in this mode
|
||||||
|
if ( Main.sessionMode.panel.center.indexOf('dateMenu') == -1 ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let centerBox = Main.panel._centerBox;
|
||||||
|
let rightBox = Main.panel._rightBox;
|
||||||
|
let dateMenu = Main.panel.statusArea['dateMenu'];
|
||||||
|
let children = rightBox.get_children();
|
||||||
|
|
||||||
|
// only move the clock back if it's in the right box
|
||||||
|
if ( children.indexOf(dateMenu.container) != -1 ) {
|
||||||
|
rightBox.remove_actor(dateMenu.container);
|
||||||
|
centerBox.add_actor(dateMenu.container);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"_generated": "Generated by SweetTooth, do not edit",
|
||||||
|
"description": "Move clock to left of status menu button",
|
||||||
|
"name": "Frippery Move Clock",
|
||||||
|
"shell-version": [
|
||||||
|
"40",
|
||||||
|
"41"
|
||||||
|
],
|
||||||
|
"url": "http://frippery.org/extensions",
|
||||||
|
"uuid": "Move_Clock@rmy.pobox.com",
|
||||||
|
"version": 25
|
||||||
|
}
|
|
@ -0,0 +1,674 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
@ -0,0 +1,212 @@
|
||||||
|
# arch-update
|
||||||
|
Update indicator for Arch Linux and GNOME Shell
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Uses pacman's «checkupdates» by default and thus does not need root access
|
||||||
|
- Optional update count display on panel
|
||||||
|
- Optional notification on new updates (defaults to off)
|
||||||
|
- Launcher for your favorite update command
|
||||||
|
- Comes in English, French, Czech, German, Spanish, Brazilian Portuguese, Italian, Polish, Romanian, Arabic, Slovak, Chinese, Serbian, Swedish, Norwegian Bokmal, Russian, Persian, Turkish, Esperanto, Finnish, Dutch, Ukrainian, Korean languages. (Thanks translators !)
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
If you use the default "checkupdates" way you will need to install "pacman-contrib".
|
||||||
|
|
||||||
|
## One-click install
|
||||||
|
It's on extensions.gnome.org :
|
||||||
|
https://extensions.gnome.org/extension/1010/archlinux-updates-indicator/
|
||||||
|
|
||||||
|
## Install from AUR
|
||||||
|
Thanks to michiwend you can install it from Arch Linux User Repository : gnome-shell-extension-arch-update
|
||||||
|
https://aur.archlinux.org/packages/gnome-shell-extension-arch-update/
|
||||||
|
|
||||||
|
## Manual install
|
||||||
|
To install, simply download as zip and unzip contents in ~/.local/share/gnome-shell/extensions/arch-update@RaphaelRochet
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
### v45
|
||||||
|
- Fixed an error on unloading introduced in v44
|
||||||
|
|
||||||
|
### v44
|
||||||
|
- Minor refactoring
|
||||||
|
|
||||||
|
### v43
|
||||||
|
- Gnome 41
|
||||||
|
- New translations : Dutch, Korean, Ukrainian
|
||||||
|
- Updated translations : Simplified Chinese, Russian
|
||||||
|
|
||||||
|
### v42
|
||||||
|
- Updated translation : German
|
||||||
|
|
||||||
|
### v41
|
||||||
|
- Fixed metadata for extensions website
|
||||||
|
|
||||||
|
### v40
|
||||||
|
- Gnome 40 only
|
||||||
|
- Updated translation : Russian
|
||||||
|
|
||||||
|
### v39
|
||||||
|
- Fixed update list empty after suspend
|
||||||
|
- Fixed update list not fully visible when lots of updates
|
||||||
|
- Updated translations : Chinese and Spanish
|
||||||
|
|
||||||
|
### v38
|
||||||
|
- Fixed crash about Gtk.IconTheme.get_defaults
|
||||||
|
- Added indicator position setting
|
||||||
|
|
||||||
|
### v37
|
||||||
|
- Theme support is back ! Also an option to force built-in icons if needed.
|
||||||
|
|
||||||
|
### v36
|
||||||
|
- Gnome 3.36.1 only
|
||||||
|
- Fixed open prefs from menu
|
||||||
|
|
||||||
|
### v35
|
||||||
|
- Gnome 3.36 only
|
||||||
|
- Fixed a warning about absolete call
|
||||||
|
|
||||||
|
### v34
|
||||||
|
- Gnome 3.36
|
||||||
|
- New translation : Swedish
|
||||||
|
- Updated translations : Italian, German
|
||||||
|
|
||||||
|
### v33
|
||||||
|
- Removed deprecated code
|
||||||
|
- Removed support for older GS
|
||||||
|
|
||||||
|
### v32
|
||||||
|
- Gnome 3.34
|
||||||
|
|
||||||
|
### v31
|
||||||
|
- Updated translation : Turkish
|
||||||
|
|
||||||
|
### v30
|
||||||
|
- Gnome 3.32
|
||||||
|
|
||||||
|
### v29
|
||||||
|
- Update translation : Romanian
|
||||||
|
- Applied French translation to all French
|
||||||
|
|
||||||
|
### v28
|
||||||
|
- Gnome 3.30
|
||||||
|
- New translation : Esperanto
|
||||||
|
- New translation : Finnish
|
||||||
|
- Updated translation : Brazilian
|
||||||
|
- Fix indicator alignment
|
||||||
|
- Fix some errors that could quickly fill log
|
||||||
|
|
||||||
|
### v27
|
||||||
|
- Added info about pacman-contrib for checkupdates script
|
||||||
|
- New translation : Estonian
|
||||||
|
- Updated translation : Romanian
|
||||||
|
|
||||||
|
### v26
|
||||||
|
- Gnome 3.28
|
||||||
|
- New translation : Hebrew
|
||||||
|
- Update translation : Spanish
|
||||||
|
|
||||||
|
### v25
|
||||||
|
- Added optional package manager menu entry
|
||||||
|
- Added requirements in readme
|
||||||
|
- Updated Slovak translation
|
||||||
|
- Updated Italian translation
|
||||||
|
- Fixed a JS Warning
|
||||||
|
- Fixed a bug that crashes Gnome-SHELL on update
|
||||||
|
|
||||||
|
### v24
|
||||||
|
- Gnome 3.26
|
||||||
|
- Updated Romanian translation
|
||||||
|
|
||||||
|
### v23
|
||||||
|
- Updated translation : Arabic
|
||||||
|
|
||||||
|
### v22
|
||||||
|
- Updated translation : Serbian
|
||||||
|
- New translation : Turkish
|
||||||
|
|
||||||
|
### v21
|
||||||
|
- Gnome 3.24
|
||||||
|
- New translation : Persian
|
||||||
|
|
||||||
|
### v20
|
||||||
|
- Translations updates (German, Spanish)
|
||||||
|
|
||||||
|
### v19
|
||||||
|
- Ability to cancel checking
|
||||||
|
- New translation : Catalan
|
||||||
|
- Updated translations : Spanish, Brazilian
|
||||||
|
|
||||||
|
### v18
|
||||||
|
- Gnome 3.22
|
||||||
|
- New preferences window
|
||||||
|
- Cleaner translations (some text are not translated yet)
|
||||||
|
- Menu does not close when updating
|
||||||
|
|
||||||
|
### v17
|
||||||
|
- New translation : Russian
|
||||||
|
- Updated translation : Czech
|
||||||
|
|
||||||
|
### v16
|
||||||
|
- Add vertical scroll bar on preferences window
|
||||||
|
|
||||||
|
### v15
|
||||||
|
- New feature : auto-expand update list
|
||||||
|
- New translation : Norwegian Bokmal
|
||||||
|
- Updated translation : Brazilian Portuguese
|
||||||
|
|
||||||
|
### v14
|
||||||
|
- Gnome 3.20 compatibility
|
||||||
|
|
||||||
|
### v13
|
||||||
|
- New translation : Serbian (sr and sr@latin)
|
||||||
|
- Updated translation : Spanish
|
||||||
|
- Minor bug fix
|
||||||
|
|
||||||
|
### v12
|
||||||
|
- New translation : Chinese
|
||||||
|
- Updated translation : Czech
|
||||||
|
|
||||||
|
### v11
|
||||||
|
- New option to strip out version numbers
|
||||||
|
- New translations : Slovak and Arabic
|
||||||
|
- Updated translations : Brazilian Portuguese, German
|
||||||
|
|
||||||
|
### v10
|
||||||
|
- Licence added : GNU GPL v3
|
||||||
|
- Updated translations : Polish and Brazilian portuguese
|
||||||
|
|
||||||
|
### v9
|
||||||
|
- Added option to change command used to check for updates (for advanced users)
|
||||||
|
- Added Romanian and Polish translations
|
||||||
|
|
||||||
|
### v8
|
||||||
|
- Added Italian language
|
||||||
|
|
||||||
|
### v7
|
||||||
|
- Added Brazilian Portuguese translation
|
||||||
|
|
||||||
|
### v6
|
||||||
|
- Added Spanish language
|
||||||
|
|
||||||
|
### v5
|
||||||
|
- Option to have permanent notifications
|
||||||
|
- Asynchronous checking - No more 1 sec Shell freeze during updates check !
|
||||||
|
- 'Updates pending' menu item can now be expanded to show updates list
|
||||||
|
- Option to only list new updates in notifications
|
||||||
|
- Aded "Update Now" action button on notifications
|
||||||
|
|
||||||
|
### v4
|
||||||
|
- Run update command from indicator
|
||||||
|
- Autodetect when updates are done
|
||||||
|
- Prefs dialog reworked
|
||||||
|
|
||||||
|
### v3
|
||||||
|
- Notification option
|
||||||
|
- Czech and German languages added
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
All icons are based on Thayer Williams' Archer logo, winner of Arch Linux logo contest.
|
||||||
|
|
||||||
|
Some portions of the extension were inspired from Touchad Indicator and Lock keys.
|
||||||
|
https://github.com/orangeshirt/gnome-shell-extension-touchpad-indicator
|
||||||
|
https://github.com/kazysmaster/gnome-shell-extension-lockkeys
|
|
@ -0,0 +1,509 @@
|
||||||
|
/*
|
||||||
|
This file is part of Arch Linux Updates Indicator
|
||||||
|
|
||||||
|
Arch Linux Updates Indicator is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
Arch Linux Updates Indicator is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Arch Linux Updates Indicator. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Copyright 2016 Raphaël Rochet
|
||||||
|
*/
|
||||||
|
|
||||||
|
const Clutter = imports.gi.Clutter;
|
||||||
|
|
||||||
|
const St = imports.gi.St;
|
||||||
|
const GObject = imports.gi.GObject;
|
||||||
|
const GLib = imports.gi.GLib;
|
||||||
|
const Gio = imports.gi.Gio;
|
||||||
|
const Gtk = imports.gi.Gtk;
|
||||||
|
|
||||||
|
const Main = imports.ui.main;
|
||||||
|
const Panel = imports.ui.panel;
|
||||||
|
const PanelMenu = imports.ui.panelMenu;
|
||||||
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
|
const MessageTray = imports.ui.messageTray;
|
||||||
|
|
||||||
|
const Util = imports.misc.util;
|
||||||
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
|
const ExtensionManager = imports.ui.main.extensionManager;
|
||||||
|
const Me = ExtensionUtils.getCurrentExtension();
|
||||||
|
|
||||||
|
const Format = imports.format;
|
||||||
|
const Gettext = imports.gettext.domain('arch-update');
|
||||||
|
const _ = Gettext.gettext;
|
||||||
|
|
||||||
|
/* Options */
|
||||||
|
let ALWAYS_VISIBLE = true;
|
||||||
|
let USE_BUILDIN_ICONS = true;
|
||||||
|
let SHOW_COUNT = true;
|
||||||
|
let BOOT_WAIT = 15; // 15s
|
||||||
|
let CHECK_INTERVAL = 60*60; // 1h
|
||||||
|
let NOTIFY = false;
|
||||||
|
let HOWMUCH = 0;
|
||||||
|
let TRANSIENT = true;
|
||||||
|
let UPDATE_CMD = "gnome-terminal -e 'sh -c \"sudo pacman -Syu ; echo Done - Press enter to exit; read _\" '";
|
||||||
|
let CHECK_CMD = "/usr/bin/checkupdates";
|
||||||
|
let MANAGER_CMD = "";
|
||||||
|
let PACMAN_DIR = "/var/lib/pacman/local";
|
||||||
|
let STRIP_VERSIONS = true;
|
||||||
|
let AUTO_EXPAND_LIST = 0;
|
||||||
|
|
||||||
|
/* Variables we want to keep when extension is disabled (eg during screen lock) */
|
||||||
|
let FIRST_BOOT = 1;
|
||||||
|
let UPDATES_PENDING = -1;
|
||||||
|
let UPDATES_LIST = [];
|
||||||
|
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
String.prototype.format = Format.format;
|
||||||
|
ExtensionUtils.initTranslations("arch-update");
|
||||||
|
}
|
||||||
|
|
||||||
|
const ArchUpdateIndicator = GObject.registerClass(
|
||||||
|
{
|
||||||
|
_TimeoutId: null,
|
||||||
|
_FirstTimeoutId: null,
|
||||||
|
_updateProcess_sourceId: null,
|
||||||
|
_updateProcess_stream: null,
|
||||||
|
_updateProcess_pid: null,
|
||||||
|
_updateList: [],
|
||||||
|
},
|
||||||
|
class ArchUpdateIndicator extends PanelMenu.Button {
|
||||||
|
|
||||||
|
_init() {
|
||||||
|
super._init(0);
|
||||||
|
this.updateIcon = new St.Icon({gicon: this._getCustIcon('arch-unknown-symbolic'), style_class: 'system-status-icon'});
|
||||||
|
|
||||||
|
let box = new St.BoxLayout({ vertical: false, style_class: 'panel-status-menu-box' });
|
||||||
|
this.label = new St.Label({ text: '',
|
||||||
|
y_expand: true,
|
||||||
|
y_align: Clutter.ActorAlign.CENTER });
|
||||||
|
|
||||||
|
box.add_child(this.updateIcon);
|
||||||
|
box.add_child(this.label);
|
||||||
|
this.add_child(box);
|
||||||
|
|
||||||
|
// Prepare the special menu : a submenu for updates list that will look like a regular menu item when disabled
|
||||||
|
// Scrollability will also be taken care of by the popupmenu
|
||||||
|
this.menuExpander = new PopupMenu.PopupSubMenuMenuItem('');
|
||||||
|
this.menuExpander.menu.box.style_class = 'arch-updates-list';
|
||||||
|
|
||||||
|
// Other standard menu items
|
||||||
|
let settingsMenuItem = new PopupMenu.PopupMenuItem(_('Settings'));
|
||||||
|
this.updateNowMenuItem = new PopupMenu.PopupMenuItem(_('Update now'));
|
||||||
|
this.managerMenuItem = new PopupMenu.PopupMenuItem(_('Open package manager'));
|
||||||
|
|
||||||
|
// A special "Checking" menu item with a stop button
|
||||||
|
this.checkingMenuItem = new PopupMenu.PopupBaseMenuItem( {reactive:false} );
|
||||||
|
let checkingLabel = new St.Label({ text: _('Checking') + " …" });
|
||||||
|
let cancelButton = new St.Button({
|
||||||
|
child: new St.Icon({ icon_name: 'process-stop-symbolic' }),
|
||||||
|
style_class: 'system-menu-action arch-updates-menubutton',
|
||||||
|
x_expand: true
|
||||||
|
});
|
||||||
|
cancelButton.set_x_align(Clutter.ActorAlign.END);
|
||||||
|
this.checkingMenuItem.actor.add_actor( checkingLabel );
|
||||||
|
this.checkingMenuItem.actor.add_actor( cancelButton );
|
||||||
|
|
||||||
|
// A little trick on "check now" menuitem to keep menu opened
|
||||||
|
this.checkNowMenuItem = new PopupMenu.PopupMenuItem( _('Check now') );
|
||||||
|
this.checkNowMenuContainer = new PopupMenu.PopupMenuSection();
|
||||||
|
this.checkNowMenuContainer.actor.add_actor(this.checkNowMenuItem.actor);
|
||||||
|
|
||||||
|
// Assemble all menu items into the popup menu
|
||||||
|
this.menu.addMenuItem(this.menuExpander);
|
||||||
|
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||||
|
this.menu.addMenuItem(this.updateNowMenuItem);
|
||||||
|
this.menu.addMenuItem(this.checkingMenuItem);
|
||||||
|
this.menu.addMenuItem(this.checkNowMenuContainer);
|
||||||
|
this.menu.addMenuItem(this.managerMenuItem);
|
||||||
|
this.menu.addMenuItem(settingsMenuItem);
|
||||||
|
|
||||||
|
// Bind some events
|
||||||
|
this.menu.connect('open-state-changed', this._onMenuOpened.bind(this));
|
||||||
|
this.checkNowMenuItem.connect('activate', this._checkUpdates.bind(this));
|
||||||
|
cancelButton.connect('clicked', this._cancelCheck.bind(this));
|
||||||
|
settingsMenuItem.connect('activate', this._openSettings.bind(this));
|
||||||
|
this.updateNowMenuItem.connect('activate', this._updateNow.bind(this));
|
||||||
|
this.managerMenuItem.connect('activate', this._openManager.bind(this));
|
||||||
|
|
||||||
|
// Some initial status display
|
||||||
|
this._showChecking(false);
|
||||||
|
this._updateMenuExpander(false, _('Waiting first check'));
|
||||||
|
|
||||||
|
// Restore previous updates list if any
|
||||||
|
this._updateList = UPDATES_LIST;
|
||||||
|
|
||||||
|
// Load settings
|
||||||
|
this._settings = ExtensionUtils.getSettings('org.gnome.shell.extensions.arch-update');
|
||||||
|
this._settings.connect('changed', this._positionChanged.bind(this));
|
||||||
|
this._settingsChangedId = this._settings.connect('changed', this._applySettings.bind(this));
|
||||||
|
this._applySettings();
|
||||||
|
|
||||||
|
// Start monitoring external changes
|
||||||
|
this._startFolderMonitor();
|
||||||
|
|
||||||
|
if (FIRST_BOOT) {
|
||||||
|
// Schedule first check only if this is the first extension load
|
||||||
|
// This won't be run again if extension is disabled/enabled (like when screen is locked)
|
||||||
|
let that = this;
|
||||||
|
this._FirstTimeoutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, BOOT_WAIT, function () {
|
||||||
|
that._checkUpdates();
|
||||||
|
that._FirstTimeoutId = null;
|
||||||
|
FIRST_BOOT = 0;
|
||||||
|
return false; // Run once
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
_getCustIcon(icon_name) {
|
||||||
|
// I did not find a way to lookup icon via Gio, so use Gtk
|
||||||
|
// I couldn't find why, but get_default is sometimes null, hence this additional test
|
||||||
|
if (!USE_BUILDIN_ICONS && Gtk.IconTheme.get_default()) {
|
||||||
|
if (Gtk.IconTheme.get_default().has_icon(icon_name)) {
|
||||||
|
return Gio.icon_new_for_string( icon_name );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Icon not available in theme, or user prefers built in icon
|
||||||
|
return Gio.icon_new_for_string( Me.dir.get_child('icons').get_path() + "/" + icon_name + ".svg" );
|
||||||
|
}
|
||||||
|
|
||||||
|
_positionChanged(){
|
||||||
|
this.container.get_parent().remove_actor(this.container);
|
||||||
|
let boxes = {
|
||||||
|
0: Main.panel._leftBox,
|
||||||
|
1: Main.panel._centerBox,
|
||||||
|
2: Main.panel._rightBox
|
||||||
|
};
|
||||||
|
let p = this._settings.get_int('position');
|
||||||
|
let i = this._settings.get_int('position-number');
|
||||||
|
boxes[p].insert_child_at_index(this.container, i);
|
||||||
|
}
|
||||||
|
|
||||||
|
_openSettings() {
|
||||||
|
Gio.DBus.session.call(
|
||||||
|
'org.gnome.Shell.Extensions',
|
||||||
|
'/org/gnome/Shell/Extensions',
|
||||||
|
'org.gnome.Shell.Extensions',
|
||||||
|
'OpenExtensionPrefs',
|
||||||
|
new GLib.Variant('(ssa{sv})', [Me.uuid, '', {}]),
|
||||||
|
null,
|
||||||
|
Gio.DBusCallFlags.NONE,
|
||||||
|
-1,
|
||||||
|
null);
|
||||||
|
}
|
||||||
|
|
||||||
|
_openManager() {
|
||||||
|
Util.spawnCommandLine(MANAGER_CMD);
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateNow() {
|
||||||
|
Util.spawnCommandLine(UPDATE_CMD);
|
||||||
|
}
|
||||||
|
|
||||||
|
_applySettings() {
|
||||||
|
ALWAYS_VISIBLE = this._settings.get_boolean('always-visible');
|
||||||
|
USE_BUILDIN_ICONS = this._settings.get_boolean('use-buildin-icons');
|
||||||
|
SHOW_COUNT = this._settings.get_boolean('show-count');
|
||||||
|
BOOT_WAIT = this._settings.get_int('boot-wait');
|
||||||
|
CHECK_INTERVAL = 60 * this._settings.get_int('check-interval');
|
||||||
|
NOTIFY = this._settings.get_boolean('notify');
|
||||||
|
HOWMUCH = this._settings.get_int('howmuch');
|
||||||
|
TRANSIENT = this._settings.get_boolean('transient');
|
||||||
|
UPDATE_CMD = this._settings.get_string('update-cmd');
|
||||||
|
CHECK_CMD = this._settings.get_string('check-cmd');
|
||||||
|
MANAGER_CMD = this._settings.get_string('package-manager');
|
||||||
|
PACMAN_DIR = this._settings.get_string('pacman-dir');
|
||||||
|
STRIP_VERSIONS = this._settings.get_boolean('strip-versions');
|
||||||
|
AUTO_EXPAND_LIST = this._settings.get_int('auto-expand-list');
|
||||||
|
this.managerMenuItem.actor.visible = ( MANAGER_CMD != "" );
|
||||||
|
this._checkShowHide();
|
||||||
|
this._updateStatus();
|
||||||
|
let that = this;
|
||||||
|
if (this._TimeoutId) GLib.source_remove(this._TimeoutId);
|
||||||
|
this._TimeoutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, CHECK_INTERVAL, function () {
|
||||||
|
that._checkUpdates();
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
this._settings.disconnect( this._settingsChangedId );
|
||||||
|
if (this._notifSource) {
|
||||||
|
// Delete the notification source, which lay still have a notification shown
|
||||||
|
this._notifSource.destroy();
|
||||||
|
this._notifSource = null;
|
||||||
|
};
|
||||||
|
if (this.monitor) {
|
||||||
|
// Stop spying on pacman local dir
|
||||||
|
this.monitor.cancel();
|
||||||
|
this.monitor = null;
|
||||||
|
}
|
||||||
|
if (this._updateProcess_sourceId) {
|
||||||
|
// We leave the checkupdate process end by itself but undef handles to avoid zombies
|
||||||
|
GLib.source_remove(this._updateProcess_sourceId);
|
||||||
|
this._updateProcess_sourceId = null;
|
||||||
|
this._updateProcess_stream = null;
|
||||||
|
}
|
||||||
|
if (this._FirstTimeoutId) {
|
||||||
|
GLib.source_remove(this._FirstTimeoutId);
|
||||||
|
this._FirstTimeoutId = null;
|
||||||
|
}
|
||||||
|
if (this._TimeoutId) {
|
||||||
|
GLib.source_remove(this._TimeoutId);
|
||||||
|
this._TimeoutId = null;
|
||||||
|
}
|
||||||
|
super.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
_checkShowHide() {
|
||||||
|
if ( UPDATES_PENDING == -3 ) {
|
||||||
|
// Do not apply visibility change while checking for updates
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!ALWAYS_VISIBLE && UPDATES_PENDING < 1) {
|
||||||
|
this.visible = false;
|
||||||
|
} else {
|
||||||
|
this.visible = true;
|
||||||
|
}
|
||||||
|
this.label.visible = SHOW_COUNT && UPDATES_PENDING > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
_onMenuOpened() {
|
||||||
|
// This event is fired when menu is shown or hidden
|
||||||
|
// Only open the submenu if the menu is being opened and there is something to show
|
||||||
|
this._checkAutoExpandList();
|
||||||
|
}
|
||||||
|
|
||||||
|
_checkAutoExpandList() {
|
||||||
|
if (this.menu.isOpen && UPDATES_PENDING > 0 && UPDATES_PENDING <= AUTO_EXPAND_LIST) {
|
||||||
|
this.menuExpander.setSubmenuShown(true);
|
||||||
|
} else {
|
||||||
|
this.menuExpander.setSubmenuShown(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_startFolderMonitor() {
|
||||||
|
if (PACMAN_DIR) {
|
||||||
|
this.pacman_dir = Gio.file_new_for_path(PACMAN_DIR);
|
||||||
|
this.monitor = this.pacman_dir.monitor_directory(0, null);
|
||||||
|
this.monitor.connect('changed', this._onFolderChanged.bind(this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_onFolderChanged() {
|
||||||
|
// Folder have changed ! Let's schedule a check in a few seconds
|
||||||
|
let that = this;
|
||||||
|
if (this._FirstTimeoutId) GLib.source_remove(this._FirstTimeoutId);
|
||||||
|
this._FirstTimeoutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, 5, function () {
|
||||||
|
that._checkUpdates();
|
||||||
|
that._FirstTimeoutId = null;
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
_showChecking(isChecking) {
|
||||||
|
if (isChecking == true) {
|
||||||
|
this.updateIcon.set_gicon( this._getCustIcon('arch-unknown-symbolic') );
|
||||||
|
this.checkNowMenuContainer.actor.visible = false;
|
||||||
|
this.checkingMenuItem.actor.visible = true;;
|
||||||
|
} else {
|
||||||
|
this.checkNowMenuContainer.actor.visible = true;;
|
||||||
|
this.checkingMenuItem.actor.visible = false;;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateStatus(updatesCount) {
|
||||||
|
updatesCount = typeof updatesCount === 'number' ? updatesCount : UPDATES_PENDING;
|
||||||
|
if (updatesCount > 0) {
|
||||||
|
// Updates pending
|
||||||
|
this.updateIcon.set_gicon( this._getCustIcon('arch-updates-symbolic') );
|
||||||
|
this._updateMenuExpander( true, Gettext.ngettext( "%d update pending", "%d updates pending", updatesCount ).format(updatesCount) );
|
||||||
|
this.label.set_text(updatesCount.toString());
|
||||||
|
if (NOTIFY && UPDATES_PENDING < updatesCount) {
|
||||||
|
if (HOWMUCH > 0) {
|
||||||
|
let updateList = [];
|
||||||
|
if (HOWMUCH > 1) {
|
||||||
|
updateList = this._updateList;
|
||||||
|
} else {
|
||||||
|
// Keep only packets that was not in the previous notification
|
||||||
|
updateList = this._updateList.filter(function(pkg) { return UPDATES_LIST.indexOf(pkg) < 0 });
|
||||||
|
}
|
||||||
|
if (updateList.length > 0) {
|
||||||
|
// Show notification only if there's new updates
|
||||||
|
this._showNotification(
|
||||||
|
Gettext.ngettext( "New Arch Linux Update", "New Arch Linux Updates", updateList.length ),
|
||||||
|
updateList.join(', ')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this._showNotification(
|
||||||
|
Gettext.ngettext( "New Arch Linux Update", "New Arch Linux Updates", updatesCount ),
|
||||||
|
Gettext.ngettext( "There is %d update pending", "There are %d updates pending", updatesCount ).format(updatesCount)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Store the new list
|
||||||
|
UPDATES_LIST = this._updateList;
|
||||||
|
} else {
|
||||||
|
this.label.set_text('');
|
||||||
|
if (updatesCount == -1) {
|
||||||
|
// Unknown
|
||||||
|
this.updateIcon.set_gicon( this._getCustIcon('arch-unknown-symbolic') );
|
||||||
|
this._updateMenuExpander( false, '' );
|
||||||
|
} else if (updatesCount == -2) {
|
||||||
|
// Error
|
||||||
|
this.updateIcon.set_gicon( this._getCustIcon('arch-error-symbolic') );
|
||||||
|
if ( this.lastUnknowErrorString.indexOf("/usr/bin/checkupdates") > 0 ) {
|
||||||
|
// We do a special change here due to checkupdates moved to pacman-contrib
|
||||||
|
this._updateMenuExpander( false, _("Note : you have to install pacman-contrib to use the 'checkupdates' script.") );
|
||||||
|
} else {
|
||||||
|
this._updateMenuExpander( false, _('Error') + "\n" + this.lastUnknowErrorString );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Up to date
|
||||||
|
this.updateIcon.set_gicon( this._getCustIcon('arch-uptodate-symbolic') );
|
||||||
|
this._updateMenuExpander( false, _('Up to date :)') );
|
||||||
|
UPDATES_LIST = []; // Reset stored list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
UPDATES_PENDING = updatesCount;
|
||||||
|
this._checkAutoExpandList();
|
||||||
|
this._checkShowHide();
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateMenuExpander(enabled, label) {
|
||||||
|
this.menuExpander.menu.box.destroy_all_children();
|
||||||
|
if (label == "") {
|
||||||
|
// No text, hide the menuitem
|
||||||
|
this.menuExpander.actor.visible = false;
|
||||||
|
} else {
|
||||||
|
// We make our expander look like a regular menu label if disabled
|
||||||
|
this.menuExpander.actor.reactive = enabled;
|
||||||
|
this.menuExpander._triangle.visible = enabled;
|
||||||
|
this.menuExpander.label.set_text(label);
|
||||||
|
this.menuExpander.actor.visible = true;
|
||||||
|
if (enabled && this._updateList.length > 0) {
|
||||||
|
this._updateList.forEach( item => {
|
||||||
|
this.menuExpander.menu.box.add( new St.Label({ text: item }) );
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 'Update now' visibility is linked so let's save a few lines and set it here
|
||||||
|
this.updateNowMenuItem.actor.reactive = enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
_checkUpdates() {
|
||||||
|
if(this._updateProcess_sourceId) {
|
||||||
|
// A check is already running ! Maybe we should kill it and run another one ?
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// Run asynchronously, to avoid shell freeze - even for a 1s check
|
||||||
|
this._showChecking(true);
|
||||||
|
try {
|
||||||
|
// Parse check command line
|
||||||
|
let [parseok, argvp] = GLib.shell_parse_argv( CHECK_CMD );
|
||||||
|
if (!parseok) { throw 'Parse error' };
|
||||||
|
let [res, pid, in_fd, out_fd, err_fd] = GLib.spawn_async_with_pipes(null, argvp, null, GLib.SpawnFlags.DO_NOT_REAP_CHILD, null);
|
||||||
|
// Let's buffer the command's output - that's a input for us !
|
||||||
|
this._updateProcess_stream = new Gio.DataInputStream({
|
||||||
|
base_stream: new Gio.UnixInputStream({fd: out_fd})
|
||||||
|
});
|
||||||
|
// We will process the output at once when it's done
|
||||||
|
this._updateProcess_sourceId = GLib.child_watch_add(0, pid, () => {this._checkUpdatesRead()} );
|
||||||
|
this._updateProcess_pid = pid;
|
||||||
|
} catch (err) {
|
||||||
|
this._showChecking(false);
|
||||||
|
this.lastUnknowErrorString = err.message.toString();
|
||||||
|
this._updateStatus(-2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_cancelCheck() {
|
||||||
|
if (this._updateProcess_pid == null) { return; };
|
||||||
|
Util.spawnCommandLine( "kill " + this._updateProcess_pid );
|
||||||
|
this._updateProcess_pid = null; // Prevent double kill
|
||||||
|
this._checkUpdatesEnd();
|
||||||
|
}
|
||||||
|
|
||||||
|
_checkUpdatesRead() {
|
||||||
|
// Read the buffered output
|
||||||
|
let updateList = [];
|
||||||
|
let out, size;
|
||||||
|
do {
|
||||||
|
[out, size] = this._updateProcess_stream.read_line_utf8(null);
|
||||||
|
if (out) updateList.push(out);
|
||||||
|
} while (out);
|
||||||
|
// If version numbers should be stripped, do it
|
||||||
|
if (STRIP_VERSIONS == true) {
|
||||||
|
updateList = updateList.map(function(p) {
|
||||||
|
// Try to keep only what's before the first space
|
||||||
|
var chunks = p.split(" ",2);
|
||||||
|
return chunks[0];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this._updateList = updateList;
|
||||||
|
this._checkUpdatesEnd();
|
||||||
|
}
|
||||||
|
|
||||||
|
_checkUpdatesEnd() {
|
||||||
|
// Free resources
|
||||||
|
this._updateProcess_stream.close(null);
|
||||||
|
this._updateProcess_stream = null;
|
||||||
|
GLib.source_remove(this._updateProcess_sourceId);
|
||||||
|
this._updateProcess_sourceId = null;
|
||||||
|
this._updateProcess_pid = null;
|
||||||
|
// Update indicator
|
||||||
|
this._showChecking(false);
|
||||||
|
this._updateStatus(this._updateList.length);
|
||||||
|
}
|
||||||
|
|
||||||
|
_showNotification(title, message) {
|
||||||
|
if (this._notifSource == null) {
|
||||||
|
// We have to prepare this only once
|
||||||
|
this._notifSource = new MessageTray.SystemNotificationSource();
|
||||||
|
this._notifSource.createIcon = function() {
|
||||||
|
let gicon = Gio.icon_new_for_string( Me.dir.get_child('icons').get_path() + "/arch-lit-symbolic.svg" );
|
||||||
|
return new St.Icon({ gicon: gicon });
|
||||||
|
};
|
||||||
|
// Take care of note leaving unneeded sources
|
||||||
|
this._notifSource.connect('destroy', ()=>{this._notifSource = null;});
|
||||||
|
Main.messageTray.add(this._notifSource);
|
||||||
|
}
|
||||||
|
let notification = null;
|
||||||
|
// We do not want to have multiple notifications stacked
|
||||||
|
// instead we will update previous
|
||||||
|
if (this._notifSource.notifications.length == 0) {
|
||||||
|
notification = new MessageTray.Notification(this._notifSource, title, message);
|
||||||
|
notification.addAction( _('Update now') , ()=>{this._updateNow();} );
|
||||||
|
} else {
|
||||||
|
notification = this._notifSource.notifications[0];
|
||||||
|
notification.update( title, message, { clear: true });
|
||||||
|
}
|
||||||
|
notification.setTransient(TRANSIENT);
|
||||||
|
this._notifSource.showNotification(notification);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
let archupdateindicator;
|
||||||
|
|
||||||
|
function enable() {
|
||||||
|
archupdateindicator = new ArchUpdateIndicator();
|
||||||
|
Main.panel.addToStatusArea('ArchUpdateIndicator', archupdateindicator);
|
||||||
|
archupdateindicator._positionChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
function disable() {
|
||||||
|
archupdateindicator.destroy();
|
||||||
|
}
|
|
@ -0,0 +1,233 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
id="svg2424"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="arch-error-symbolic.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||||
|
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
|
||||||
|
inkscape:export-xdpi="90"
|
||||||
|
inkscape:export-ydpi="90">
|
||||||
|
<defs
|
||||||
|
id="defs2426">
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="path1082_2_"
|
||||||
|
y2="129.3468"
|
||||||
|
x2="112.49853"
|
||||||
|
y1="6.1372099"
|
||||||
|
x1="112.49854"
|
||||||
|
gradientTransform="translate(287,-83)">
|
||||||
|
<stop
|
||||||
|
id="stop193"
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0" />
|
||||||
|
<stop
|
||||||
|
id="stop195"
|
||||||
|
offset="1"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop197"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop199"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0.5" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop201"
|
||||||
|
style="stop-color:#000000"
|
||||||
|
offset="1" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient3388">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3390" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0.37113401;"
|
||||||
|
offset="1"
|
||||||
|
id="stop3392" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient4346">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#00bdec;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop4348" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#40bfde;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop4350" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4352"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient5323">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#6e6e6e;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop5325" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#4d4d4d;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop5327" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient5329"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient2216"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4175"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4177"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4179"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4178"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4180"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4182"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="19.099013"
|
||||||
|
inkscape:cx="11.847391"
|
||||||
|
inkscape:cy="16.110398"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="g2210"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1016"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-maximized="1" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2429">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-309.51781,-259.60123)">
|
||||||
|
<g
|
||||||
|
id="g2424"
|
||||||
|
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
|
||||||
|
<g
|
||||||
|
id="g2210"
|
||||||
|
transform="matrix(0.125,0,0,0.125,615.71887,519.21715)">
|
||||||
|
<path
|
||||||
|
style="opacity:0.5;fill:#bebebe;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="M 16 0 C 14.575648 3.4921313 13.874892 5.5315986 12.289062 8.9199219 C 13.261376 9.9505728 14.292283 11.394438 16.230469 12.75 C 14.559075 12.634776 12.56221 11.364015 11.5 10.470703 C 9.4704421 14.705691 6.4527056 20.405799 0 32 C 5.0703376 29.072805 9.0009501 27.26729 12.664062 26.578125 C 12.507343 25.90258 12.423624 25.168434 12.429688 24.40625 L 12.433594 24.246094 C 12.514069 20.996846 14.204761 18.498315 16.207031 18.667969 C 18.2093 18.837623 19.767973 21.610127 19.6875 24.859375 C 19.672342 25.471402 19.601188 26.059478 19.480469 26.605469 C 20.527588 26.810387 21.602418 27.117186 22.714844 27.503906 C 22.851836 27.372798 22.997836 27.24113 23.111328 27.109375 C 22.958469 26.467866 22.131057 26.19908 21.730469 25.691406 C 20.938452 24.658507 21.493008 23.2149 21.326172 22.017578 C 21.359051 20.985811 22.680604 21.341489 23.332031 21.359375 C 24.776304 20.867515 26.037158 22.051146 26.765625 23.154297 C 26.914257 23.176727 27.047294 23.14314 27.169922 23.076172 C 19.505866 8.7444787 18.822618 6.6238807 16 0 z "
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,669.75014,435.62316)"
|
||||||
|
id="path2518-5" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
d="m 800.37514,566.24816 16.32812,0 13.35938,12.98828 12.98828,-12.98828 16.69922,0 0,17.4414 -12.98828,12.61718 12.98828,12.6172 0,16.69922 -17.07032,0 -12.61718,-12.6172 -12.6172,12.6172 -17.0703,0 0,-16.69922 12.61718,-12.6172 -12.61718,-12.61718 0,-17.4414 z"
|
||||||
|
id="path3761-2-3-5-4-8-9-8-0-9-3"
|
||||||
|
sodipodi:nodetypes="ccccccccccccccccc"
|
||||||
|
style="color:#bebebe;display:inline;overflow:visible;visibility:visible;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 8.2 KiB |
|
@ -0,0 +1,171 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
id="svg2424"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="arch-lit.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||||
|
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
|
||||||
|
inkscape:export-xdpi="90"
|
||||||
|
inkscape:export-ydpi="90">
|
||||||
|
<defs
|
||||||
|
id="defs2426">
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="path1082_2_"
|
||||||
|
y2="129.3468"
|
||||||
|
x2="112.49853"
|
||||||
|
y1="6.1372099"
|
||||||
|
x1="112.49854"
|
||||||
|
gradientTransform="translate(287,-83)">
|
||||||
|
<stop
|
||||||
|
id="stop193"
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0" />
|
||||||
|
<stop
|
||||||
|
id="stop195"
|
||||||
|
offset="1"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop197"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop199"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0.5" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop201"
|
||||||
|
style="stop-color:#000000"
|
||||||
|
offset="1" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient3388">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3390" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0.37113401;"
|
||||||
|
offset="1"
|
||||||
|
id="stop3392" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient4346">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#00bdec;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop4348" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#40bfde;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop4350" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4352"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient5323">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#6e6e6e;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop5325" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#4d4d4d;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop5327" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient5329"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient2216"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="13.046875"
|
||||||
|
inkscape:cx="33.011995"
|
||||||
|
inkscape:cy="10.162738"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="g2210"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1016"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-maximized="1" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2429">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-309.51781,-259.60123)">
|
||||||
|
<g
|
||||||
|
id="g2424"
|
||||||
|
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
|
||||||
|
<g
|
||||||
|
id="g2210"
|
||||||
|
transform="matrix(0.125,0,0,0.125,615.71887,519.21715)">
|
||||||
|
<path
|
||||||
|
style="fill:#bebebe;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;opacity:1"
|
||||||
|
d="M 764.75015,435.62318 C 756.29306,456.35771 752.13752,468.47084 742.72166,488.58901 C 748.49477,494.7085 754.61058,503.27765 766.11856,511.3263 C 756.19466,510.64216 744.33307,503.09582 738.0262,497.79178 C 725.9757,522.93702 708.06309,556.78261 669.75015,625.62318 C 699.85528,608.24296 723.19329,597.52272 744.94302,593.4308 C 744.0125,589.41975 743.51542,585.06076 743.55142,580.53529 L 743.57461,579.58436 C 744.05243,560.29195 754.09092,545.45692 765.9794,546.46424 C 777.86787,547.47156 787.12249,563.93331 786.64468,583.22572 C 786.55468,586.85963 786.1322,590.35133 785.41543,593.59315 C 806.9311,597.8037 830.04901,608.47618 859.75015,625.62318 C 853.89286,614.83948 848.64665,607.08273 843.65396,597.82475 C 835.78967,591.72939 829.54943,586.24762 810.85855,573.25257 C 822.35934,576.24095 829.13312,577.24831 835.55168,581.10212 C 784.78965,486.59209 782.15758,476.47346 764.75015,435.62318 z "
|
||||||
|
id="path2518"
|
||||||
|
sodipodi:nodetypes="ccccccccsscccccc" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 5.8 KiB |
|
@ -0,0 +1,395 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
id="svg2424"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="arch-unknown-symbolic.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||||
|
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
|
||||||
|
inkscape:export-xdpi="90"
|
||||||
|
inkscape:export-ydpi="90">
|
||||||
|
<defs
|
||||||
|
id="defs2426">
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="path1082_2_"
|
||||||
|
y2="129.3468"
|
||||||
|
x2="112.49853"
|
||||||
|
y1="6.1372099"
|
||||||
|
x1="112.49854"
|
||||||
|
gradientTransform="translate(287,-83)">
|
||||||
|
<stop
|
||||||
|
id="stop193"
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0" />
|
||||||
|
<stop
|
||||||
|
id="stop195"
|
||||||
|
offset="1"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop197"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop199"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0.5" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop201"
|
||||||
|
style="stop-color:#000000"
|
||||||
|
offset="1" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient3388">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3390" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0.37113401;"
|
||||||
|
offset="1"
|
||||||
|
id="stop3392" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient4346">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#00bdec;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop4348" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#40bfde;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop4350" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4352"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient5323">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#6e6e6e;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop5325" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#4d4d4d;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop5327" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient5329"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient2216"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4175"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4177"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4179"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4178"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4180"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4182"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4227"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4229"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4231"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4327"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4329"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4331"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4333"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient4335"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient4337"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4339"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient4341"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient4343"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="8.5075898"
|
||||||
|
inkscape:cx="12.914257"
|
||||||
|
inkscape:cy="21.540601"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="g2210"
|
||||||
|
inkscape:window-width="1120"
|
||||||
|
inkscape:window-height="758"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="39"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-maximized="0" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2429">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-309.51781,-259.60123)">
|
||||||
|
<g
|
||||||
|
id="g2424"
|
||||||
|
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
|
||||||
|
<g
|
||||||
|
id="g2210"
|
||||||
|
transform="matrix(0.125,0,0,0.125,615.71887,519.21715)">
|
||||||
|
<path
|
||||||
|
style="opacity:0.5;fill:#bebebe;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 764.75014,435.62316 c -8.45709,20.73453 -12.61783,32.84387 -22.03369,52.96204 5.77311,6.11949 11.89412,14.69244 23.4021,22.74109 -9.9239,-0.68415 -21.78029,-8.22929 -28.08716,-13.53333 -3.61224,7.5375 -8.08174,16.38763 -13.13904,26.1969 l 80.50415,0 c -22.84531,-44.40456 -27.61856,-57.79418 -40.64636,-88.3667 z m -73.52295,151.15112 c -6.46252,11.76494 -13.29555,24.14838 -21.47705,38.84888 30.10513,-17.38022 53.44314,-28.10046 75.19287,-32.19238 -0.49369,-2.12807 -0.8437,-4.35965 -1.07849,-6.6565 l -52.63733,0 z m 95.16235,0 c -0.20484,2.35415 -0.49575,4.6553 -0.97411,6.81885 21.51566,4.21055 44.63357,14.88303 74.33471,32.03003 -5.85729,-10.7837 -11.1035,-18.53926 -16.09619,-27.79724 -4.34787,-3.36989 -8.41445,-6.6835 -14.14795,-11.05164 l -43.11646,0 z"
|
||||||
|
id="path2518"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<g
|
||||||
|
id="layer10"
|
||||||
|
inkscape:label="devices"
|
||||||
|
style="display:inline"
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,-91.994072,-882.16528)" />
|
||||||
|
<g
|
||||||
|
id="layer11"
|
||||||
|
inkscape:label="apps"
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,-91.994072,-882.16528)" />
|
||||||
|
<g
|
||||||
|
id="layer13"
|
||||||
|
inkscape:label="places"
|
||||||
|
style="display:inline"
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,-91.994072,-882.16528)" />
|
||||||
|
<g
|
||||||
|
id="layer14"
|
||||||
|
inkscape:label="mimetypes"
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,-91.994072,-882.16528)" />
|
||||||
|
<g
|
||||||
|
id="layer15"
|
||||||
|
inkscape:label="emblems"
|
||||||
|
style="display:inline"
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,-91.994072,-882.16528)" />
|
||||||
|
<g
|
||||||
|
id="g71291"
|
||||||
|
inkscape:label="emotes"
|
||||||
|
style="display:inline"
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,-91.994072,-882.16528)" />
|
||||||
|
<g
|
||||||
|
id="g4953"
|
||||||
|
inkscape:label="categories"
|
||||||
|
style="display:inline"
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,-91.994072,-882.16528)" />
|
||||||
|
<g
|
||||||
|
id="layer12"
|
||||||
|
inkscape:label="actions"
|
||||||
|
style="display:inline"
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,-91.994072,-882.16528)" />
|
||||||
|
<circle
|
||||||
|
style="display:inline;fill:#bebebe;fill-opacity:1;stroke:none"
|
||||||
|
id="path4955-3"
|
||||||
|
cx="713.86914"
|
||||||
|
cy="555.5733"
|
||||||
|
r="19.028032" />
|
||||||
|
<circle
|
||||||
|
style="display:inline;fill:#bebebe;fill-opacity:1;stroke:none"
|
||||||
|
id="path4957-3"
|
||||||
|
cx="764.6106"
|
||||||
|
cy="555.5733"
|
||||||
|
r="19.028032" />
|
||||||
|
<circle
|
||||||
|
style="display:inline;fill:#bebebe;fill-opacity:1;stroke:none"
|
||||||
|
id="path4959-7"
|
||||||
|
cx="815.35138"
|
||||||
|
cy="555.5733"
|
||||||
|
r="19.028032" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 12 KiB |
|
@ -0,0 +1,316 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
id="svg2424"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="arch-updates-symbolic.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||||
|
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
|
||||||
|
inkscape:export-xdpi="90"
|
||||||
|
inkscape:export-ydpi="90">
|
||||||
|
<defs
|
||||||
|
id="defs2426">
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="path1082_2_"
|
||||||
|
y2="129.3468"
|
||||||
|
x2="112.49853"
|
||||||
|
y1="6.1372099"
|
||||||
|
x1="112.49854"
|
||||||
|
gradientTransform="translate(287,-83)">
|
||||||
|
<stop
|
||||||
|
id="stop193"
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0" />
|
||||||
|
<stop
|
||||||
|
id="stop195"
|
||||||
|
offset="1"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop197"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop199"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0.5" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop201"
|
||||||
|
style="stop-color:#000000"
|
||||||
|
offset="1" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient3388">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3390" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0.37113401;"
|
||||||
|
offset="1"
|
||||||
|
id="stop3392" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient4346">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#00bdec;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop4348" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#40bfde;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop4350" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4352"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient5323">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#6e6e6e;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop5325" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#4d4d4d;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop5327" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient5329"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient2216"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4175"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4177"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4179"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4178"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4180"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4182"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="666.97791"
|
||||||
|
x2="616.48553"
|
||||||
|
y1="634.15063"
|
||||||
|
x1="400.6142"
|
||||||
|
id="linearGradient4218"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
y2="348.96875"
|
||||||
|
x2="650.81366"
|
||||||
|
y1="238.08237"
|
||||||
|
x1="291.83591"
|
||||||
|
id="linearGradient4220"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
y2="303.14029"
|
||||||
|
x2="606.91248"
|
||||||
|
y1="104.50665"
|
||||||
|
x1="541.33502"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="linearGradient4222"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
inkscape:collect="always" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4224"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient4226"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient4228"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4230"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient4232"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient4234"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="15.334304"
|
||||||
|
inkscape:cx="25.157108"
|
||||||
|
inkscape:cy="16.538462"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="g2210"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1016"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-maximized="1" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2429">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-309.51781,-259.60123)">
|
||||||
|
<g
|
||||||
|
id="g2424"
|
||||||
|
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
|
||||||
|
<g
|
||||||
|
id="g2210"
|
||||||
|
transform="matrix(0.125,0,0,0.125,615.71887,519.21715)">
|
||||||
|
<path
|
||||||
|
style="opacity:1;fill:#bebebe;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="M 16 0 C 14.575648 3.4921313 13.874892 5.5315986 12.289062 8.9199219 C 13.261376 9.9505728 14.292283 11.394438 16.230469 12.75 C 14.559075 12.634776 12.56221 11.364015 11.5 10.470703 C 9.4704421 14.705691 6.4527056 20.405799 0 32 C 5.0703376 29.072805 9.0009501 27.26729 12.664062 26.578125 C 12.507343 25.90258 12.423624 25.168434 12.429688 24.40625 L 12.433594 24.246094 C 12.514069 20.996846 14.204761 18.498315 16.207031 18.667969 C 16.481435 18.691219 16.74729 18.767263 17.001953 18.882812 C 18.450106 16.938038 20.657331 15.557946 23.095703 15.357422 C 19.073949 7.5647648 18.231889 5.2376076 16 0 z M 30.580078 29.544922 C 30.256528 29.935888 29.898689 30.29783 29.515625 30.628906 C 30.326189 31.06681 31.126252 31.49557 32 32 C 31.502931 31.08486 31.032591 30.298758 30.580078 29.544922 z "
|
||||||
|
transform="matrix(5.9375001,0,0,5.9375001,669.75014,435.62316)"
|
||||||
|
id="path2518-4" />
|
||||||
|
<path
|
||||||
|
style="opacity:1;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.36800003;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
d="m 812.26174,530.61156 a 47.50333,47.50333 0 0 0 -47.5116,47.50001 47.50333,47.50333 0 0 0 47.5116,47.51159 47.50333,47.50333 0 0 0 47.5,-47.51159 47.50333,47.50333 0 0 0 -47.5,-47.50001 z m -0.0232,6.6333 8.24524,7.88575 22.94983,22.94982 c 2.5654,2.59246 3.79833,6.42955 3.22388,10.03114 l 0,9.68322 -10.04273,0 -12.9071,0.0464 0,31.14868 -22.93823,0 0,-31.14868 -11.48072,-0.0464 -1.78588,0 -9.68324,0 0,-8.96424 c -0.0194,-0.35793 -0.0194,-0.72053 0,-1.07848 -0.45987,-3.49008 0.76128,-7.15559 3.22388,-9.67164 l 22.94983,-22.94982 8.24524,-7.88575 z"
|
||||||
|
id="path4241"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,171 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="32"
|
||||||
|
height="32"
|
||||||
|
id="svg2424"
|
||||||
|
sodipodi:version="0.32"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
version="1.0"
|
||||||
|
sodipodi:docname="arch-fade.svg"
|
||||||
|
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||||
|
inkscape:export-filename="/home/thayer/archlinux-logo-contest/archer-full-detail.png"
|
||||||
|
inkscape:export-xdpi="90"
|
||||||
|
inkscape:export-ydpi="90">
|
||||||
|
<defs
|
||||||
|
id="defs2426">
|
||||||
|
<linearGradient
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
id="path1082_2_"
|
||||||
|
y2="129.3468"
|
||||||
|
x2="112.49853"
|
||||||
|
y1="6.1372099"
|
||||||
|
x1="112.49854"
|
||||||
|
gradientTransform="translate(287,-83)">
|
||||||
|
<stop
|
||||||
|
id="stop193"
|
||||||
|
offset="0"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0" />
|
||||||
|
<stop
|
||||||
|
id="stop195"
|
||||||
|
offset="1"
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0.27450982;" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop197"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop199"
|
||||||
|
style="stop-color:#FFFFFF"
|
||||||
|
offset="0.5" />
|
||||||
|
<midPointStop
|
||||||
|
id="midPointStop201"
|
||||||
|
style="stop-color:#000000"
|
||||||
|
offset="1" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient3388">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0;"
|
||||||
|
offset="0"
|
||||||
|
id="stop3390" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#000000;stop-opacity:0.37113401;"
|
||||||
|
offset="1"
|
||||||
|
id="stop3392" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient4346">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#00bdec;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop4348" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#40bfde;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop4350" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient4346"
|
||||||
|
id="linearGradient4352"
|
||||||
|
x1="400.6142"
|
||||||
|
y1="634.15063"
|
||||||
|
x2="616.48553"
|
||||||
|
y2="666.97791"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient5323">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#6e6e6e;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop5325" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#4d4d4d;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop5327" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient5323"
|
||||||
|
id="linearGradient5329"
|
||||||
|
x1="291.83591"
|
||||||
|
y1="238.08237"
|
||||||
|
x2="650.81366"
|
||||||
|
y2="348.96875"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#path1082_2_"
|
||||||
|
id="linearGradient2216"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(-0.3937741,0,0,0.393752,978.34967,416.9815)"
|
||||||
|
x1="541.33502"
|
||||||
|
y1="104.50665"
|
||||||
|
x2="606.91248"
|
||||||
|
y2="303.14029" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
gridtolerance="10000"
|
||||||
|
guidetolerance="10"
|
||||||
|
objecttolerance="10"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="13.046875"
|
||||||
|
inkscape:cx="33.011995"
|
||||||
|
inkscape:cy="10.162738"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="g2210"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1016"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-maximized="1" />
|
||||||
|
<metadata
|
||||||
|
id="metadata2429">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-309.51781,-259.60123)">
|
||||||
|
<g
|
||||||
|
id="g2424"
|
||||||
|
transform="matrix(1.3473684,0,0,1.3473684,-632.88236,-513.34366)">
|
||||||
|
<g
|
||||||
|
id="g2210"
|
||||||
|
transform="matrix(0.125,0,0,0.125,615.71887,519.21715)">
|
||||||
|
<path
|
||||||
|
style="fill:#bebebe;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;opacity:0.35"
|
||||||
|
d="M 764.75015,435.62318 C 756.29306,456.35771 752.13752,468.47084 742.72166,488.58901 C 748.49477,494.7085 754.61058,503.27765 766.11856,511.3263 C 756.19466,510.64216 744.33307,503.09582 738.0262,497.79178 C 725.9757,522.93702 708.06309,556.78261 669.75015,625.62318 C 699.85528,608.24296 723.19329,597.52272 744.94302,593.4308 C 744.0125,589.41975 743.51542,585.06076 743.55142,580.53529 L 743.57461,579.58436 C 744.05243,560.29195 754.09092,545.45692 765.9794,546.46424 C 777.86787,547.47156 787.12249,563.93331 786.64468,583.22572 C 786.55468,586.85963 786.1322,590.35133 785.41543,593.59315 C 806.9311,597.8037 830.04901,608.47618 859.75015,625.62318 C 853.89286,614.83948 848.64665,607.08273 843.65396,597.82475 C 835.78967,591.72939 829.54943,586.24762 810.85855,573.25257 C 822.35934,576.24095 829.13312,577.24831 835.55168,581.10212 C 784.78965,486.59209 782.15758,476.47346 764.75015,435.62318 z "
|
||||||
|
id="path2518"
|
||||||
|
sodipodi:nodetypes="ccccccccsscccccc" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 5.8 KiB |
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"_generated": "Generated by SweetTooth, do not edit",
|
||||||
|
"description": "Update indicator for Arch Linux and GNOME Shell.\n** Note : you now need to install the package pacman-contrib to use the checkupdates script. **\n Can support AUR or other distros by changing command used to check for and apply updates.",
|
||||||
|
"name": "Arch Linux Updates Indicator",
|
||||||
|
"shell-version": [
|
||||||
|
"40",
|
||||||
|
"41"
|
||||||
|
],
|
||||||
|
"url": "https://github.com/RaphaelRochet/arch-update",
|
||||||
|
"uuid": "arch-update@RaphaelRochet",
|
||||||
|
"version": 45
|
||||||
|
}
|
|
@ -0,0 +1,67 @@
|
||||||
|
/*
|
||||||
|
This file is part of Arch Linux Updates Indicator
|
||||||
|
|
||||||
|
Arch Linux Updates Indicator is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
Arch Linux Updates Indicator is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Arch Linux Updates Indicator. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Copyright 2016 Raphaël Rochet
|
||||||
|
*/
|
||||||
|
|
||||||
|
const GObject = imports.gi.GObject;
|
||||||
|
const Gtk = imports.gi.Gtk;
|
||||||
|
const Gio = imports.gi.Gio;
|
||||||
|
const Lang = imports.lang;
|
||||||
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
|
const Me = ExtensionUtils.getCurrentExtension();
|
||||||
|
|
||||||
|
const Gettext = imports.gettext.domain('arch-update');
|
||||||
|
const _ = Gettext.gettext;
|
||||||
|
|
||||||
|
let settings;
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
settings = ExtensionUtils.getSettings('org.gnome.shell.extensions.arch-update');
|
||||||
|
ExtensionUtils.initTranslations("arch-update");
|
||||||
|
}
|
||||||
|
|
||||||
|
function buildPrefsWidget(){
|
||||||
|
|
||||||
|
// Prepare labels and controls
|
||||||
|
let buildable = new Gtk.Builder();
|
||||||
|
buildable.add_from_file( Me.dir.get_path() + '/prefs.xml' );
|
||||||
|
let box = buildable.get_object('prefs_widget');
|
||||||
|
|
||||||
|
let version_label = buildable.get_object('version_info');
|
||||||
|
version_label.set_text('[Arch-update v' + Me.metadata.version.toString() + ']');
|
||||||
|
|
||||||
|
// Bind fields to settings
|
||||||
|
settings.bind('boot-wait' , buildable.get_object('field_wait') , 'value' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('check-interval' , buildable.get_object('field_interval') , 'value' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('always-visible' , buildable.get_object('field_visible') , 'active' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('use-buildin-icons' , buildable.get_object('field_buildinicons') , 'active' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('show-count' , buildable.get_object('field_count') , 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('notify' , buildable.get_object('field_notify') , 'active' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('howmuch', buildable.get_object('field_howmuch'), 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('transient', buildable.get_object('field_transient'), 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('strip-versions' , buildable.get_object('field_stripversions') , 'active' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('check-cmd' , buildable.get_object('field_checkcmd') , 'text' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('update-cmd' , buildable.get_object('field_updatecmd') , 'text' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('pacman-dir' , buildable.get_object('field_pacmandir') , 'text' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('auto-expand-list', buildable.get_object('field_autoexpandlist'), 'value', Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('package-manager' , buildable.get_object('field_packagemanager') , 'text' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('position' , buildable.get_object('field_position') , 'active' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
settings.bind('position-number' , buildable.get_object('field_positionnumber') , 'value' , Gio.SettingsBindFlags.DEFAULT);
|
||||||
|
|
||||||
|
return box;
|
||||||
|
};
|
||||||
|
|
|
@ -0,0 +1,459 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
This file is part of Arch Linux Updates Indicator
|
||||||
|
|
||||||
|
Arch Linux Updates Indicator is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
Arch Linux Updates Indicator is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Arch Linux Updates Indicator. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Copyright 2016 Raphaël Rochet
|
||||||
|
-->
|
||||||
|
<interface domain="arch-update">
|
||||||
|
|
||||||
|
<object class="GtkAdjustment" id="Adjust_1">
|
||||||
|
<property name="lower">5</property>
|
||||||
|
<property name="upper">5000</property>
|
||||||
|
<property name="step_increment">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkAdjustment" id="Adjust_2">
|
||||||
|
<property name="lower">30</property>
|
||||||
|
<property name="upper">2000</property>
|
||||||
|
<property name="step_increment">30</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkAdjustment" id="Adjust_3">
|
||||||
|
<property name="lower">0</property>
|
||||||
|
<property name="upper">99</property>
|
||||||
|
<property name="step_increment">1</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkAdjustment" id="Adjust_4">
|
||||||
|
<property name="lower">0</property>
|
||||||
|
<property name="upper">99</property>
|
||||||
|
<property name="step_increment">1</property>
|
||||||
|
</object>
|
||||||
|
|
||||||
|
<object class="GtkNotebook" id="prefs_widget">
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid">
|
||||||
|
<property name="margin-top">18</property>
|
||||||
|
<property name="margin-start">18</property>
|
||||||
|
<property name="margin-end">18</property>
|
||||||
|
<property name="margin-bottom">18</property>
|
||||||
|
<property name="row-spacing">18</property>
|
||||||
|
<property name="row-homogeneous">false</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">horizontal</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Checking for updates</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel" id="version_info">
|
||||||
|
<property name="label">Version info placeholder</property>
|
||||||
|
<property name="hexpand">false</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Time to wait before first check (seconds)</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSpinButton" id="field_wait">
|
||||||
|
<property name="adjustment">Adjust_1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Interval between updates check (minutes)</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSpinButton" id="field_interval">
|
||||||
|
<property name="adjustment">Adjust_2</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property translatable="yes" name="label">Strip out versions numbers</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch" id="field_stripversions">
|
||||||
|
<property name="active">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Indicator</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Always visible</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch" id="field_visible">
|
||||||
|
<property name="active">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Use built-in icons</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch" id="field_buildinicons">
|
||||||
|
<property name="active">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Show updates count on indicator</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch" id="field_count">
|
||||||
|
<property name="active">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Auto-expand updates list if updates count is less than this number (0 to disable)</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="wrap">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSpinButton" id="field_autoexpandlist">
|
||||||
|
<property name="adjustment">Adjust_3</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Position in Panel</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="xalign">0</property>
|
||||||
|
<property name="wrap">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="hexpand">false</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkComboBoxText" id="field_position">
|
||||||
|
<items>
|
||||||
|
<item translatable="yes" id="0">Left</item>
|
||||||
|
<item translatable="yes" id="1">Center</item>
|
||||||
|
<item translatable="yes" id="2">Right</item>
|
||||||
|
</items>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSpinButton" id="field_positionnumber">
|
||||||
|
<property name="adjustment">Adjust_4</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Notification</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
|
||||||
|
</attributes>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Send a notification when new updates are available</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch" id="field_notify">
|
||||||
|
<property name="active">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property translatable="yes" name="label">Use transient notifications (auto dismiss)</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch" id="field_transient">
|
||||||
|
<property name="active">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="spacing">12</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property translatable="yes" name="label">How much information to show on notifications</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkComboBoxText" id="field_howmuch">
|
||||||
|
<items>
|
||||||
|
<item translatable="yes" id="0">Count only</item>
|
||||||
|
<item translatable="yes" id="1">New updates names</item>
|
||||||
|
<item translatable="yes" id="2">All updates names</item>
|
||||||
|
</items>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child type="tab">
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Basic settings</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkGrid">
|
||||||
|
<property name="margin-top">18</property>
|
||||||
|
<property name="margin-start">18</property>
|
||||||
|
<property name="margin-end">18</property>
|
||||||
|
<property name="margin-bottom">18</property>
|
||||||
|
<property name="row-spacing">18</property>
|
||||||
|
<property name="row-homogeneous">false</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Command to check for package updates</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkEntry" id="field_checkcmd">
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Command to update packages</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkEntry" id="field_updatecmd">
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Pacman local directory path - To detect when new packages are installed</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkEntry" id="field_pacmandir">
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Command to open package manager (optional)</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
<property name="halign">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkEntry" id="field_packagemanager">
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child type="tab">
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label" translatable="yes">Advanced settings</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
</object>
|
||||||
|
|
||||||
|
</interface>
|
|
@ -0,0 +1,111 @@
|
||||||
|
<schemalist gettext-domain="gnome-shell-extensions">
|
||||||
|
<schema id="org.gnome.shell.extensions.arch-update"
|
||||||
|
path="/org/gnome/shell/extensions/arch-update/">
|
||||||
|
|
||||||
|
<key type="i" name="boot-wait">
|
||||||
|
<default>15</default>
|
||||||
|
<summary>Time to wait before first check (seconds)</summary>
|
||||||
|
<description>A first check is made this number of seconds after startup</description>
|
||||||
|
<range min="5" max="5000"/>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key type="i" name="check-interval">
|
||||||
|
<default>60</default>
|
||||||
|
<summary>Interval between updates check (minutes)</summary>
|
||||||
|
<description>Time to wait between two automatic checks</description>
|
||||||
|
<range min="30" max="2000"/>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="always-visible" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Indicator is always visble</summary>
|
||||||
|
<description>
|
||||||
|
If true, the indicator is always visible, even when non updates are pending
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="use-buildin-icons" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Use build-in icons</summary>
|
||||||
|
<description>
|
||||||
|
If true, the build-in status icons are used instead of theme icons
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="show-count" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show updates count on indicator</summary>
|
||||||
|
<description>
|
||||||
|
If true, the indicator will display the number of updates pending
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="notify" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Send a notification when new updates are available</summary>
|
||||||
|
<description>Send a notification when new updates are available</description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="howmuch" type="i">
|
||||||
|
<default>0</default>
|
||||||
|
<summary>How much information to show on notifications</summary>
|
||||||
|
<description>0:count, 1:list</description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="transient" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Use transient notifications (auto dismiss)</summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="check-cmd" type="s">
|
||||||
|
<default>"/usr/bin/checkupdates"</default>
|
||||||
|
<summary>Command to run to check for updated packages.</summary>
|
||||||
|
<description>Command to run to check for updated packages.</description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="update-cmd" type="s">
|
||||||
|
<default>"gnome-terminal -e 'sh -c \"sudo pacman -Syu ; echo Done - Press enter to exit; read _\" '"</default>
|
||||||
|
<summary>Command to run to update packages.</summary>
|
||||||
|
<description>Command to run to update packages.</description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="pacman-dir" type="s">
|
||||||
|
<default>"/var/lib/pacman/local"</default>
|
||||||
|
<summary>Pacman directory to monitor</summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="strip-versions" type="b">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Remove version numbers from checkupdates output</summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="auto-expand-list" type="i">
|
||||||
|
<default>0</default>
|
||||||
|
<summary>Auto-open list submenu when updates count is lower than this number</summary>
|
||||||
|
<description></description>
|
||||||
|
<range min="0" max="100"/>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="package-manager" type="s">
|
||||||
|
<default>""</default>
|
||||||
|
<summary>Command to run to open package manager.</summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="position" type="i">
|
||||||
|
<default>2</default>
|
||||||
|
<summary>Position in the panel</summary>
|
||||||
|
<description>Position where the arch update will be displayed (left/center/right)</description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
<key name="position-number" type="i">
|
||||||
|
<default>-0</default>
|
||||||
|
<summary>Position of the arch update inside the box</summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
|
||||||
|
</schema>
|
||||||
|
</schemalist>
|
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
This file is part of Arch Linux Updates Indicator
|
||||||
|
|
||||||
|
Arch Linux Updates Indicator is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
Arch Linux Updates Indicator is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Arch Linux Updates Indicator. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Copyright 2016 Raphaël Rochet
|
||||||
|
*/
|
||||||
|
|
||||||
|
.arch-updates-list {
|
||||||
|
margin: 10px;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.arch-updates-menubutton {
|
||||||
|
/* Meant to be used as an override to display a small system-menu-action */
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 0px 4px;
|
||||||
|
}
|
||||||
|
.arch-updates-menubutton:hover, .arch-updates-menubutton:focus {
|
||||||
|
/* 1px borders disapears, need to compensate */
|
||||||
|
padding: 1px 5px;
|
||||||
|
}
|
||||||
|
.arch-updates-menubutton > StIcon {
|
||||||
|
icon-size: 16px;
|
||||||
|
}
|
|
@ -0,0 +1,339 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License.
|
|
@ -0,0 +1,45 @@
|
||||||
|
# Dash to Dock
|
||||||
|

|
||||||
|
|
||||||
|
## A dock for the GNOME Shell
|
||||||
|
This extension enhances the dash moving it out of the overview and transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops without having to leave the desktop view.
|
||||||
|
|
||||||
|
[<img src="https://micheleg.github.io/dash-to-dock/media/get-it-on-ego.png" height="100">](https://extensions.gnome.org/extension/307/dash-to-dock)
|
||||||
|
|
||||||
|
For additional installation instructions and more information visit [https://micheleg.github.io/dash-to-dock/](https://micheleg.github.io/dash-to-dock/).
|
||||||
|
|
||||||
|
## Installation from source
|
||||||
|
|
||||||
|
The extension can be installed directly from source, either for the convenience of using git or to test the latest development version. Clone the desired branch with git
|
||||||
|
|
||||||
|
### Build Dependencies
|
||||||
|
|
||||||
|
To compile the stylesheet you'll need an implementation of SASS. Dash to Dock supports `dart-sass` (`sass`), `sassc`, and `ruby-sass`. Every distro should have at least one of these implementations, we recommend using `dart-sass` (`sass`) or `sassc` over `ruby-sass` as `ruby-sass` is deprecated.
|
||||||
|
|
||||||
|
By default, Dash to Dock will attempt to build with `dart-sass`. To change this behavior set the `SASS` environment variable to either `sassc` or `ruby`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export SASS=sassc
|
||||||
|
# or...
|
||||||
|
export SASS=ruby
|
||||||
|
```
|
||||||
|
|
||||||
|
### Building
|
||||||
|
|
||||||
|
Clone the repository or download the branch from github. A simple Makefile is included.
|
||||||
|
|
||||||
|
Next use `make` to install the extension into your home directory. A Shell reload is required `Alt+F2 r Enter` under Xorg or under Wayland you may have to logout and login. The extension has to be enabled with *gnome-extensions-app* (GNOME Extensions) or with *dconf*.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/micheleg/dash-to-dock.git
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
|
||||||
|
## Bug Reporting
|
||||||
|
|
||||||
|
Bugs should be reported to the Github bug tracker [https://github.com/micheleg/dash-to-dock/issues](https://github.com/micheleg/dash-to-dock/issues).
|
||||||
|
|
||||||
|
## License
|
||||||
|
Dash to Dock Gnome Shell extension is distributed under the terms of the GNU General Public License,
|
||||||
|
version 2 or later. See the COPYING file for details.
|
|
@ -0,0 +1,274 @@
|
||||||
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
|
const Atk = imports.gi.Atk;
|
||||||
|
const Clutter = imports.gi.Clutter;
|
||||||
|
let Dbusmenu = null; /* Dynamically imported */
|
||||||
|
const Gio = imports.gi.Gio;
|
||||||
|
const GLib = imports.gi.GLib;
|
||||||
|
const St = imports.gi.St;
|
||||||
|
|
||||||
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
|
|
||||||
|
const Me = imports.misc.extensionUtils.getCurrentExtension();
|
||||||
|
const Utils = Me.imports.utils;
|
||||||
|
|
||||||
|
// Dbusmenu features not (yet) supported:
|
||||||
|
//
|
||||||
|
// * The CHILD_DISPLAY property
|
||||||
|
//
|
||||||
|
// This seems to have only one possible value in the Dbusmenu API, so
|
||||||
|
// there's little point in depending on it--the code in libdbusmenu sets it
|
||||||
|
// if and only if an item has children, so for our purposes it's simpler
|
||||||
|
// and more intuitive to just check children.length. (This does ignore the
|
||||||
|
// possibility of a program not using libdbusmenu and setting CHILD_DISPLAY
|
||||||
|
// independently, perhaps to indicate that an childless menu item should
|
||||||
|
// nevertheless be displayed like a submenu.)
|
||||||
|
//
|
||||||
|
// * Children more than two levels deep
|
||||||
|
//
|
||||||
|
// PopupMenu doesn't seem to support submenus in submenus.
|
||||||
|
//
|
||||||
|
// * Shortcut keys
|
||||||
|
//
|
||||||
|
// If these keys are supposed to be installed as global shortcuts, we'd
|
||||||
|
// have to query these aggressively and not wait for the DBus menu to be
|
||||||
|
// mapped to a popup menu. A shortcut key that only works once the popup
|
||||||
|
// menu is open and has key focus is possibly of marginal value.
|
||||||
|
|
||||||
|
function haveDBusMenu() {
|
||||||
|
if (Dbusmenu)
|
||||||
|
return Dbusmenu;
|
||||||
|
|
||||||
|
try {
|
||||||
|
Dbusmenu = imports.gi.Dbusmenu;
|
||||||
|
return Dbusmenu;
|
||||||
|
} catch (e) {
|
||||||
|
log(`Failed to import DBusMenu, quicklists are not avaialble: ${e}`);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function makePopupMenuItem(dbusmenuItem, deep) {
|
||||||
|
// These are the only properties guaranteed to be available when the root
|
||||||
|
// item is first announced. Other properties might be loaded already, but
|
||||||
|
// be sure to connect to Dbusmenu.MENUITEM_SIGNAL_PROPERTY_CHANGED to get
|
||||||
|
// the most up-to-date values in case they aren't.
|
||||||
|
const itemType = dbusmenuItem.property_get(Dbusmenu.MENUITEM_PROP_TYPE);
|
||||||
|
const label = dbusmenuItem.property_get(Dbusmenu.MENUITEM_PROP_LABEL);
|
||||||
|
const visible = dbusmenuItem.property_get_bool(Dbusmenu.MENUITEM_PROP_VISIBLE);
|
||||||
|
const enabled = dbusmenuItem.property_get_bool(Dbusmenu.MENUITEM_PROP_ENABLED);
|
||||||
|
const accessibleDesc = dbusmenuItem.property_get(Dbusmenu.MENUITEM_PROP_ACCESSIBLE_DESC);
|
||||||
|
//const childDisplay = dbusmenuItem.property_get(Dbusmenu.MENUITEM_PROP_CHILD_DISPLAY);
|
||||||
|
|
||||||
|
let item;
|
||||||
|
const signalsHandler = new Utils.GlobalSignalsHandler();
|
||||||
|
const wantIcon = itemType === Dbusmenu.CLIENT_TYPES_IMAGE;
|
||||||
|
|
||||||
|
// If the basic type of the menu item needs to change, call this.
|
||||||
|
const recreateItem = () => {
|
||||||
|
const newItem = makePopupMenuItem(dbusmenuItem, deep);
|
||||||
|
const parentMenu = item._parent;
|
||||||
|
parentMenu.addMenuItem(newItem);
|
||||||
|
// Reminder: Clutter thinks of later entries in the child list as
|
||||||
|
// "above" earlier ones, so "above" here means "below" in terms of the
|
||||||
|
// menu's vertical order.
|
||||||
|
parentMenu.actor.set_child_above_sibling(newItem.actor, item.actor);
|
||||||
|
if (newItem.menu) {
|
||||||
|
parentMenu.actor.set_child_above_sibling(newItem.menu.actor, newItem.actor);
|
||||||
|
}
|
||||||
|
parentMenu.actor.remove_child(item.actor);
|
||||||
|
item.destroy();
|
||||||
|
item = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
const updateDisposition = () => {
|
||||||
|
const disposition = dbusmenuItem.property_get(Dbusmenu.MENUITEM_PROP_DISPOSITION);
|
||||||
|
let icon_name = null;
|
||||||
|
switch (disposition) {
|
||||||
|
case Dbusmenu.MENUITEM_DISPOSITION_ALERT:
|
||||||
|
case Dbusmenu.MENUITEM_DISPOSITION_WARNING:
|
||||||
|
icon_name = 'dialog-warning-symbolic';
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_DISPOSITION_INFORMATIVE:
|
||||||
|
icon_name = 'dialog-information-symbolic';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (icon_name) {
|
||||||
|
item._dispositionIcon = new St.Icon({
|
||||||
|
icon_name,
|
||||||
|
style_class: 'popup-menu-icon',
|
||||||
|
y_align: Clutter.ActorAlign.CENTER,
|
||||||
|
y_expand: true,
|
||||||
|
});
|
||||||
|
let expander;
|
||||||
|
for (let child = item.label.get_next_sibling();; child = child.get_next_sibling()) {
|
||||||
|
if (!child) {
|
||||||
|
expander = new St.Bin({
|
||||||
|
style_class: 'popup-menu-item-expander',
|
||||||
|
x_expand: true,
|
||||||
|
});
|
||||||
|
item.actor.add_child(expander);
|
||||||
|
break;
|
||||||
|
} else if (child instanceof St.Widget && child.has_style_class_name('popup-menu-item-expander')) {
|
||||||
|
expander = child;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
item.actor.insert_child_above(item._dispositionIcon, expander);
|
||||||
|
} else if (item._dispositionIcon) {
|
||||||
|
item.actor.remove_child(item._dispositionIcon);
|
||||||
|
item._dispositionIcon = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const updateIcon = () => {
|
||||||
|
if (!wantIcon) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const iconData = dbusmenuItem.property_get_byte_array(Dbusmenu.MENUITEM_PROP_ICON_DATA);
|
||||||
|
const iconName = dbusmenuItem.property_get(Dbusmenu.MENUITEM_PROP_ICON_NAME);
|
||||||
|
if (iconName) {
|
||||||
|
item.icon.icon_name = iconName;
|
||||||
|
} else if (iconData.length) {
|
||||||
|
item.icon.gicon = Gio.BytesIcon.new(iconData);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const updateOrnament = () => {
|
||||||
|
const toggleType = dbusmenuItem.property_get(Dbusmenu.MENUITEM_PROP_TOGGLE_TYPE);
|
||||||
|
switch (toggleType) {
|
||||||
|
case Dbusmenu.MENUITEM_TOGGLE_CHECK:
|
||||||
|
item.actor.accessible_role = Atk.Role.CHECK_MENU_ITEM;
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_TOGGLE_RADIO:
|
||||||
|
item.actor.accessible_role = Atk.Role.RADIO_MENU_ITEM;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
item.actor.accessible_role = Atk.Role.MENU_ITEM;
|
||||||
|
}
|
||||||
|
let ornament = PopupMenu.Ornament.NONE;
|
||||||
|
const state = dbusmenuItem.property_get_int(Dbusmenu.MENUITEM_PROP_TOGGLE_STATE);
|
||||||
|
if (state === Dbusmenu.MENUITEM_TOGGLE_STATE_UNKNOWN) {
|
||||||
|
// PopupMenu doesn't natively support an "unknown" ornament, but we
|
||||||
|
// can hack one in:
|
||||||
|
item.setOrnament(ornament);
|
||||||
|
item.actor.add_accessible_state(Atk.StateType.INDETERMINATE);
|
||||||
|
item._ornamentLabel.text = '\u2501';
|
||||||
|
item.actor.remove_style_pseudo_class('checked');
|
||||||
|
} else {
|
||||||
|
item.actor.remove_accessible_state(Atk.StateType.INDETERMINATE);
|
||||||
|
if (state === Dbusmenu.MENUITEM_TOGGLE_STATE_CHECKED) {
|
||||||
|
if (toggleType === Dbusmenu.MENUITEM_TOGGLE_CHECK) {
|
||||||
|
ornament = PopupMenu.Ornament.CHECK;
|
||||||
|
} else if (toggleType === Dbusmenu.MENUITEM_TOGGLE_RADIO) {
|
||||||
|
ornament = PopupMenu.Ornament.DOT;
|
||||||
|
}
|
||||||
|
item.actor.add_style_pseudo_class('checked');
|
||||||
|
} else {
|
||||||
|
item.actor.remove_style_pseudo_class('checked');
|
||||||
|
}
|
||||||
|
item.setOrnament(ornament);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const onPropertyChanged = (dbusmenuItem, name, value) => {
|
||||||
|
// `value` is null when a property is cleared, so handle those cases
|
||||||
|
// with sensible defaults.
|
||||||
|
switch (name) {
|
||||||
|
case Dbusmenu.MENUITEM_PROP_TYPE:
|
||||||
|
recreateItem();
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_PROP_ENABLED:
|
||||||
|
item.setSensitive(value ? value.unpack() : false);
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_PROP_LABEL:
|
||||||
|
item.label.text = value ? value.unpack() : '';
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_PROP_VISIBLE:
|
||||||
|
item.actor.visible = value ? value.unpack() : false;
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_PROP_DISPOSITION:
|
||||||
|
updateDisposition();
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_PROP_ACCESSIBLE_DESC:
|
||||||
|
item.actor.get_accessible().accessible_description = value && value.unpack() || '';
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_PROP_ICON_DATA:
|
||||||
|
case Dbusmenu.MENUITEM_PROP_ICON_NAME:
|
||||||
|
updateIcon();
|
||||||
|
break;
|
||||||
|
case Dbusmenu.MENUITEM_PROP_TOGGLE_TYPE:
|
||||||
|
case Dbusmenu.MENUITEM_PROP_TOGGLE_STATE:
|
||||||
|
updateOrnament();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Start actually building the menu item.
|
||||||
|
const children = dbusmenuItem.get_children();
|
||||||
|
if (children.length && !deep) {
|
||||||
|
// Make a submenu.
|
||||||
|
item = new PopupMenu.PopupSubMenuMenuItem(label, wantIcon);
|
||||||
|
const updateChildren = () => {
|
||||||
|
const children = dbusmenuItem.get_children();
|
||||||
|
if (!children.length) {
|
||||||
|
return recreateItem();
|
||||||
|
}
|
||||||
|
item.menu.removeAll();
|
||||||
|
children.forEach(remoteChild =>
|
||||||
|
item.menu.addMenuItem(makePopupMenuItem(remoteChild, true)));
|
||||||
|
};
|
||||||
|
updateChildren();
|
||||||
|
signalsHandler.add(
|
||||||
|
[dbusmenuItem, Dbusmenu.MENUITEM_SIGNAL_CHILD_ADDED, updateChildren],
|
||||||
|
[dbusmenuItem, Dbusmenu.MENUITEM_SIGNAL_CHILD_MOVED, updateChildren],
|
||||||
|
[dbusmenuItem, Dbusmenu.MENUITEM_SIGNAL_CHILD_REMOVED, updateChildren]);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// Don't make a submenu.
|
||||||
|
if (!deep) {
|
||||||
|
// We only have the potential to get a submenu if we aren't deep.
|
||||||
|
signalsHandler.add(
|
||||||
|
[dbusmenuItem, Dbusmenu.MENUITEM_SIGNAL_CHILD_ADDED, recreateItem],
|
||||||
|
[dbusmenuItem, Dbusmenu.MENUITEM_SIGNAL_CHILD_MOVED, recreateItem],
|
||||||
|
[dbusmenuItem, Dbusmenu.MENUITEM_SIGNAL_CHILD_REMOVED, recreateItem]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (itemType === Dbusmenu.CLIENT_TYPES_SEPARATOR) {
|
||||||
|
item = new PopupMenu.PopupSeparatorMenuItem();
|
||||||
|
} else if (wantIcon) {
|
||||||
|
item = new PopupMenu.PopupImageMenuItem(label, null);
|
||||||
|
item.icon = item._icon;
|
||||||
|
} else {
|
||||||
|
item = new PopupMenu.PopupMenuItem(label);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set common initial properties.
|
||||||
|
item.actor.visible = visible;
|
||||||
|
item.setSensitive(enabled);
|
||||||
|
if (accessibleDesc) {
|
||||||
|
item.actor.get_accessible().accessible_description = accessibleDesc;
|
||||||
|
}
|
||||||
|
updateDisposition();
|
||||||
|
updateIcon();
|
||||||
|
updateOrnament();
|
||||||
|
|
||||||
|
// Prevent an initial resize flicker.
|
||||||
|
if (wantIcon) {
|
||||||
|
item.icon.icon_size = 16;
|
||||||
|
}
|
||||||
|
|
||||||
|
signalsHandler.add(dbusmenuItem, Dbusmenu.MENUITEM_SIGNAL_PROPERTY_CHANGED, onPropertyChanged);
|
||||||
|
|
||||||
|
// Connections on item will be lost when item is disposed; there's no need
|
||||||
|
// to add them to signalsHandler.
|
||||||
|
item.connect('activate', () => {
|
||||||
|
dbusmenuItem.handle_event(Dbusmenu.MENUITEM_EVENT_ACTIVATED, new GLib.Variant('i', 0), Math.floor(Date.now()/1000));
|
||||||
|
});
|
||||||
|
item.connect('destroy', () => signalsHandler.destroy());
|
||||||
|
|
||||||
|
return item;
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
|
const Me = ExtensionUtils.getCurrentExtension();
|
||||||
|
const Docking = Me.imports.docking;
|
||||||
|
|
||||||
|
// We declare this with var so it can be accessed by other extensions in
|
||||||
|
// GNOME Shell 3.26+ (mozjs52+).
|
||||||
|
var dockManager;
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
ExtensionUtils.initTranslations('dashtodock');
|
||||||
|
}
|
||||||
|
|
||||||
|
function enable() {
|
||||||
|
new Docking.DockManager();
|
||||||
|
}
|
||||||
|
|
||||||
|
function disable() {
|
||||||
|
dockManager.destroy();
|
||||||
|
}
|
|
@ -0,0 +1,154 @@
|
||||||
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
|
const Gio = imports.gi.Gio;
|
||||||
|
const Signals = imports.signals;
|
||||||
|
|
||||||
|
const Me = imports.misc.extensionUtils.getCurrentExtension();
|
||||||
|
const Utils = Me.imports.utils;
|
||||||
|
|
||||||
|
const FileManager1Iface = '<node><interface name="org.freedesktop.FileManager1">\
|
||||||
|
<property name="OpenWindowsWithLocations" type="a{sas}" access="read"/>\
|
||||||
|
</interface></node>';
|
||||||
|
|
||||||
|
const FileManager1Proxy = Gio.DBusProxy.makeProxyWrapper(FileManager1Iface);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class implements a client for the org.freedesktop.FileManager1 dbus
|
||||||
|
* interface, and specifically for the OpenWindowsWithLocations property
|
||||||
|
* which is published by Nautilus, but is not an official part of the interface.
|
||||||
|
*
|
||||||
|
* The property is a map from window identifiers to a list of locations open in
|
||||||
|
* the window.
|
||||||
|
*/
|
||||||
|
var FileManager1Client = class DashToDock_FileManager1Client {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
this._signalsHandler = new Utils.GlobalSignalsHandler();
|
||||||
|
this._cancellable = new Gio.Cancellable();
|
||||||
|
|
||||||
|
this._locationMap = new Map();
|
||||||
|
this._proxy = new FileManager1Proxy(Gio.DBus.session,
|
||||||
|
"org.freedesktop.FileManager1",
|
||||||
|
"/org/freedesktop/FileManager1",
|
||||||
|
(initable, error) => {
|
||||||
|
// Use async construction to avoid blocking on errors.
|
||||||
|
if (error) {
|
||||||
|
if (!error.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
|
||||||
|
global.log(error);
|
||||||
|
} else {
|
||||||
|
this._updateLocationMap();
|
||||||
|
}
|
||||||
|
}, this._cancellable);
|
||||||
|
|
||||||
|
this._signalsHandler.add([
|
||||||
|
this._proxy,
|
||||||
|
'g-properties-changed',
|
||||||
|
this._onPropertyChanged.bind(this)
|
||||||
|
], [
|
||||||
|
// We must additionally listen for Screen events to know when to
|
||||||
|
// rebuild our location map when the set of available windows changes.
|
||||||
|
global.workspace_manager,
|
||||||
|
'workspace-switched',
|
||||||
|
this._updateLocationMap.bind(this)
|
||||||
|
], [
|
||||||
|
global.display,
|
||||||
|
'window-entered-monitor',
|
||||||
|
this._updateLocationMap.bind(this)
|
||||||
|
], [
|
||||||
|
global.display,
|
||||||
|
'window-left-monitor',
|
||||||
|
this._updateLocationMap.bind(this)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
this._cancellable.cancel();
|
||||||
|
this._signalsHandler.destroy();
|
||||||
|
this._proxy.run_dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return an array of windows that are showing a location or
|
||||||
|
* sub-directories of that location.
|
||||||
|
*/
|
||||||
|
getWindows(location) {
|
||||||
|
let ret = new Set();
|
||||||
|
let locationEsc = location;
|
||||||
|
|
||||||
|
if (!location.endsWith('/')) {
|
||||||
|
locationEsc += '/';
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let [k,v] of this._locationMap) {
|
||||||
|
if ((k + '/').startsWith(locationEsc)) {
|
||||||
|
for (let l of v) {
|
||||||
|
ret.add(l);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Array.from(ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
_onPropertyChanged(proxy, changed, invalidated) {
|
||||||
|
let property = changed.unpack();
|
||||||
|
if (property &&
|
||||||
|
('OpenWindowsWithLocations' in property)) {
|
||||||
|
this._updateLocationMap();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateLocationMap() {
|
||||||
|
let properties = this._proxy.get_cached_property_names();
|
||||||
|
if (properties == null) {
|
||||||
|
// Nothing to check yet.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (properties.includes('OpenWindowsWithLocations')) {
|
||||||
|
this._updateFromPaths();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateFromPaths() {
|
||||||
|
let pathToLocations = this._proxy.OpenWindowsWithLocations;
|
||||||
|
let pathToWindow = getPathToWindow();
|
||||||
|
|
||||||
|
let locationToWindow = new Map();
|
||||||
|
for (let path in pathToLocations) {
|
||||||
|
let locations = pathToLocations[path];
|
||||||
|
for (let i = 0; i < locations.length; i++) {
|
||||||
|
let l = locations[i];
|
||||||
|
// Use a set to deduplicate when a window has a
|
||||||
|
// location open in multiple tabs.
|
||||||
|
if (!locationToWindow.has(l)) {
|
||||||
|
locationToWindow.set(l, new Set());
|
||||||
|
}
|
||||||
|
let window = pathToWindow.get(path);
|
||||||
|
if (window != null) {
|
||||||
|
locationToWindow.get(l).add(window);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this._locationMap = locationToWindow;
|
||||||
|
this.emit('windows-changed');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Signals.addSignalMethods(FileManager1Client.prototype);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct a map of gtk application window object paths to MetaWindows.
|
||||||
|
*/
|
||||||
|
function getPathToWindow() {
|
||||||
|
let pathToWindow = new Map();
|
||||||
|
|
||||||
|
for (let i = 0; i < global.workspace_manager.n_workspaces; i++) {
|
||||||
|
let ws = global.workspace_manager.get_workspace_by_index(i);
|
||||||
|
ws.list_windows().map(function(w) {
|
||||||
|
let path = w.get_gtk_window_object_path();
|
||||||
|
if (path != null) {
|
||||||
|
pathToWindow.set(path, w);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return pathToWindow;
|
||||||
|
}
|
|
@ -0,0 +1,321 @@
|
||||||
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
|
const GLib = imports.gi.GLib;
|
||||||
|
const Meta = imports.gi.Meta;
|
||||||
|
const Shell = imports.gi.Shell;
|
||||||
|
|
||||||
|
const Main = imports.ui.main;
|
||||||
|
const Signals = imports.signals;
|
||||||
|
|
||||||
|
const Me = imports.misc.extensionUtils.getCurrentExtension();
|
||||||
|
const Docking = Me.imports.docking;
|
||||||
|
const Utils = Me.imports.utils;
|
||||||
|
|
||||||
|
// A good compromise between reactivity and efficiency; to be tuned.
|
||||||
|
const INTELLIHIDE_CHECK_INTERVAL = 100;
|
||||||
|
|
||||||
|
const OverlapStatus = {
|
||||||
|
UNDEFINED: -1,
|
||||||
|
FALSE: 0,
|
||||||
|
TRUE: 1
|
||||||
|
};
|
||||||
|
|
||||||
|
const IntellihideMode = {
|
||||||
|
ALL_WINDOWS: 0,
|
||||||
|
FOCUS_APPLICATION_WINDOWS: 1,
|
||||||
|
MAXIMIZED_WINDOWS : 2
|
||||||
|
};
|
||||||
|
|
||||||
|
// List of windows type taken into account. Order is important (keep the original
|
||||||
|
// enum order).
|
||||||
|
const handledWindowTypes = [
|
||||||
|
Meta.WindowType.NORMAL,
|
||||||
|
Meta.WindowType.DOCK,
|
||||||
|
Meta.WindowType.DIALOG,
|
||||||
|
Meta.WindowType.MODAL_DIALOG,
|
||||||
|
Meta.WindowType.TOOLBAR,
|
||||||
|
Meta.WindowType.MENU,
|
||||||
|
Meta.WindowType.UTILITY,
|
||||||
|
Meta.WindowType.SPLASHSCREEN
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A rough and ugly implementation of the intellihide behaviour.
|
||||||
|
* Intallihide object: emit 'status-changed' signal when the overlap of windows
|
||||||
|
* with the provided targetBoxClutter.ActorBox changes;
|
||||||
|
*/
|
||||||
|
var Intellihide = class DashToDock_Intellihide {
|
||||||
|
|
||||||
|
constructor(monitorIndex) {
|
||||||
|
// Load settings
|
||||||
|
this._monitorIndex = monitorIndex;
|
||||||
|
|
||||||
|
this._signalsHandler = new Utils.GlobalSignalsHandler();
|
||||||
|
this._tracker = Shell.WindowTracker.get_default();
|
||||||
|
this._focusApp = null; // The application whose window is focused.
|
||||||
|
this._topApp = null; // The application whose window is on top on the monitor with the dock.
|
||||||
|
|
||||||
|
this._isEnabled = false;
|
||||||
|
this.status = OverlapStatus.UNDEFINED;
|
||||||
|
this._targetBox = null;
|
||||||
|
|
||||||
|
this._checkOverlapTimeoutContinue = false;
|
||||||
|
this._checkOverlapTimeoutId = 0;
|
||||||
|
|
||||||
|
this._trackedWindows = new Map();
|
||||||
|
|
||||||
|
// Connect global signals
|
||||||
|
this._signalsHandler.add([
|
||||||
|
// Add signals on windows created from now on
|
||||||
|
global.display,
|
||||||
|
'window-created',
|
||||||
|
this._windowCreated.bind(this)
|
||||||
|
], [
|
||||||
|
// triggered for instance when the window list order changes,
|
||||||
|
// included when the workspace is switched
|
||||||
|
global.display,
|
||||||
|
'restacked',
|
||||||
|
this._checkOverlap.bind(this)
|
||||||
|
], [
|
||||||
|
// when windows are alwasy on top, the focus window can change
|
||||||
|
// without the windows being restacked. Thus monitor window focus change.
|
||||||
|
this._tracker,
|
||||||
|
'notify::focus-app',
|
||||||
|
this._checkOverlap.bind(this)
|
||||||
|
], [
|
||||||
|
// update wne monitor changes, for instance in multimonitor when monitor are attached
|
||||||
|
Meta.MonitorManager.get(),
|
||||||
|
'monitors-changed',
|
||||||
|
this._checkOverlap.bind(this)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
// Disconnect global signals
|
||||||
|
this._signalsHandler.destroy();
|
||||||
|
|
||||||
|
// Remove residual windows signals
|
||||||
|
this.disable();
|
||||||
|
}
|
||||||
|
|
||||||
|
enable() {
|
||||||
|
this._isEnabled = true;
|
||||||
|
this._status = OverlapStatus.UNDEFINED;
|
||||||
|
global.get_window_actors().forEach(function(wa) {
|
||||||
|
this._addWindowSignals(wa);
|
||||||
|
}, this);
|
||||||
|
this._doCheckOverlap();
|
||||||
|
}
|
||||||
|
|
||||||
|
disable() {
|
||||||
|
this._isEnabled = false;
|
||||||
|
|
||||||
|
for (let wa of this._trackedWindows.keys()) {
|
||||||
|
this._removeWindowSignals(wa);
|
||||||
|
}
|
||||||
|
this._trackedWindows.clear();
|
||||||
|
|
||||||
|
if (this._checkOverlapTimeoutId > 0) {
|
||||||
|
GLib.source_remove(this._checkOverlapTimeoutId);
|
||||||
|
this._checkOverlapTimeoutId = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_windowCreated(display, metaWindow) {
|
||||||
|
this._addWindowSignals(metaWindow.get_compositor_private());
|
||||||
|
}
|
||||||
|
|
||||||
|
_addWindowSignals(wa) {
|
||||||
|
if (!this._handledWindow(wa))
|
||||||
|
return;
|
||||||
|
let signalId = wa.connect('notify::allocation', this._checkOverlap.bind(this));
|
||||||
|
this._trackedWindows.set(wa, signalId);
|
||||||
|
wa.connect('destroy', this._removeWindowSignals.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
_removeWindowSignals(wa) {
|
||||||
|
if (this._trackedWindows.get(wa)) {
|
||||||
|
wa.disconnect(this._trackedWindows.get(wa));
|
||||||
|
this._trackedWindows.delete(wa);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
updateTargetBox(box) {
|
||||||
|
this._targetBox = box;
|
||||||
|
this._checkOverlap();
|
||||||
|
}
|
||||||
|
|
||||||
|
forceUpdate() {
|
||||||
|
this._status = OverlapStatus.UNDEFINED;
|
||||||
|
this._doCheckOverlap();
|
||||||
|
}
|
||||||
|
|
||||||
|
getOverlapStatus() {
|
||||||
|
return (this._status == OverlapStatus.TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
_checkOverlap() {
|
||||||
|
if (!this._isEnabled || (this._targetBox == null))
|
||||||
|
return;
|
||||||
|
|
||||||
|
/* Limit the number of calls to the doCheckOverlap function */
|
||||||
|
if (this._checkOverlapTimeoutId) {
|
||||||
|
this._checkOverlapTimeoutContinue = true;
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this._doCheckOverlap();
|
||||||
|
|
||||||
|
this._checkOverlapTimeoutId = GLib.timeout_add(
|
||||||
|
GLib.PRIORITY_DEFAULT, INTELLIHIDE_CHECK_INTERVAL, () => {
|
||||||
|
this._doCheckOverlap();
|
||||||
|
if (this._checkOverlapTimeoutContinue) {
|
||||||
|
this._checkOverlapTimeoutContinue = false;
|
||||||
|
return GLib.SOURCE_CONTINUE;
|
||||||
|
} else {
|
||||||
|
this._checkOverlapTimeoutId = 0;
|
||||||
|
return GLib.SOURCE_REMOVE;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
_doCheckOverlap() {
|
||||||
|
|
||||||
|
if (!this._isEnabled || (this._targetBox == null))
|
||||||
|
return;
|
||||||
|
|
||||||
|
let overlaps = OverlapStatus.FALSE;
|
||||||
|
let windows = global.get_window_actors();
|
||||||
|
|
||||||
|
if (windows.length > 0) {
|
||||||
|
/*
|
||||||
|
* Get the top window on the monitor where the dock is placed.
|
||||||
|
* The idea is that we dont want to overlap with the windows of the topmost application,
|
||||||
|
* event is it's not the focused app -- for instance because in multimonitor the user
|
||||||
|
* select a window in the secondary monitor.
|
||||||
|
*/
|
||||||
|
|
||||||
|
let topWindow = null;
|
||||||
|
for (let i = windows.length - 1; i >= 0; i--) {
|
||||||
|
let meta_win = windows[i].get_meta_window();
|
||||||
|
if (this._handledWindow(windows[i]) && (meta_win.get_monitor() == this._monitorIndex)) {
|
||||||
|
topWindow = meta_win;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (topWindow !== null) {
|
||||||
|
this._topApp = this._tracker.get_window_app(topWindow);
|
||||||
|
// If there isn't a focused app, use that of the window on top
|
||||||
|
this._focusApp = this._tracker.focus_app || this._topApp
|
||||||
|
|
||||||
|
windows = windows.filter(this._intellihideFilterInteresting, this);
|
||||||
|
|
||||||
|
for (let i = 0; i < windows.length; i++) {
|
||||||
|
let win = windows[i].get_meta_window();
|
||||||
|
|
||||||
|
if (win) {
|
||||||
|
let rect = win.get_frame_rect();
|
||||||
|
|
||||||
|
let test = (rect.x < this._targetBox.x2) &&
|
||||||
|
(rect.x + rect.width > this._targetBox.x1) &&
|
||||||
|
(rect.y < this._targetBox.y2) &&
|
||||||
|
(rect.y + rect.height > this._targetBox.y1);
|
||||||
|
|
||||||
|
if (test) {
|
||||||
|
overlaps = OverlapStatus.TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this._status !== overlaps) {
|
||||||
|
this._status = overlaps;
|
||||||
|
this.emit('status-changed', this._status);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Filter interesting windows to be considered for intellihide.
|
||||||
|
// Consider all windows visible on the current workspace.
|
||||||
|
// Optionally skip windows of other applications
|
||||||
|
_intellihideFilterInteresting(wa) {
|
||||||
|
let meta_win = wa.get_meta_window();
|
||||||
|
if (!this._handledWindow(wa))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
let currentWorkspace = global.workspace_manager.get_active_workspace_index();
|
||||||
|
let wksp = meta_win.get_workspace();
|
||||||
|
let wksp_index = wksp.index();
|
||||||
|
|
||||||
|
// Depending on the intellihide mode, exclude non-relevent windows
|
||||||
|
switch (Docking.DockManager.settings.get_enum('intellihide-mode')) {
|
||||||
|
case IntellihideMode.ALL_WINDOWS:
|
||||||
|
// Do nothing
|
||||||
|
break;
|
||||||
|
|
||||||
|
case IntellihideMode.FOCUS_APPLICATION_WINDOWS:
|
||||||
|
// Skip windows of other apps
|
||||||
|
if (this._focusApp) {
|
||||||
|
// The DropDownTerminal extension is not an application per se
|
||||||
|
// so we match its window by wm class instead
|
||||||
|
if (meta_win.get_wm_class() == 'DropDownTerminalWindow')
|
||||||
|
return true;
|
||||||
|
|
||||||
|
let currentApp = this._tracker.get_window_app(meta_win);
|
||||||
|
let focusWindow = global.display.get_focus_window()
|
||||||
|
|
||||||
|
// Consider half maximized windows side by side
|
||||||
|
// and windows which are alwayson top
|
||||||
|
if((currentApp != this._focusApp) && (currentApp != this._topApp)
|
||||||
|
&& !((focusWindow && focusWindow.maximized_vertically && !focusWindow.maximized_horizontally)
|
||||||
|
&& (meta_win.maximized_vertically && !meta_win.maximized_horizontally)
|
||||||
|
&& meta_win.get_monitor() == focusWindow.get_monitor())
|
||||||
|
&& !meta_win.is_above())
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case IntellihideMode.MAXIMIZED_WINDOWS:
|
||||||
|
// Skip unmaximized windows
|
||||||
|
if (!meta_win.maximized_vertically && !meta_win.maximized_horizontally)
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( wksp_index == currentWorkspace && meta_win.showing_on_its_workspace() )
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Filter windows by type
|
||||||
|
// inspired by Opacify@gnome-shell.localdomain.pl
|
||||||
|
_handledWindow(wa) {
|
||||||
|
let metaWindow = wa.get_meta_window();
|
||||||
|
|
||||||
|
if (!metaWindow)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// The DropDownTerminal extension uses the POPUP_MENU window type hint
|
||||||
|
// so we match its window by wm class instead
|
||||||
|
if (metaWindow.get_wm_class() == 'DropDownTerminalWindow')
|
||||||
|
return true;
|
||||||
|
|
||||||
|
let wtype = metaWindow.get_window_type();
|
||||||
|
for (let i = 0; i < handledWindowTypes.length; i++) {
|
||||||
|
var hwtype = handledWindowTypes[i];
|
||||||
|
if (hwtype == wtype)
|
||||||
|
return true;
|
||||||
|
else if (hwtype > wtype)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
Signals.addSignalMethods(Intellihide.prototype);
|
|
@ -0,0 +1,281 @@
|
||||||
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
|
const Gio = imports.gi.Gio;
|
||||||
|
|
||||||
|
const Me = imports.misc.extensionUtils.getCurrentExtension();
|
||||||
|
const DbusmenuUtils = Me.imports.dbusmenuUtils;
|
||||||
|
|
||||||
|
const Dbusmenu = DbusmenuUtils.haveDBusMenu();
|
||||||
|
|
||||||
|
var LauncherEntryRemoteModel = class DashToDock_LauncherEntryRemoteModel {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
this._entrySourceStacks = new Map();
|
||||||
|
this._remoteMaps = new Map();
|
||||||
|
|
||||||
|
this._launcher_entry_dbus_signal_id =
|
||||||
|
Gio.DBus.session.signal_subscribe(null, // sender
|
||||||
|
'com.canonical.Unity.LauncherEntry', // iface
|
||||||
|
'Update', // member
|
||||||
|
null, // path
|
||||||
|
null, // arg0
|
||||||
|
Gio.DBusSignalFlags.NONE,
|
||||||
|
(connection, sender_name, object_path, interface_name, signal_name, parameters) =>
|
||||||
|
this._onUpdate(sender_name, ...parameters.deep_unpack()));
|
||||||
|
|
||||||
|
this._dbus_name_owner_changed_signal_id =
|
||||||
|
Gio.DBus.session.signal_subscribe('org.freedesktop.DBus', // sender
|
||||||
|
'org.freedesktop.DBus', // interface
|
||||||
|
'NameOwnerChanged', // member
|
||||||
|
'/org/freedesktop/DBus', // path
|
||||||
|
null, // arg0
|
||||||
|
Gio.DBusSignalFlags.NONE,
|
||||||
|
(connection, sender_name, object_path, interface_name, signal_name, parameters) =>
|
||||||
|
this._onDBusNameChange(...parameters.deep_unpack().slice(1)));
|
||||||
|
|
||||||
|
this._acquireUnityDBus();
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
if (this._launcher_entry_dbus_signal_id) {
|
||||||
|
Gio.DBus.session.signal_unsubscribe(this._launcher_entry_dbus_signal_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this._dbus_name_owner_changed_signal_id) {
|
||||||
|
Gio.DBus.session.signal_unsubscribe(this._dbus_name_owner_changed_signal_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
this._releaseUnityDBus();
|
||||||
|
}
|
||||||
|
|
||||||
|
_lookupStackById(appId) {
|
||||||
|
let sourceStack = this._entrySourceStacks.get(appId);
|
||||||
|
if (!sourceStack) {
|
||||||
|
this._entrySourceStacks.set(appId, sourceStack = new PropertySourceStack(new LauncherEntry(), launcherEntryDefaults));
|
||||||
|
}
|
||||||
|
return sourceStack;
|
||||||
|
}
|
||||||
|
|
||||||
|
lookupById(appId) {
|
||||||
|
return this._lookupStackById(appId).target;
|
||||||
|
}
|
||||||
|
|
||||||
|
_acquireUnityDBus() {
|
||||||
|
if (!this._unity_bus_id) {
|
||||||
|
this._unity_bus_id = Gio.DBus.session.own_name('com.canonical.Unity',
|
||||||
|
Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT | Gio.BusNameOwnerFlags.REPLACE,
|
||||||
|
null, () => this._unity_bus_id = 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_releaseUnityDBus() {
|
||||||
|
if (this._unity_bus_id) {
|
||||||
|
Gio.DBus.session.unown_name(this._unity_bus_id);
|
||||||
|
this._unity_bus_id = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_onDBusNameChange(before, after) {
|
||||||
|
if (!before || !this._remoteMaps.size) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const remoteMap = this._remoteMaps.get(before);
|
||||||
|
if (!remoteMap) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this._remoteMaps.delete(before);
|
||||||
|
if (after && !this._remoteMaps.has(after)) {
|
||||||
|
this._remoteMaps.set(after, remoteMap);
|
||||||
|
} else {
|
||||||
|
for (const [appId, remote] of remoteMap) {
|
||||||
|
const sourceStack = this._entrySourceStacks.get(appId);
|
||||||
|
const changed = sourceStack.remove(remote);
|
||||||
|
if (changed) {
|
||||||
|
sourceStack.target._emitChangedEvents(changed);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_onUpdate(senderName, appUri, properties) {
|
||||||
|
if (!senderName) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const appId = appUri.replace(/(^\w+:|^)\/\//, '');
|
||||||
|
if (!appId) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let remoteMap = this._remoteMaps.get(senderName);
|
||||||
|
if (!remoteMap) {
|
||||||
|
this._remoteMaps.set(senderName, remoteMap = new Map());
|
||||||
|
}
|
||||||
|
let remote = remoteMap.get(appId);
|
||||||
|
if (!remote) {
|
||||||
|
remoteMap.set(appId, remote = Object.assign({}, launcherEntryDefaults));
|
||||||
|
}
|
||||||
|
for (const name in properties) {
|
||||||
|
if (name === 'quicklist' && Dbusmenu) {
|
||||||
|
const quicklistPath = properties[name].unpack();
|
||||||
|
if (quicklistPath && (!remote._quicklistMenuClient || remote._quicklistMenuClient.dbus_object !== quicklistPath)) {
|
||||||
|
remote.quicklist = null;
|
||||||
|
let menuClient = remote._quicklistMenuClient;
|
||||||
|
if (menuClient) {
|
||||||
|
menuClient.dbus_object = quicklistPath;
|
||||||
|
} else {
|
||||||
|
// This property should not be enumerable
|
||||||
|
Object.defineProperty(remote, '_quicklistMenuClient', {
|
||||||
|
writable: true,
|
||||||
|
value: menuClient = new Dbusmenu.Client({ dbus_name: senderName, dbus_object: quicklistPath }),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const handler = () => {
|
||||||
|
const root = menuClient.get_root();
|
||||||
|
if (remote.quicklist !== root) {
|
||||||
|
remote.quicklist = root;
|
||||||
|
if (sourceStack.isTop(remote)) {
|
||||||
|
sourceStack.target.quicklist = root;
|
||||||
|
sourceStack.target._emitChangedEvents(['quicklist']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
menuClient.connect(Dbusmenu.CLIENT_SIGNAL_ROOT_CHANGED, handler);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
remote[name] = properties[name].unpack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const sourceStack = this._lookupStackById(appId);
|
||||||
|
sourceStack.target._emitChangedEvents(sourceStack.update(remote));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const launcherEntryDefaults = {
|
||||||
|
count: 0,
|
||||||
|
progress: 0,
|
||||||
|
urgent: false,
|
||||||
|
quicklist: null,
|
||||||
|
'count-visible': false,
|
||||||
|
'progress-visible': false,
|
||||||
|
};
|
||||||
|
|
||||||
|
const LauncherEntry = class DashToDock_LauncherEntry {
|
||||||
|
constructor() {
|
||||||
|
this._connections = new Map();
|
||||||
|
this._handlers = new Map();
|
||||||
|
this._nextId = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
connect(eventNames, callback) {
|
||||||
|
if (typeof eventNames === 'string') {
|
||||||
|
eventNames = [eventNames];
|
||||||
|
}
|
||||||
|
callback(this, this);
|
||||||
|
const id = this._nextId++;
|
||||||
|
const handler = { id, callback };
|
||||||
|
eventNames.forEach(name => {
|
||||||
|
let handlerList = this._handlers.get(name);
|
||||||
|
if (!handlerList) {
|
||||||
|
this._handlers.set(name, handlerList = []);
|
||||||
|
}
|
||||||
|
handlerList.push(handler);
|
||||||
|
});
|
||||||
|
this._connections.set(id, eventNames);
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
disconnect(id) {
|
||||||
|
const eventNames = this._connections.get(id);
|
||||||
|
if (!eventNames) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this._connections.delete(id);
|
||||||
|
eventNames.forEach(name => {
|
||||||
|
const handlerList = this._handlers.get(name);
|
||||||
|
if (handlerList) {
|
||||||
|
for (let i = 0, iMax = handlerList.length; i < iMax; i++) {
|
||||||
|
if (handlerList[i].id === id) {
|
||||||
|
handlerList.splice(i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
_emitChangedEvents(propertyNames) {
|
||||||
|
const handlers = new Set();
|
||||||
|
propertyNames.forEach(name => {
|
||||||
|
const handlerList = this._handlers.get(name + '-changed');
|
||||||
|
if (handlerList) {
|
||||||
|
for (let i = 0, iMax = handlerList.length; i < iMax; i++) {
|
||||||
|
handlers.add(handlerList[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Array.from(handlers).sort((x, y) => x.id - y.id).forEach(handler => handler.callback(this, this));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const name in launcherEntryDefaults) {
|
||||||
|
const jsName = name.replace(/-/g, '_');
|
||||||
|
LauncherEntry.prototype[jsName] = launcherEntryDefaults[name];
|
||||||
|
if (jsName !== name) {
|
||||||
|
Object.defineProperty(LauncherEntry.prototype, name, {
|
||||||
|
get() {
|
||||||
|
return this[jsName];
|
||||||
|
},
|
||||||
|
set(value) {
|
||||||
|
this[jsName] = value;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const PropertySourceStack = class DashToDock_PropertySourceStack {
|
||||||
|
constructor(target, bottom) {
|
||||||
|
this.target = target;
|
||||||
|
this._bottom = bottom;
|
||||||
|
this._stack = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
isTop(source) {
|
||||||
|
return this._stack.length > 0 && this._stack[this._stack.length - 1] === source;
|
||||||
|
}
|
||||||
|
|
||||||
|
update(source) {
|
||||||
|
if (!this.isTop(source)) {
|
||||||
|
this.remove(source);
|
||||||
|
this._stack.push(source);
|
||||||
|
}
|
||||||
|
return this._assignFrom(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
remove(source) {
|
||||||
|
const stack = this._stack;
|
||||||
|
const top = stack[stack.length - 1];
|
||||||
|
if (top === source) {
|
||||||
|
stack.length--;
|
||||||
|
return this._assignFrom(stack.length > 0 ? stack[stack.length - 1] : this._bottom);
|
||||||
|
}
|
||||||
|
for (let i = 0, iMax = stack.length; i < iMax; i++) {
|
||||||
|
if (stack[i] === source) {
|
||||||
|
stack.splice(i, 1);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_assignFrom(source) {
|
||||||
|
const changedProperties = [];
|
||||||
|
for (const name in source) {
|
||||||
|
if (this.target[name] !== source[name]) {
|
||||||
|
this.target[name] = source[name];
|
||||||
|
changedProperties.push(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return changedProperties;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,660 @@
|
||||||
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
|
const Gio = imports.gi.Gio;
|
||||||
|
const GLib = imports.gi.GLib;
|
||||||
|
const GObject = imports.gi.GObject;
|
||||||
|
const Gtk = imports.gi.Gtk;
|
||||||
|
const Shell = imports.gi.Shell;
|
||||||
|
const Signals = imports.signals;
|
||||||
|
|
||||||
|
// Use __ () and N__() for the extension gettext domain, and reuse
|
||||||
|
// the shell domain with the default _() and N_()
|
||||||
|
const Gettext = imports.gettext.domain('dashtodock');
|
||||||
|
const __ = Gettext.gettext;
|
||||||
|
const N__ = function(e) { return e };
|
||||||
|
|
||||||
|
const Me = imports.misc.extensionUtils.getCurrentExtension();
|
||||||
|
const Docking = Me.imports.docking;
|
||||||
|
const Utils = Me.imports.utils;
|
||||||
|
|
||||||
|
const FILE_MANAGER_DESKTOP_APP_ID = 'org.gnome.Nautilus.desktop';
|
||||||
|
const TRASH_URI = 'trash://';
|
||||||
|
const UPDATE_TRASH_DELAY = 500;
|
||||||
|
|
||||||
|
const NautilusFileOperations2Interface = '<node>\
|
||||||
|
<interface name="org.gnome.Nautilus.FileOperations2">\
|
||||||
|
<method name="EmptyTrash">\
|
||||||
|
<arg type="b" name="ask_confirmation" direction="in"/>\
|
||||||
|
<arg type="a{sv}" name="platform_data" direction="in"/>\
|
||||||
|
</method>\
|
||||||
|
</interface>\
|
||||||
|
</node>';
|
||||||
|
|
||||||
|
const NautilusFileOperations2ProxyInterface = Gio.DBusProxy.makeProxyWrapper(NautilusFileOperations2Interface);
|
||||||
|
|
||||||
|
function makeNautilusFileOperationsProxy() {
|
||||||
|
const proxy = new NautilusFileOperations2ProxyInterface(
|
||||||
|
Gio.DBus.session,
|
||||||
|
'org.gnome.Nautilus',
|
||||||
|
'/org/gnome/Nautilus/FileOperations2', (_p, error) => {
|
||||||
|
if (error)
|
||||||
|
logError(error, 'Error connecting to Nautilus');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
proxy.platformData = params => {
|
||||||
|
const defaultParams = {
|
||||||
|
parentHandle: '',
|
||||||
|
timestamp: global.get_current_time(),
|
||||||
|
windowPosition: 'center',
|
||||||
|
};
|
||||||
|
const { parentHandle, timestamp, windowPosition } = {
|
||||||
|
...defaultParams,
|
||||||
|
...params,
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
'parent-handle': new GLib.Variant('s', parentHandle),
|
||||||
|
'timestamp': new GLib.Variant('u', timestamp),
|
||||||
|
'window-position': new GLib.Variant('s', windowPosition),
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
return proxy;
|
||||||
|
}
|
||||||
|
|
||||||
|
function wrapWindowsBackedApp(shellApp) {
|
||||||
|
if (shellApp._dtdData)
|
||||||
|
throw new Error('%s has been already wrapped'.format(shellApp));
|
||||||
|
|
||||||
|
shellApp._dtdData = {
|
||||||
|
windows: [],
|
||||||
|
methodInjections: new Utils.InjectionsHandler(),
|
||||||
|
propertyInjections: new Utils.PropertyInjectionsHandler(),
|
||||||
|
destroy: function () {
|
||||||
|
this.windows = [];
|
||||||
|
this.methodInjections.destroy();
|
||||||
|
this.propertyInjections.destroy();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const m = (...args) => shellApp._dtdData.methodInjections.add(shellApp, ...args);
|
||||||
|
const p = (...args) => shellApp._dtdData.propertyInjections.add(shellApp, ...args);
|
||||||
|
shellApp._mi = m;
|
||||||
|
shellApp._pi = p;
|
||||||
|
|
||||||
|
m('get_state', () =>
|
||||||
|
shellApp.get_windows().length ? Shell.AppState.RUNNING : Shell.AppState.STOPPED);
|
||||||
|
p('state', { get: () => shellApp.get_state() });
|
||||||
|
|
||||||
|
m('get_windows', () => shellApp._dtdData.windows);
|
||||||
|
m('get_n_windows', () => shellApp.get_windows().length);
|
||||||
|
m('get_pids', () => shellApp.get_windows().reduce((pids, w) => {
|
||||||
|
if (w.get_pid() > 0 && !pids.includes(w.get_pid()))
|
||||||
|
pids.push(w.get_pid());
|
||||||
|
return pids;
|
||||||
|
}, []));
|
||||||
|
m('is_on_workspace', (_om, workspace) => shellApp.get_windows().some(w =>
|
||||||
|
w.get_workspace() === workspace));
|
||||||
|
m('request_quit', () => shellApp.get_windows().filter(w =>
|
||||||
|
w.can_close()).forEach(w => w.delete(global.get_current_time())));
|
||||||
|
|
||||||
|
shellApp._updateWindows = function () {
|
||||||
|
throw new GObject.NotImplementedError(`_updateWindows in ${this.constructor.name}`);
|
||||||
|
};
|
||||||
|
|
||||||
|
let updateWindowsIdle = GLib.idle_add(GLib.DEFAULT_PRIORITY, () => {
|
||||||
|
shellApp._updateWindows();
|
||||||
|
updateWindowsIdle = undefined;
|
||||||
|
return GLib.SOURCE_REMOVE;
|
||||||
|
});
|
||||||
|
|
||||||
|
const windowTracker = Shell.WindowTracker.get_default();
|
||||||
|
shellApp._checkFocused = function () {
|
||||||
|
if (this.get_windows().some(w => w.has_focus())) {
|
||||||
|
this.isFocused = true;
|
||||||
|
windowTracker.notify('focus-app');
|
||||||
|
} else if (this.isFocused) {
|
||||||
|
this.isFocused = false;
|
||||||
|
windowTracker.notify('focus-app');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
shellApp._checkFocused();
|
||||||
|
const focusWindowNotifyId = global.display.connect('notify::focus-window', () =>
|
||||||
|
shellApp._checkFocused());
|
||||||
|
|
||||||
|
// Re-implements shell_app_activate_window for generic activation and alt-tab support
|
||||||
|
m('activate_window', function (_om, window, timestamp) {
|
||||||
|
if (!window)
|
||||||
|
[window] = this.get_windows();
|
||||||
|
else if (!this.get_windows().includes(window))
|
||||||
|
return;
|
||||||
|
|
||||||
|
const currentWorkspace = global.workspace_manager.get_active_workspace();
|
||||||
|
const workspace = window.get_workspace();
|
||||||
|
const sameWorkspaceWindows = this.get_windows().filter(w =>
|
||||||
|
w.get_workspace() === workspace);
|
||||||
|
sameWorkspaceWindows.forEach(w => w.raise());
|
||||||
|
|
||||||
|
if (workspace !== currentWorkspace)
|
||||||
|
workspace.activate_with_focus(window, timestamp);
|
||||||
|
else
|
||||||
|
window.activate(timestamp);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Re-implements shell_app_activate_full for generic activation and dash support
|
||||||
|
m('activate_full', function (_om, workspace, timestamp) {
|
||||||
|
if (!timestamp)
|
||||||
|
timestamp = global.get_current_time();
|
||||||
|
|
||||||
|
switch (this.state) {
|
||||||
|
case Shell.AppState.STOPPED:
|
||||||
|
try {
|
||||||
|
this.launch(timestamp, workspace, Shell.AppLaunchGpu.APP_PREF);
|
||||||
|
} catch (e) {
|
||||||
|
global.notify_error(__("Failed to launch “%s”".format(
|
||||||
|
this.get_name())), e.message);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case Shell.AppState.RUNNING:
|
||||||
|
this.activate_window(null, timestamp);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
m('activate', () => shellApp.activate_full(-1, 0));
|
||||||
|
|
||||||
|
m('compare', (_om, other) => shellAppCompare(shellApp, other));
|
||||||
|
|
||||||
|
shellApp.destroy = function() {
|
||||||
|
global.display.disconnect(focusWindowNotifyId);
|
||||||
|
updateWindowsIdle && GLib.source_remove(updateWindowsIdle);
|
||||||
|
this._dtdData.destroy();
|
||||||
|
this._dtdData = undefined;
|
||||||
|
this.destroy = undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
return shellApp;
|
||||||
|
}
|
||||||
|
|
||||||
|
// We can't inherit from Shell.App as it's a final type, so let's patch it
|
||||||
|
function makeLocationApp(params) {
|
||||||
|
if (!params.location)
|
||||||
|
throw new TypeError('Invalid location');
|
||||||
|
|
||||||
|
location = params.location;
|
||||||
|
delete params.location;
|
||||||
|
|
||||||
|
const shellApp = new Shell.App(params);
|
||||||
|
wrapWindowsBackedApp(shellApp);
|
||||||
|
shellApp.appInfo.customId = 'location:%s'.format(location);
|
||||||
|
|
||||||
|
Object.defineProperties(shellApp, {
|
||||||
|
location: { value: location },
|
||||||
|
isTrash: { value: location.startsWith(TRASH_URI) },
|
||||||
|
});
|
||||||
|
|
||||||
|
shellApp._mi('toString', defaultToString =>
|
||||||
|
'[LocationApp - %s]'.format(defaultToString.call(shellApp)));
|
||||||
|
|
||||||
|
// FIXME: We need to add a new API to Nautilus to open new windows
|
||||||
|
shellApp._mi('can_open_new_window', () => false);
|
||||||
|
|
||||||
|
const { fm1Client } = Docking.DockManager.getDefault();
|
||||||
|
shellApp._updateWindows = function () {
|
||||||
|
const oldState = this.state;
|
||||||
|
const oldWindows = this.get_windows();
|
||||||
|
this._dtdData.windows = fm1Client.getWindows(this.location);
|
||||||
|
|
||||||
|
if (this.get_windows().length !== oldWindows.length ||
|
||||||
|
this.get_windows().some((win, index) => win !== oldWindows[index]))
|
||||||
|
this.emit('windows-changed');
|
||||||
|
|
||||||
|
if (oldState !== this.state) {
|
||||||
|
Shell.AppSystem.get_default().emit('app-state-changed', this);
|
||||||
|
this.notify('state');
|
||||||
|
this._checkFocused();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const windowsChangedId = fm1Client.connect('windows-changed', () =>
|
||||||
|
shellApp._updateWindows());
|
||||||
|
|
||||||
|
const parentDestroy = shellApp.destroy;
|
||||||
|
shellApp.destroy = function () {
|
||||||
|
fm1Client.disconnect(windowsChangedId);
|
||||||
|
parentDestroy.call(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return shellApp;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getFileManagerApp() {
|
||||||
|
return Shell.AppSystem.get_default().lookup_app(FILE_MANAGER_DESKTOP_APP_ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
function wrapWindowsManagerApp() {
|
||||||
|
const fileManagerApp = getFileManagerApp();
|
||||||
|
if (!fileManagerApp)
|
||||||
|
return null;
|
||||||
|
|
||||||
|
if (fileManagerApp._dtdData)
|
||||||
|
return fileManagerApp;
|
||||||
|
|
||||||
|
const originalGetWindows = fileManagerApp.get_windows;
|
||||||
|
wrapWindowsBackedApp(fileManagerApp);
|
||||||
|
|
||||||
|
const { fm1Client } = Docking.DockManager.getDefault();
|
||||||
|
const windowsChangedId = fileManagerApp.connect('windows-changed', () =>
|
||||||
|
fileManagerApp._updateWindows());
|
||||||
|
const fm1WindowsChangedId = fm1Client.connect('windows-changed', () =>
|
||||||
|
fileManagerApp._updateWindows());
|
||||||
|
|
||||||
|
fileManagerApp._updateWindows = function () {
|
||||||
|
const oldState = this.state;
|
||||||
|
const oldWindows = this.get_windows();
|
||||||
|
const locationWindows = [];
|
||||||
|
getRunningApps().forEach(a => locationWindows.push(...a.get_windows()));
|
||||||
|
this._dtdData.windows = originalGetWindows.call(this).filter(w =>
|
||||||
|
!locationWindows.includes(w));
|
||||||
|
|
||||||
|
if (this.get_windows().length !== oldWindows.length ||
|
||||||
|
this.get_windows().some((win, index) => win !== oldWindows[index])) {
|
||||||
|
this.block_signal_handler(windowsChangedId);
|
||||||
|
this.emit('windows-changed');
|
||||||
|
this.unblock_signal_handler(windowsChangedId);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (oldState !== this.state) {
|
||||||
|
Shell.AppSystem.get_default().emit('app-state-changed', this);
|
||||||
|
this.notify('state');
|
||||||
|
this._checkFocused();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
fileManagerApp._mi('toString', defaultToString =>
|
||||||
|
'[FileManagerApp - %s]'.format(defaultToString.call(fileManagerApp)));
|
||||||
|
|
||||||
|
const parentDestroy = fileManagerApp.destroy;
|
||||||
|
fileManagerApp.destroy = function () {
|
||||||
|
fileManagerApp.disconnect(windowsChangedId);
|
||||||
|
fm1Client.disconnect(fm1WindowsChangedId);
|
||||||
|
parentDestroy.call(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return fileManagerApp;
|
||||||
|
}
|
||||||
|
|
||||||
|
function unWrapWindowsManagerApp() {
|
||||||
|
const fileManagerApp = getFileManagerApp();
|
||||||
|
if (!fileManagerApp || !fileManagerApp._dtdData)
|
||||||
|
return;
|
||||||
|
|
||||||
|
fileManagerApp.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Re-implements shell_app_compare so that can be used to resort running apps
|
||||||
|
function shellAppCompare(app, other) {
|
||||||
|
if (app.state !== other.state) {
|
||||||
|
if (app.state === Shell.AppState.RUNNING)
|
||||||
|
return -1;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
const windows = app.get_windows();
|
||||||
|
const otherWindows = other.get_windows();
|
||||||
|
|
||||||
|
const isMinimized = windows => !windows.some(w => w.showing_on_its_workspace());
|
||||||
|
const otherMinimized = isMinimized(otherWindows);
|
||||||
|
if (isMinimized(windows) != otherMinimized) {
|
||||||
|
if (otherMinimized)
|
||||||
|
return -1;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (app.state === Shell.AppState.RUNNING) {
|
||||||
|
if (windows.length && !otherWindows.length)
|
||||||
|
return -1;
|
||||||
|
else if (!windows.length && otherWindows.length)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
const lastUserTime = windows =>
|
||||||
|
Math.max(...windows.map(w => w.get_user_time()));
|
||||||
|
return lastUserTime(otherWindows) - lastUserTime(windows);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class maintains a Shell.App representing the Trash and keeps it
|
||||||
|
* up-to-date as the trash fills and is emptied over time.
|
||||||
|
*/
|
||||||
|
var Trash = class DashToDock_Trash {
|
||||||
|
_promisified = false;
|
||||||
|
|
||||||
|
static initPromises() {
|
||||||
|
if (Trash._promisified)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Gio._promisify(Gio.FileEnumerator.prototype, 'close_async', 'close_finish');
|
||||||
|
Gio._promisify(Gio.FileEnumerator.prototype, 'next_files_async', 'next_files_finish');
|
||||||
|
Gio._promisify(Gio.file_new_for_uri(TRASH_URI).constructor.prototype,
|
||||||
|
'enumerate_children_async', 'enumerate_children_finish');
|
||||||
|
Trash._promisified = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
Trash.initPromises();
|
||||||
|
this._cancellable = new Gio.Cancellable();
|
||||||
|
this._file = Gio.file_new_for_uri(TRASH_URI);
|
||||||
|
try {
|
||||||
|
this._monitor = this._file.monitor_directory(0, this._cancellable);
|
||||||
|
this._signalId = this._monitor.connect(
|
||||||
|
'changed',
|
||||||
|
this._onTrashChange.bind(this)
|
||||||
|
);
|
||||||
|
} catch (e) {
|
||||||
|
if (e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
|
||||||
|
return;
|
||||||
|
logError(e, 'Impossible to monitor trash');
|
||||||
|
}
|
||||||
|
this._empty = true;
|
||||||
|
this._schedUpdateId = 0;
|
||||||
|
this._updateTrash();
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
this._cancellable.cancel();
|
||||||
|
this._cancellable = null;
|
||||||
|
this._monitor?.disconnect(this._signalId);
|
||||||
|
this._monitor = null;
|
||||||
|
this._file = null;
|
||||||
|
this._trashApp?.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
_onTrashChange() {
|
||||||
|
if (this._schedUpdateId) {
|
||||||
|
GLib.source_remove(this._schedUpdateId);
|
||||||
|
}
|
||||||
|
this._schedUpdateId = GLib.timeout_add(
|
||||||
|
GLib.PRIORITY_LOW, UPDATE_TRASH_DELAY, () => {
|
||||||
|
this._schedUpdateId = 0;
|
||||||
|
this._updateTrash();
|
||||||
|
return GLib.SOURCE_REMOVE;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async _updateTrash() {
|
||||||
|
try {
|
||||||
|
const priority = GLib.PRIORITY_LOW;
|
||||||
|
const cancellable = this._cancellable;
|
||||||
|
const childrenEnumerator = await this._file.enumerate_children_async(
|
||||||
|
Gio.FILE_ATTRIBUTE_STANDARD_TYPE, Gio.FileQueryInfoFlags.NONE,
|
||||||
|
priority, cancellable);
|
||||||
|
const children = await childrenEnumerator.next_files_async(1,
|
||||||
|
priority, cancellable);
|
||||||
|
this._empty = !children.length;
|
||||||
|
this._ensureApp();
|
||||||
|
|
||||||
|
await childrenEnumerator.close_async(priority, null);
|
||||||
|
} catch (e) {
|
||||||
|
if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
|
||||||
|
logError(e, 'Impossible to enumerate trash children');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_ensureApp() {
|
||||||
|
if (this._trashApp == null ||
|
||||||
|
this._lastEmpty !== this._empty) {
|
||||||
|
let trashKeys = new GLib.KeyFile();
|
||||||
|
trashKeys.set_string('Desktop Entry', 'Name', __('Trash'));
|
||||||
|
trashKeys.set_string('Desktop Entry', 'Icon',
|
||||||
|
this._empty ? 'user-trash' : 'user-trash-full');
|
||||||
|
trashKeys.set_string('Desktop Entry', 'Type', 'Application');
|
||||||
|
trashKeys.set_string('Desktop Entry', 'Exec', 'gio open %s'.format(TRASH_URI));
|
||||||
|
trashKeys.set_string('Desktop Entry', 'StartupNotify', 'false');
|
||||||
|
if (!this._empty) {
|
||||||
|
trashKeys.set_string('Desktop Entry', 'Actions', 'empty-trash;');
|
||||||
|
trashKeys.set_string('Desktop Action empty-trash', 'Name', __('Empty Trash'));
|
||||||
|
trashKeys.set_string('Desktop Action empty-trash', 'Exec', 'true');
|
||||||
|
}
|
||||||
|
|
||||||
|
let trashAppInfo = Gio.DesktopAppInfo.new_from_keyfile(trashKeys);
|
||||||
|
this._trashApp?.destroy();
|
||||||
|
this._trashApp = makeLocationApp({
|
||||||
|
location: TRASH_URI + '/',
|
||||||
|
appInfo: trashAppInfo,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!this._empty) {
|
||||||
|
this._trashApp._mi('launch_action',
|
||||||
|
(launchAction, actionName, timestamp, ...args) => {
|
||||||
|
if (actionName === 'empty-trash') {
|
||||||
|
const nautilus = makeNautilusFileOperationsProxy();
|
||||||
|
const askConfirmation = true;
|
||||||
|
nautilus.EmptyTrashRemote(askConfirmation,
|
||||||
|
nautilus.platformData({ timestamp }), (_p, error) => {
|
||||||
|
if (error)
|
||||||
|
logError(error, 'Empty trash failed');
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
return launchAction.call(this, actionName, timestamp, ...args);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this._lastEmpty = this._empty;
|
||||||
|
|
||||||
|
this.emit('changed');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getApp() {
|
||||||
|
this._ensureApp();
|
||||||
|
return this._trashApp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Signals.addSignalMethods(Trash.prototype);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class maintains Shell.App representations for removable devices
|
||||||
|
* plugged into the system, and keeps the list of Apps up-to-date as
|
||||||
|
* devices come and go and are mounted and unmounted.
|
||||||
|
*/
|
||||||
|
var Removables = class DashToDock_Removables {
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
this._signalsHandler = new Utils.GlobalSignalsHandler();
|
||||||
|
|
||||||
|
this._monitor = Gio.VolumeMonitor.get();
|
||||||
|
this._volumeApps = []
|
||||||
|
this._mountApps = []
|
||||||
|
|
||||||
|
this._monitor.get_volumes().forEach(
|
||||||
|
(volume) => {
|
||||||
|
this._onVolumeAdded(this._monitor, volume);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
this._monitor.get_mounts().forEach(
|
||||||
|
(mount) => {
|
||||||
|
this._onMountAdded(this._monitor, mount);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
this._signalsHandler.add([
|
||||||
|
this._monitor,
|
||||||
|
'mount-added',
|
||||||
|
this._onMountAdded.bind(this)
|
||||||
|
], [
|
||||||
|
this._monitor,
|
||||||
|
'mount-removed',
|
||||||
|
this._onMountRemoved.bind(this)
|
||||||
|
], [
|
||||||
|
this._monitor,
|
||||||
|
'volume-added',
|
||||||
|
this._onVolumeAdded.bind(this)
|
||||||
|
], [
|
||||||
|
this._monitor,
|
||||||
|
'volume-removed',
|
||||||
|
this._onVolumeRemoved.bind(this)
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
this._signalsHandler.destroy();
|
||||||
|
this._monitor.run_dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
_getWorkingIconName(icon) {
|
||||||
|
if (icon instanceof Gio.EmblemedIcon) {
|
||||||
|
icon = icon.get_icon();
|
||||||
|
}
|
||||||
|
if (icon instanceof Gio.ThemedIcon) {
|
||||||
|
const { iconTheme } = Docking.DockManager.getDefault();
|
||||||
|
let names = icon.get_names();
|
||||||
|
for (let i = 0; i < names.length; i++) {
|
||||||
|
let iconName = names[i];
|
||||||
|
if (iconTheme.has_icon(iconName)) {
|
||||||
|
return iconName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
} else {
|
||||||
|
return icon.to_string();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_onVolumeAdded(monitor, volume) {
|
||||||
|
if (!volume.can_mount()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (volume.get_identifier('class') == 'network') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let activationRoot = volume.get_activation_root();
|
||||||
|
if (!activationRoot) {
|
||||||
|
// Can't offer to mount a device if we don't know
|
||||||
|
// where to mount it.
|
||||||
|
// These devices are usually ejectable so you
|
||||||
|
// don't normally unmount them anyway.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let escapedUri = activationRoot.get_uri()
|
||||||
|
let uri = GLib.uri_unescape_string(escapedUri, null);
|
||||||
|
|
||||||
|
let volumeKeys = new GLib.KeyFile();
|
||||||
|
volumeKeys.set_string('Desktop Entry', 'Name', volume.get_name());
|
||||||
|
volumeKeys.set_string('Desktop Entry', 'Icon', this._getWorkingIconName(volume.get_icon()));
|
||||||
|
volumeKeys.set_string('Desktop Entry', 'Type', 'Application');
|
||||||
|
volumeKeys.set_string('Desktop Entry', 'Exec', 'gio open "' + uri + '"');
|
||||||
|
volumeKeys.set_string('Desktop Entry', 'StartupNotify', 'false');
|
||||||
|
volumeKeys.set_string('Desktop Entry', 'Actions', 'mount;');
|
||||||
|
volumeKeys.set_string('Desktop Action mount', 'Name', __('Mount'));
|
||||||
|
volumeKeys.set_string('Desktop Action mount', 'Exec', 'gio mount "' + uri + '"');
|
||||||
|
let volumeAppInfo = Gio.DesktopAppInfo.new_from_keyfile(volumeKeys);
|
||||||
|
const volumeApp = makeLocationApp({
|
||||||
|
location: escapedUri,
|
||||||
|
appInfo: volumeAppInfo,
|
||||||
|
});
|
||||||
|
this._volumeApps.push(volumeApp);
|
||||||
|
this.emit('changed');
|
||||||
|
}
|
||||||
|
|
||||||
|
_onVolumeRemoved(monitor, volume) {
|
||||||
|
for (let i = 0; i < this._volumeApps.length; i++) {
|
||||||
|
let app = this._volumeApps[i];
|
||||||
|
if (app.get_name() == volume.get_name()) {
|
||||||
|
const [volumeApp] = this._volumeApps.splice(i, 1);
|
||||||
|
volumeApp.destroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.emit('changed');
|
||||||
|
}
|
||||||
|
|
||||||
|
_onMountAdded(monitor, mount) {
|
||||||
|
// Filter out uninteresting mounts
|
||||||
|
if (!mount.can_eject() && !mount.can_unmount())
|
||||||
|
return;
|
||||||
|
if (mount.is_shadowed())
|
||||||
|
return;
|
||||||
|
|
||||||
|
let volume = mount.get_volume();
|
||||||
|
if (!volume || volume.get_identifier('class') == 'network') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const escapedUri = mount.get_default_location().get_uri()
|
||||||
|
let uri = GLib.uri_unescape_string(escapedUri, null);
|
||||||
|
|
||||||
|
let mountKeys = new GLib.KeyFile();
|
||||||
|
mountKeys.set_string('Desktop Entry', 'Name', mount.get_name());
|
||||||
|
mountKeys.set_string('Desktop Entry', 'Icon',
|
||||||
|
this._getWorkingIconName(volume.get_icon()));
|
||||||
|
mountKeys.set_string('Desktop Entry', 'Type', 'Application');
|
||||||
|
mountKeys.set_string('Desktop Entry', 'Exec', 'gio open "' + uri + '"');
|
||||||
|
mountKeys.set_string('Desktop Entry', 'StartupNotify', 'false');
|
||||||
|
mountKeys.set_string('Desktop Entry', 'Actions', 'unmount;');
|
||||||
|
if (mount.can_eject()) {
|
||||||
|
mountKeys.set_string('Desktop Action unmount', 'Name', __('Eject'));
|
||||||
|
mountKeys.set_string('Desktop Action unmount', 'Exec',
|
||||||
|
'gio mount -e "' + uri + '"');
|
||||||
|
} else {
|
||||||
|
mountKeys.set_string('Desktop Entry', 'Actions', 'unmount;');
|
||||||
|
mountKeys.set_string('Desktop Action unmount', 'Name', __('Unmount'));
|
||||||
|
mountKeys.set_string('Desktop Action unmount', 'Exec',
|
||||||
|
'gio mount -u "' + uri + '"');
|
||||||
|
}
|
||||||
|
let mountAppInfo = Gio.DesktopAppInfo.new_from_keyfile(mountKeys);
|
||||||
|
const mountApp = makeLocationApp({
|
||||||
|
appInfo: mountAppInfo,
|
||||||
|
location: escapedUri,
|
||||||
|
});
|
||||||
|
this._mountApps.push(mountApp);
|
||||||
|
this.emit('changed');
|
||||||
|
}
|
||||||
|
|
||||||
|
_onMountRemoved(monitor, mount) {
|
||||||
|
for (let i = 0; i < this._mountApps.length; i++) {
|
||||||
|
let app = this._mountApps[i];
|
||||||
|
if (app.get_name() == mount.get_name()) {
|
||||||
|
const [mountApp] = this._mountApps.splice(i, 1);
|
||||||
|
mountApp.destroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.emit('changed');
|
||||||
|
}
|
||||||
|
|
||||||
|
getApps() {
|
||||||
|
// When we have both a volume app and a mount app, we prefer
|
||||||
|
// the mount app.
|
||||||
|
let apps = new Map();
|
||||||
|
this._volumeApps.map(function(app) {
|
||||||
|
apps.set(app.get_name(), app);
|
||||||
|
});
|
||||||
|
this._mountApps.map(function(app) {
|
||||||
|
apps.set(app.get_name(), app);
|
||||||
|
});
|
||||||
|
|
||||||
|
return [...apps.values()];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Signals.addSignalMethods(Removables.prototype);
|
||||||
|
|
||||||
|
function getRunningApps() {
|
||||||
|
const dockManager = Docking.DockManager.getDefault();
|
||||||
|
const locationApps = [];
|
||||||
|
|
||||||
|
if (dockManager.removables)
|
||||||
|
locationApps.push(...dockManager.removables.getApps());
|
||||||
|
|
||||||
|
if (dockManager.trash)
|
||||||
|
locationApps.push(dockManager.trash.getApp());
|
||||||
|
|
||||||
|
return locationApps.filter(a => a.state === Shell.AppState.RUNNING);
|
||||||
|
}
|
|
@ -0,0 +1,139 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="18.343554mm"
|
||||||
|
height="18.343554mm"
|
||||||
|
viewBox="0 0 14.674843 14.674842"
|
||||||
|
version="1.1"
|
||||||
|
id="svg4941"
|
||||||
|
sodipodi:docname="glossy.svg"
|
||||||
|
inkscape:version="0.92.1 r15371">
|
||||||
|
<defs
|
||||||
|
id="defs4935">
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient6812"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0;"
|
||||||
|
offset="0"
|
||||||
|
id="stop6810" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:1;"
|
||||||
|
offset="1"
|
||||||
|
id="stop6808" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient18962"
|
||||||
|
id="linearGradient35463"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="matrix(0.29132751,0,0,0.15428114,-54.210829,160.22776)"
|
||||||
|
x1="214.71877"
|
||||||
|
y1="404.36081"
|
||||||
|
x2="214.71877"
|
||||||
|
y2="443.54596" />
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient18962">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop18964" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ffffff;stop-opacity:0;"
|
||||||
|
offset="1"
|
||||||
|
id="stop18966" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
id="linearGradient18806">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#ff0101;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop18808" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#800000;stop-opacity:1;"
|
||||||
|
offset="1"
|
||||||
|
id="stop18810" />
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient6812"
|
||||||
|
id="radialGradient6798"
|
||||||
|
cx="7.3538475"
|
||||||
|
cy="230.28426"
|
||||||
|
fx="7.3538475"
|
||||||
|
fy="230.28426"
|
||||||
|
r="7.2099228"
|
||||||
|
gradientTransform="matrix(5.9484829,-0.0346444,0.01679088,3.0681664,-40.338609,-476.01412)"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="10.68"
|
||||||
|
inkscape:cx="65.485107"
|
||||||
|
inkscape:cy="29.432163"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-width="2560"
|
||||||
|
inkscape:window-height="1406"
|
||||||
|
inkscape:window-x="1920"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
scale-x="0.8"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" />
|
||||||
|
<metadata
|
||||||
|
id="metadata4938">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(0,-222.92515)">
|
||||||
|
<rect
|
||||||
|
inkscape:export-ydpi="180"
|
||||||
|
inkscape:export-xdpi="180"
|
||||||
|
inkscape:export-filename="C:\Arbeit\Blog\Tutorials\glossybutton\Glossy_Button_Tutorial.png"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.35100002;fill:url(#linearGradient35463);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.39747861;marker:none;enable-background:accumulate"
|
||||||
|
id="rect19155"
|
||||||
|
width="14.634871"
|
||||||
|
height="3.7392156"
|
||||||
|
x="0.039808333"
|
||||||
|
y="222.98268"
|
||||||
|
rx="1.5496143"
|
||||||
|
ry="0.82064426" />
|
||||||
|
<rect
|
||||||
|
style="opacity:0.427;fill:url(#radialGradient6798);fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="rect6706"
|
||||||
|
width="14.363673"
|
||||||
|
height="14.404656"
|
||||||
|
x="0.090466507"
|
||||||
|
y="223.07919" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 4.3 KiB |
|
@ -0,0 +1,82 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
viewBox="-0.7 0 48 48"
|
||||||
|
version="1.1"
|
||||||
|
id="svg10"
|
||||||
|
sodipodi:docname="highlight_stacked_bg.svg"
|
||||||
|
width="48"
|
||||||
|
height="48"
|
||||||
|
inkscape:version="0.92.1 r15371">
|
||||||
|
<metadata
|
||||||
|
id="metadata16">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs14" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="951"
|
||||||
|
id="namedview12"
|
||||||
|
showgrid="false"
|
||||||
|
viewbox-x="-0.7"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:zoom="3.8125"
|
||||||
|
inkscape:cx="-63.872219"
|
||||||
|
inkscape:cy="15.195756"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg10" />
|
||||||
|
<g
|
||||||
|
id="g8"
|
||||||
|
transform="matrix(1,0,0,48,-0.7,0)"
|
||||||
|
style="opacity:0.25;fill:#eeeeee;stroke-width:0.14433756">
|
||||||
|
<rect
|
||||||
|
width="45"
|
||||||
|
height="1"
|
||||||
|
id="rect2"
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
style="stroke-width:0.14433756" />
|
||||||
|
<rect
|
||||||
|
x="45"
|
||||||
|
width="1"
|
||||||
|
height="1"
|
||||||
|
id="rect4"
|
||||||
|
y="0"
|
||||||
|
style="opacity:0.2;stroke-width:0.02083333" />
|
||||||
|
<rect
|
||||||
|
x="46"
|
||||||
|
width="2"
|
||||||
|
height="1"
|
||||||
|
id="rect6"
|
||||||
|
y="0"
|
||||||
|
style="opacity:0.6;stroke-width:0.02083333" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
|
@ -0,0 +1,82 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
viewBox="-0.7 0 48 48"
|
||||||
|
version="1.1"
|
||||||
|
id="svg10"
|
||||||
|
sodipodi:docname="highlight_stacked_bg_h.svg"
|
||||||
|
width="48"
|
||||||
|
height="48"
|
||||||
|
inkscape:version="0.92.1 r15371">
|
||||||
|
<metadata
|
||||||
|
id="metadata16">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<defs
|
||||||
|
id="defs14" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1853"
|
||||||
|
inkscape:window-height="1016"
|
||||||
|
id="namedview12"
|
||||||
|
showgrid="false"
|
||||||
|
viewbox-x="-0.7"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:zoom="3.8125"
|
||||||
|
inkscape:cx="-63.872219"
|
||||||
|
inkscape:cy="15.195756"
|
||||||
|
inkscape:window-x="67"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="svg10" />
|
||||||
|
<g
|
||||||
|
id="g8"
|
||||||
|
transform="matrix(0,-1,-48,0,47.3,48)"
|
||||||
|
style="opacity:0.25;fill:#eeeeee;stroke-width:0.14433756">
|
||||||
|
<rect
|
||||||
|
width="45"
|
||||||
|
height="1"
|
||||||
|
id="rect2"
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
style="stroke-width:0.14433756" />
|
||||||
|
<rect
|
||||||
|
x="45"
|
||||||
|
width="1"
|
||||||
|
height="1"
|
||||||
|
id="rect4"
|
||||||
|
y="0"
|
||||||
|
style="opacity:0.2;stroke-width:0.02083333" />
|
||||||
|
<rect
|
||||||
|
x="46"
|
||||||
|
width="2"
|
||||||
|
height="1"
|
||||||
|
id="rect6"
|
||||||
|
y="0"
|
||||||
|
style="opacity:0.6;stroke-width:0.02083333" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
|
@ -0,0 +1,528 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="33.866665mm"
|
||||||
|
height="33.866684mm"
|
||||||
|
viewBox="0 0 33.866665 33.866683"
|
||||||
|
id="svg5179"
|
||||||
|
version="1.1"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
sodipodi:docname="logo.svg">
|
||||||
|
<defs
|
||||||
|
id="defs5181">
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath4379-92-4-9-6-8-0">
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.83189655;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4381-17-7-5-2-0-6"
|
||||||
|
width="19.934219"
|
||||||
|
height="33.52573"
|
||||||
|
x="356.02826"
|
||||||
|
y="457.71631" />
|
||||||
|
</clipPath>
|
||||||
|
<filter
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="filter4435-8-5-3-2-13-8"
|
||||||
|
x="-0.22881356"
|
||||||
|
width="1.4576271"
|
||||||
|
y="-0.22881356"
|
||||||
|
height="1.4576271">
|
||||||
|
<feGaussianBlur
|
||||||
|
inkscape:collect="always"
|
||||||
|
stdDeviation="1.0352993"
|
||||||
|
id="feGaussianBlur4437-6-7-9-8-8-1" />
|
||||||
|
</filter>
|
||||||
|
<filter
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="filter4365-71-5-7-0-6-2"
|
||||||
|
x="-0.21864407"
|
||||||
|
width="1.437288"
|
||||||
|
y="-0.21864407"
|
||||||
|
height="1.437288">
|
||||||
|
<feGaussianBlur
|
||||||
|
inkscape:collect="always"
|
||||||
|
stdDeviation="0.98928601"
|
||||||
|
id="feGaussianBlur4367-74-5-92-0-6-5" />
|
||||||
|
</filter>
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath4379-6-7-5-8-6-01-2">
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.83189655;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4381-1-8-5-2-0-2-7"
|
||||||
|
width="19.934219"
|
||||||
|
height="33.52573"
|
||||||
|
x="356.02826"
|
||||||
|
y="457.71631" />
|
||||||
|
</clipPath>
|
||||||
|
<filter
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="filter4435-6-1-2-8-2-2-7"
|
||||||
|
x="-0.22881356"
|
||||||
|
width="1.4576271"
|
||||||
|
y="-0.22881356"
|
||||||
|
height="1.4576271">
|
||||||
|
<feGaussianBlur
|
||||||
|
inkscape:collect="always"
|
||||||
|
stdDeviation="1.0352993"
|
||||||
|
id="feGaussianBlur4437-1-1-3-60-1-4-4" />
|
||||||
|
</filter>
|
||||||
|
<filter
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="filter4365-4-5-2-24-7-3-3"
|
||||||
|
x="-0.21864407"
|
||||||
|
width="1.437288"
|
||||||
|
y="-0.21864407"
|
||||||
|
height="1.437288">
|
||||||
|
<feGaussianBlur
|
||||||
|
inkscape:collect="always"
|
||||||
|
stdDeviation="0.98928601"
|
||||||
|
id="feGaussianBlur4367-7-0-7-7-9-0-3" />
|
||||||
|
</filter>
|
||||||
|
<clipPath
|
||||||
|
clipPathUnits="userSpaceOnUse"
|
||||||
|
id="clipPath4379-5-6-0-9-8-7-9">
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.83189655;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4381-6-8-5-9-9-2-4"
|
||||||
|
width="19.934219"
|
||||||
|
height="33.52573"
|
||||||
|
x="356.02826"
|
||||||
|
y="457.71631" />
|
||||||
|
</clipPath>
|
||||||
|
<filter
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="filter4435-63-9-2-4-1-2-6"
|
||||||
|
x="-0.22881356"
|
||||||
|
width="1.4576271"
|
||||||
|
y="-0.22881356"
|
||||||
|
height="1.4576271">
|
||||||
|
<feGaussianBlur
|
||||||
|
inkscape:collect="always"
|
||||||
|
stdDeviation="1.0352993"
|
||||||
|
id="feGaussianBlur4437-0-5-6-8-8-9-9" />
|
||||||
|
</filter>
|
||||||
|
<filter
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="filter4365-2-4-3-6-3-1-7"
|
||||||
|
x="-0.21864407"
|
||||||
|
width="1.437288"
|
||||||
|
y="-0.21864407"
|
||||||
|
height="1.437288">
|
||||||
|
<feGaussianBlur
|
||||||
|
inkscape:collect="always"
|
||||||
|
stdDeviation="0.98928601"
|
||||||
|
id="feGaussianBlur4367-1-2-5-3-5-8-3" />
|
||||||
|
</filter>
|
||||||
|
<filter
|
||||||
|
inkscape:collect="always"
|
||||||
|
style="color-interpolation-filters:sRGB"
|
||||||
|
id="filter4255"
|
||||||
|
x="-0.20374454"
|
||||||
|
width="1.4074891"
|
||||||
|
y="-0.13779147"
|
||||||
|
height="1.2755829">
|
||||||
|
<feGaussianBlur
|
||||||
|
inkscape:collect="always"
|
||||||
|
stdDeviation="0.25863247"
|
||||||
|
id="feGaussianBlur4257" />
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="8"
|
||||||
|
inkscape:cx="60.090739"
|
||||||
|
inkscape:cy="60.108985"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="false"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0"
|
||||||
|
inkscape:window-width="1861"
|
||||||
|
inkscape:window-height="1023"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
inkscape:window-maximized="1" />
|
||||||
|
<metadata
|
||||||
|
id="metadata5184">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(136.97858,-11.552354)">
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#0055d4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4006-4-6-9-2-0-6"
|
||||||
|
width="33.83363"
|
||||||
|
height="33.859909"
|
||||||
|
x="-136.9473"
|
||||||
|
y="11.552354"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.25;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.15440008;marker:none;filter:url(#filter4365-3);enable-background:accumulate"
|
||||||
|
d="m -130.12265,11.559157 c -4.30029,5.691881 -6.67207,12.608761 -6.82289,19.674442 -0.0115,0.54232 -0.0147,1.0766 0,1.62024 0.11433,4.23572 1.04846,8.50668 2.82497,12.565201 l 31.00865,0 0,-33.859883 -27.01073,0 z"
|
||||||
|
id="path6097-2-6-0-89-4"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<path
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;enable-background:accumulate"
|
||||||
|
d="m -136.9473,18.430158 0,0.7896 0,20.641361 0,0.7896 1.23782,0 2.26288,0 1.60528,0 c 0.68577,0 1.23783,-0.3548 1.23783,-0.7896 l 0,-20.641361 c 0,-0.4398 -0.55206,-0.7896 -1.23783,-0.7896 l -1.60528,0 -2.26288,0 z"
|
||||||
|
id="rect4008-7-9-2-0-3-4"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="ccccccssssccc"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.15;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.15440008;marker:none;filter:url(#filter4365-3);enable-background:accumulate"
|
||||||
|
d="m -119.36792,11.559157 c -10.47023,5.721881 -17.57762,16.847401 -17.57762,29.627402 0,1.43804 0.0897,2.841801 0.26432,4.232481 l 33.5693,0 0,-33.859883 -16.256,0 z"
|
||||||
|
id="path6097-4-5-23-9"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4247-4-4-5-3-8-1"
|
||||||
|
width="33.83363"
|
||||||
|
height="2.1162443"
|
||||||
|
x="-136.9473"
|
||||||
|
y="11.552354"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
d="m -103.11365,13.668597 0,1.05812 c 0,-0.58196 -0.47338,-1.05812 -1.05731,-1.05812 l 1.05731,0 z"
|
||||||
|
id="rect4272-0-7-8-1-1-3-3-1"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4031-9-9-2-4-2-5"
|
||||||
|
width="4.2292037"
|
||||||
|
height="4.2324886"
|
||||||
|
x="-135.89"
|
||||||
|
y="19.488146"
|
||||||
|
rx="1.0583334"
|
||||||
|
ry="1.0583334"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
d="m -136.94728,13.668597 0,1.05812 c 0,-0.58196 0.47337,-1.05812 1.0573,-1.05812 l -1.0573,0 z"
|
||||||
|
id="rect4272-0-2-1-74-41-1-6"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<g
|
||||||
|
id="g4353-9-2-1-5-5-4"
|
||||||
|
transform="matrix(0.10331261,0,0,0.10339285,-173.76079,-27.453246)"
|
||||||
|
clip-path="url(#clipPath4379-92-4-9-6-8-0)"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099">
|
||||||
|
<circle
|
||||||
|
r="5.4295697"
|
||||||
|
cy="477.71164"
|
||||||
|
cx="274.13016"
|
||||||
|
transform="matrix(0.94749688,0,0,0.94749688,96.290796,21.848877)"
|
||||||
|
id="path3153-1-7-3-5-60-3-6"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.42241378;fill:#d7eef4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;filter:url(#filter4435-8-5-3-2-13-8);enable-background:accumulate" />
|
||||||
|
<circle
|
||||||
|
r="5.4295697"
|
||||||
|
cy="477.71164"
|
||||||
|
cx="274.13016"
|
||||||
|
transform="matrix(0.24231546,0,0,0.24231546,289.60229,358.72226)"
|
||||||
|
id="path3153-2-4-1-6-6-9-4-1"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#d7eef4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;filter:url(#filter4365-71-5-7-0-6-2);enable-background:accumulate" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g4589-4-1-1-3-6-2"
|
||||||
|
transform="matrix(0.49926208,0,0,0.49964988,-318.21072,-206.05794)"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099">
|
||||||
|
<g
|
||||||
|
clip-path="url(#clipPath4379-6-7-5-8-6-01-2)"
|
||||||
|
transform="matrix(0.20693061,0,0,0.20693061,289.32686,368.5622)"
|
||||||
|
id="g4353-66-1-4-2-6-94-5">
|
||||||
|
<circle
|
||||||
|
r="5.4295697"
|
||||||
|
cy="477.71164"
|
||||||
|
cx="274.13016"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.42241378;fill:#d7eef4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;filter:url(#filter4435-6-1-2-8-2-2-7);enable-background:accumulate"
|
||||||
|
id="path3153-1-6-4-5-63-7-1-0"
|
||||||
|
transform="matrix(0.94749688,0,0,0.94749688,96.290796,21.848877)" />
|
||||||
|
<circle
|
||||||
|
r="5.4295697"
|
||||||
|
cy="477.71164"
|
||||||
|
cx="274.13016"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#d7eef4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;filter:url(#filter4365-4-5-2-24-7-3-3);enable-background:accumulate"
|
||||||
|
id="path3153-2-4-7-6-5-8-5-9-5"
|
||||||
|
transform="matrix(0.24231546,0,0,0.24231546,289.60229,358.72226)" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
clip-path="url(#clipPath4379-5-6-0-9-8-7-9)"
|
||||||
|
transform="matrix(0.20693061,0,0,0.20693061,289.32686,367.53449)"
|
||||||
|
id="g4353-7-2-2-6-4-5-1">
|
||||||
|
<circle
|
||||||
|
r="5.4295697"
|
||||||
|
cy="477.71164"
|
||||||
|
cx="274.13016"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.42241378;fill:#d7eef4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;filter:url(#filter4435-63-9-2-4-1-2-6);enable-background:accumulate"
|
||||||
|
id="path3153-1-19-3-1-5-5-7-8"
|
||||||
|
transform="matrix(0.94749688,0,0,0.94749688,96.290796,21.848877)" />
|
||||||
|
<circle
|
||||||
|
r="5.4295697"
|
||||||
|
cy="477.71164"
|
||||||
|
cx="274.13016"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#d7eef4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;filter:url(#filter4365-2-4-3-6-3-1-7);enable-background:accumulate"
|
||||||
|
id="path3153-2-4-5-7-9-9-9-7-6"
|
||||||
|
transform="matrix(0.24231546,0,0,0.24231546,289.60229,358.72226)" />
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:1.28805089px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none"
|
||||||
|
x="-124.44726"
|
||||||
|
y="13.10139"
|
||||||
|
id="text4824-5-2-0-4-8"
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099"
|
||||||
|
transform="scale(0.99961185,1.0003883)"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan4826-16-3-8-8-1"
|
||||||
|
x="-124.44726"
|
||||||
|
y="13.10139">Dash to Dock</tspan></text>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:1.28805089px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none"
|
||||||
|
x="-136.50272"
|
||||||
|
y="13.10139"
|
||||||
|
id="text4824-8-8-6-8-7-4"
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099"
|
||||||
|
transform="scale(0.99961185,1.0003883)"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan4826-1-7-7-5-07-5"
|
||||||
|
x="-136.50272"
|
||||||
|
y="13.10139">Michele</tspan></text>
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4031-9-0-8-5-4-0-7-6"
|
||||||
|
width="4.2292037"
|
||||||
|
height="4.2324886"
|
||||||
|
x="-135.89"
|
||||||
|
y="24.778917"
|
||||||
|
rx="1.0583334"
|
||||||
|
ry="1.0583334"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4031-9-0-7-3-3-6-0-1"
|
||||||
|
width="4.2292037"
|
||||||
|
height="4.2324886"
|
||||||
|
x="-135.89"
|
||||||
|
y="30.069445"
|
||||||
|
rx="1.0583334"
|
||||||
|
ry="1.0583334"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.04922473;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4031-9-0-6-5-1-3-9-0"
|
||||||
|
width="4.2292037"
|
||||||
|
height="4.2324886"
|
||||||
|
x="-135.89"
|
||||||
|
y="35.359974"
|
||||||
|
rx="1.0583334"
|
||||||
|
ry="1.0583334"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<path
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.5;fill:#808080;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;enable-background:accumulate"
|
||||||
|
d="m -136.9473,17.901078 0,0.52908 2.42849,0 2.21372,0 c 0.94338,0 1.7016,0.3372 1.7016,0.77704 l 0,20.649921 c 0,0.43476 -0.75822,0.7936 -1.7016,0.7936 l -2.21372,0 -2.42849,0 0,0.52904 0.90862,0 2.64325,0 1.88332,0 c 0.80005,0 1.43727,-0.3712 1.43727,-0.82664 l 0,-21.625361 c 0,-0.46072 -0.63722,-0.82668 -1.43727,-0.82668 l -1.88332,0 -2.64325,0 z"
|
||||||
|
id="rect4008-7-0-0-3-3-3-7-9"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccsssscccccssssccc"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<path
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.25;fill:#1a1a1a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;enable-background:accumulate"
|
||||||
|
d="m -136.9473,17.901078 0,0.52908 2.42849,0 2.21372,0 c 0.94338,0 1.7016,0.3372 1.7016,0.77704 l 0,20.649921 c 0,0.43476 -0.75822,0.7936 -1.7016,0.7936 l -2.21372,0 -2.42849,0 0,0.52904 0.90862,0 2.64325,0 1.88332,0 c 0.80005,0 1.43727,-0.3712 1.43727,-0.82664 l 0,-21.625361 c 0,-0.46072 -0.63722,-0.82668 -1.43727,-0.82668 l -1.88332,0 -2.64325,0 z"
|
||||||
|
id="rect4008-7-0-0-3-1-5-0-5-5"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccsssscccccssssccc"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="44.99099"
|
||||||
|
inkscape:export-ydpi="44.99099" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#f2f2f2;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;filter:url(#filter4365-3);enable-background:accumulate"
|
||||||
|
id="rect6777-7-9-6-9-8"
|
||||||
|
width="20.108335"
|
||||||
|
height="18.256252"
|
||||||
|
x="-125.24149"
|
||||||
|
y="19.139757"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="45"
|
||||||
|
inkscape:export-ydpi="45" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.25;fill:#1a1a1a;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.13229166;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4923-8-7-8-2"
|
||||||
|
width="3.7041669"
|
||||||
|
height="3.7041669"
|
||||||
|
x="-116.71888"
|
||||||
|
y="30.163927"
|
||||||
|
rx="1.0583334"
|
||||||
|
ry="1.0583334" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.15;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;filter:url(#filter4365-3);enable-background:accumulate"
|
||||||
|
d="m -111.94623,19.146638 c -5.49508,1.3884 -10.21465,5.00036 -13.29531,9.92188 l 0,8.334361 20.10833,0 0,-18.256241 -6.81302,0 z"
|
||||||
|
id="path6862-84-2-2-6-7"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="45"
|
||||||
|
inkscape:export-ydpi="45" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#cccccc;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;filter:url(#filter4365-3);enable-background:accumulate"
|
||||||
|
d="m -125.02657,18.882038 c -0.11728,0 -0.21496,0.0812 -0.21496,0.1984 l 0,0.44648 0,1.2568 0,0.2148 0.21496,0 19.67838,0 0.215,0 0,-0.2148 0,-1.2568 0,-0.44648 c 0,-0.1172 -0.0977,-0.1984 -0.215,-0.1984 l -19.67838,0 z"
|
||||||
|
id="rect6779-5-8-6-4-6"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="45"
|
||||||
|
inkscape:export-ydpi="45" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#999999;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;filter:url(#filter4365-3);enable-background:accumulate"
|
||||||
|
id="rect6779-2-3-9-9-0-8"
|
||||||
|
width="20.108335"
|
||||||
|
height="0.5291667"
|
||||||
|
x="-125.24149"
|
||||||
|
y="20.991808"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="45"
|
||||||
|
inkscape:export-ydpi="45" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#b3b3b3;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;filter:url(#filter4365-3);enable-background:accumulate"
|
||||||
|
id="rect6779-2-4-8-0-7-1-1"
|
||||||
|
width="15.875001"
|
||||||
|
height="0.5291667"
|
||||||
|
x="21.521105"
|
||||||
|
y="105.13315"
|
||||||
|
transform="rotate(90)"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="45"
|
||||||
|
inkscape:export-ydpi="45" />
|
||||||
|
<g
|
||||||
|
id="g6839-1-5-1-33-0"
|
||||||
|
transform="matrix(0.02002288,0.02002284,-0.02002288,0.02002284,-106.62848,-6.0229242)"
|
||||||
|
style="fill:#1a1a1a"
|
||||||
|
inkscape:export-filename="/home/michele/Dropbox/lavori/gnome-shell-extension/icon/g5218.png"
|
||||||
|
inkscape:export-xdpi="45"
|
||||||
|
inkscape:export-ydpi="45">
|
||||||
|
<rect
|
||||||
|
y="616.07727"
|
||||||
|
x="653.01312"
|
||||||
|
height="41.542522"
|
||||||
|
width="11.313708"
|
||||||
|
id="rect6819-8-9-2-56-9"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#1a1a1a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;filter:url(#filter4365-3);enable-background:accumulate" />
|
||||||
|
<rect
|
||||||
|
transform="rotate(90)"
|
||||||
|
y="-679.44122"
|
||||||
|
x="631.19165"
|
||||||
|
height="41.542522"
|
||||||
|
width="11.313708"
|
||||||
|
id="rect6819-3-9-4-3-1-5"
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#1a1a1a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;filter:url(#filter4365-3);enable-background:accumulate" />
|
||||||
|
</g>
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.25;fill:#1a1a1a;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.13229166;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4923-6-8-9-1"
|
||||||
|
width="3.7041669"
|
||||||
|
height="3.7041669"
|
||||||
|
x="-123.59805"
|
||||||
|
y="30.163927"
|
||||||
|
rx="1.0583334"
|
||||||
|
ry="1.0583334" />
|
||||||
|
<path
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.26458335;stroke-miterlimit:4;stroke-dasharray:none;marker:none;enable-background:accumulate;opacity:0.866;filter:url(#filter4255)"
|
||||||
|
d="m -121.46776,32.043964 -5e-4,1.742839 -4.9e-4,1.742839 0.71518,-0.708051 0.99716,1.727136 1.33421,-0.770304 -0.99542,-1.724104 0.96903,-0.268366 -1.50959,-0.870995 z"
|
||||||
|
id="path6155-6-0-01-4-5-6-0-0"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccccccccc" />
|
||||||
|
<path
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:0.13229167;stroke-miterlimit:4;stroke-dasharray:none;marker:none;filter:url(#filter4365-3);enable-background:accumulate"
|
||||||
|
d="m -121.86464,32.043964 -5e-4,1.742839 -4.9e-4,1.742839 0.71518,-0.708051 1.05563,1.8284 1.3342,-0.770304 -1.05388,-1.825368 0.96903,-0.268366 -1.50959,-0.870995 z"
|
||||||
|
id="path6155-6-0-8-0-7-97-5"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccccccccc" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.25;fill:#1a1a1a;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.13229166;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4923-4-8-4"
|
||||||
|
width="3.7041669"
|
||||||
|
height="3.7041669"
|
||||||
|
x="-123.59805"
|
||||||
|
y="23.020128"
|
||||||
|
rx="1.0583334"
|
||||||
|
ry="1.0583334" />
|
||||||
|
<rect
|
||||||
|
style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.25;fill:#1a1a1a;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.13229166;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
|
||||||
|
id="rect4923-2-6-7-8"
|
||||||
|
width="3.7041669"
|
||||||
|
height="3.7041669"
|
||||||
|
x="-116.71888"
|
||||||
|
y="23.020128"
|
||||||
|
rx="1.0583334"
|
||||||
|
ry="1.0583334" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 26 KiB |
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"_generated": "Generated by SweetTooth, do not edit",
|
||||||
|
"description": "A dock for the Gnome Shell. This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops. Side and bottom placement options are available.",
|
||||||
|
"gettext-domain": "dashtodock",
|
||||||
|
"name": "Dash to Dock",
|
||||||
|
"original-author": "micxgx@gmail.com",
|
||||||
|
"shell-version": [
|
||||||
|
"40",
|
||||||
|
"41"
|
||||||
|
],
|
||||||
|
"url": "https://micheleg.github.io/dash-to-dock/",
|
||||||
|
"uuid": "dash-to-dock@micxgx.gmail.com",
|
||||||
|
"version": 71
|
||||||
|
}
|
|
@ -0,0 +1,566 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<schemalist gettext-domain="gnome-shell-extensions">
|
||||||
|
<enum id='org.gnome.shell.extensions.dash-to-dock.clickAction'>
|
||||||
|
<value value='0' nick='skip'/>
|
||||||
|
<value value='1' nick='minimize'/>
|
||||||
|
<value value='2' nick='launch'/>
|
||||||
|
<value value='3' nick='cycle-windows'/>
|
||||||
|
<value value='4' nick='minimize-or-overview'/>
|
||||||
|
<value value='5' nick='previews'/>
|
||||||
|
<value value='6' nick='minimize-or-previews'/>
|
||||||
|
<value value='7' nick='focus-or-previews'/>
|
||||||
|
<value value='8' nick='focus-minimize-or-previews'/>
|
||||||
|
<value value='9' nick='quit'/>
|
||||||
|
</enum>
|
||||||
|
<enum id='org.gnome.shell.extensions.dash-to-dock.scrollAction'>
|
||||||
|
<value value='0' nick='do-nothing'/>
|
||||||
|
<value value='1' nick='cycle-windows'/>
|
||||||
|
<value value='2' nick='switch-workspace'/>
|
||||||
|
</enum>
|
||||||
|
<!-- this is mean to Match StSide. LEFT and RIGHT actual position in reversed in
|
||||||
|
rtl languages -->
|
||||||
|
<enum id='org.gnome.shell.extensions.dash-to-dock.position'>
|
||||||
|
<value value='0' nick='TOP'/>
|
||||||
|
<value value='1' nick='RIGHT'/>
|
||||||
|
<value value='2' nick='BOTTOM'/>
|
||||||
|
<value value='3' nick='LEFT'/>
|
||||||
|
</enum>
|
||||||
|
<enum id='org.gnome.shell.extensions.dash-to-dock.intellihide-mode'>
|
||||||
|
<value value='0' nick='ALL_WINDOWS'/>
|
||||||
|
<value value='1' nick='FOCUS_APPLICATION_WINDOWS'/>
|
||||||
|
<value value='2' nick='MAXIMIZED_WINDOWS'/>
|
||||||
|
</enum>
|
||||||
|
<enum id='org.gnome.shell.extensions.dash-to-dock.transparency-mode'>
|
||||||
|
<value value='0' nick='DEFAULT'/>
|
||||||
|
<value value='1' nick='FIXED'/>
|
||||||
|
<value value='3' nick='DYNAMIC'/>
|
||||||
|
</enum>
|
||||||
|
<enum id='org.gnome.shell.extensions.dash-to-dock.running-indicator-style'>
|
||||||
|
<value value='0' nick='DEFAULT'/>
|
||||||
|
<value value='1' nick='DOTS'/>
|
||||||
|
<value value='2' nick='SQUARES'/>
|
||||||
|
<value value='3' nick='DASHES'/>
|
||||||
|
<value value='4' nick='SEGMENTED'/>
|
||||||
|
<value value='5' nick='SOLID'/>
|
||||||
|
<value value='6' nick='CILIORA'/>
|
||||||
|
<value value='7' nick='METRO'/>
|
||||||
|
</enum>
|
||||||
|
<schema path="/org/gnome/shell/extensions/dash-to-dock/" id="org.gnome.shell.extensions.dash-to-dock">
|
||||||
|
<key name="dock-position" enum="org.gnome.shell.extensions.dash-to-dock.position">
|
||||||
|
<default>'BOTTOM'</default>
|
||||||
|
<summary>Dock position</summary>
|
||||||
|
<description>Dock is shown on the Left, Right, Top or Bottom side of the screen.</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="animation-time">
|
||||||
|
<default>0.2</default>
|
||||||
|
<summary>Animation time</summary>
|
||||||
|
<description>Sets the time duration of the autohide effect.</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="show-delay">
|
||||||
|
<default>0.25</default>
|
||||||
|
<summary>Show delay</summary>
|
||||||
|
<description>Sets the delay after the mouse reaches the screen border before showing the dock.</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="hide-delay">
|
||||||
|
<default>0.20</default>
|
||||||
|
<summary>Show delay</summary>
|
||||||
|
<description>Sets the delay after the mouse left the dock before hiding it.</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="custom-background-color">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Set a custom dash background background color</summary>
|
||||||
|
<description>Sets the color for the dash background.</description>
|
||||||
|
</key>
|
||||||
|
<key type="s" name="background-color">
|
||||||
|
<default>"#ffffff"</default>
|
||||||
|
<summary>Dash background color.</summary>
|
||||||
|
<description>Customize the background color of the dash.</description>
|
||||||
|
</key>
|
||||||
|
<key name="transparency-mode" enum="org.gnome.shell.extensions.dash-to-dock.transparency-mode">
|
||||||
|
<default>'DEFAULT'</default>
|
||||||
|
<summary>Transparency mode for the dock</summary>
|
||||||
|
<description>FIXED: constant transparency. DYNAMIC: dock takes the opaque style only when windows are close to it.</description>
|
||||||
|
</key>
|
||||||
|
<key name="running-indicator-style" enum="org.gnome.shell.extensions.dash-to-dock.running-indicator-style">
|
||||||
|
<default>'DEFAULT'</default>
|
||||||
|
<summary>...</summary>
|
||||||
|
<description>DEFAULT: .... DOTS: ....</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="running-indicator-dominant-color">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Use application icon dominant color for the indicator color</summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="customize-alphas">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Manually set the min and max opacity</summary>
|
||||||
|
<description>For the dynamic mode, the min/max opacity values will be given by 'min-alpha' and 'max-alpha'.</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="min-alpha">
|
||||||
|
<default>0.2</default>
|
||||||
|
<summary>Opacity of the dash background when free-floating</summary>
|
||||||
|
<description>Sets the opacity of the dash background when no windows are close.</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="max-alpha">
|
||||||
|
<default>0.8</default>
|
||||||
|
<summary>Opacity of the dash background when windows are close.</summary>
|
||||||
|
<description>Sets the opacity of the dash background when windows are close.</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="background-opacity">
|
||||||
|
<default>0.8</default>
|
||||||
|
<summary>Opacity of the dash background</summary>
|
||||||
|
<description>Sets the opacity of the dash background when in autohide mode.</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="intellihide">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Dock dodges windows</summary>
|
||||||
|
<description>Enable or disable intellihide mode</description>
|
||||||
|
</key>
|
||||||
|
<key name="intellihide-mode" enum="org.gnome.shell.extensions.dash-to-dock.intellihide-mode">
|
||||||
|
<default>'FOCUS_APPLICATION_WINDOWS'</default>
|
||||||
|
<summary>Define which windows are considered for intellihide.</summary>
|
||||||
|
<description></description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="autohide">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Dock shown on mouse over</summary>
|
||||||
|
<description>Enable or disable autohide mode</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="require-pressure-to-show">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Require pressure to show dash</summary>
|
||||||
|
<description>Enable or disable requiring pressure to show the dash</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="pressure-threshold">
|
||||||
|
<default>100</default>
|
||||||
|
<summary>Pressure threshold</summary>
|
||||||
|
<description>Sets how much pressure is needed to show the dash.</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="autohide-in-fullscreen">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Enable autohide in fullscreen mode.</summary>
|
||||||
|
<description>Enable autohide in fullscreen mode.</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="dock-fixed">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Dock always visible</summary>
|
||||||
|
<description>Dock is always visible</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="scroll-switch-workspace">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Switch workspace by scrolling over the dock</summary>
|
||||||
|
<description>Add the possibility to switch workspace by mouse scrolling over the dock.</description>
|
||||||
|
</key>
|
||||||
|
<key type="i" name="dash-max-icon-size">
|
||||||
|
<default>48</default>
|
||||||
|
<summary>Maximum dash icon size</summary>
|
||||||
|
<description>Set the allowed maximum dash icon size. Allowed range: 16..64.</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="preview-size-scale">
|
||||||
|
<default>0</default>
|
||||||
|
<summary>Preview size scale</summary>
|
||||||
|
<description>Set the allowed maximum dash preview size scale. Allowed range: 0,00..1,00.</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="icon-size-fixed">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Fixed icon size</summary>
|
||||||
|
<description>Keep the icon size fixed by scrolling the dock.</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="apply-custom-theme">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Apply custom theme</summary>
|
||||||
|
<description>Apply customization to the dash appearance</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="custom-theme-shrink">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>TODO</summary>
|
||||||
|
<description>TODO</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="custom-theme-customize-running-dots">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Customize the style of the running application indicators.</summary>
|
||||||
|
<description>Customize the style of the running application indicators.</description>
|
||||||
|
</key>
|
||||||
|
<key type="s" name="custom-theme-running-dots-color">
|
||||||
|
<default>"#ffffff"</default>
|
||||||
|
<summary>Running application indicators color</summary>
|
||||||
|
<description>Customize the color of the running application indicators.</description>
|
||||||
|
</key>
|
||||||
|
<key type="s" name="custom-theme-running-dots-border-color">
|
||||||
|
<default>"#ffffff"</default>
|
||||||
|
<summary>Running application indicators border color.</summary>
|
||||||
|
<description>Customize the border color of the running application indicators.</description>
|
||||||
|
</key>
|
||||||
|
<key type="i" name="custom-theme-running-dots-border-width">
|
||||||
|
<default>0</default>
|
||||||
|
<summary>Running application indicators border width.</summary>
|
||||||
|
<description>Customize the border width of the running application indicators.</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="show-running">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show running apps</summary>
|
||||||
|
<description>Show or hide running applications icons in the dash</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="isolate-workspaces">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Provide workspace isolation</summary>
|
||||||
|
<description>Dash shows only windows from the currentworkspace</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="isolate-monitors">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Provide monitor isolation</summary>
|
||||||
|
<description>Dash shows only windows from the monitor</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="scroll-to-focused-application">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Scroll to focused application</summary>
|
||||||
|
<description>Ensure that the focused application icon is always visible in the dash</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="show-windows-preview">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show preview of the open windows</summary>
|
||||||
|
<description>Replace open windows list with windows previews</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="show-favorites">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show favorites apps</summary>
|
||||||
|
<description>Show or hide favorite applications icons in the dash</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="show-trash">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show trash can</summary>
|
||||||
|
<description>Show or hide the trash can icon in the dash</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="show-mounts">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show mounted volumes and devices</summary>
|
||||||
|
<description>Show or hide mounted volume and device icons in the dash</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="isolate-locations">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Isolate volumes, devices and trash windows</summary>
|
||||||
|
<description>Consider volume, devices and trash as different application windows and not part of the file manager</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="show-show-apps-button">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show applications button</summary>
|
||||||
|
<description>Show applications button in the dash</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="show-apps-at-top">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Show application button on the left</summary>
|
||||||
|
<description>Show application button on the left of the dash</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="animate-show-apps">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Animate Show Applications from the desktop</summary>
|
||||||
|
<description>Animate Show Applications from the desktop</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="bolt-support">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Basic compatibility with bolt extensions</summary>
|
||||||
|
<description>Make the extension work properly when bolt extensions is enabled</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="height-fraction">
|
||||||
|
<default>0.90</default>
|
||||||
|
<summary>Dock max height (fraction of available space)</summary>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="extend-height">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Extend the dock container to all the available height</summary>
|
||||||
|
</key>
|
||||||
|
<key type="i" name="preferred-monitor">
|
||||||
|
<default>-1</default>
|
||||||
|
<summary>Monitor on which putting the dock</summary>
|
||||||
|
<description>Set on which monitor to put the dock, use -1 for the primary one</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="multi-monitor">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Enable multi-monitor docks</summary>
|
||||||
|
<description>Show a dock on every monitor</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="minimize-shift">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Minimize on shift+click</summary>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="activate-single-window">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Activate only one window</summary>
|
||||||
|
</key>
|
||||||
|
<key name="click-action" enum="org.gnome.shell.extensions.dash-to-dock.clickAction">
|
||||||
|
<default>'cycle-windows'</default>
|
||||||
|
<summary>Action when clicking on a running app</summary>
|
||||||
|
<description>Set the action that is executed when clicking on the icon of a running application</description>
|
||||||
|
</key>
|
||||||
|
<key name="scroll-action" enum="org.gnome.shell.extensions.dash-to-dock.scrollAction">
|
||||||
|
<default>'do-nothing'</default>
|
||||||
|
<summary>Action when scrolling app</summary>
|
||||||
|
<description>Set the action that is executed when scrolling on the application icon</description>
|
||||||
|
</key>
|
||||||
|
<key name="shift-click-action" enum="org.gnome.shell.extensions.dash-to-dock.clickAction">
|
||||||
|
<default>'minimize'</default>
|
||||||
|
<summary>Action when shift+clicking on a running app</summary>
|
||||||
|
<description>Set the action that is executed when shift+clicking on the icon of a running application</description>
|
||||||
|
</key>
|
||||||
|
<key name="middle-click-action" enum="org.gnome.shell.extensions.dash-to-dock.clickAction">
|
||||||
|
<default>'launch'</default>
|
||||||
|
<summary>Action when clicking on a running app</summary>
|
||||||
|
<description>Set the action that is executed when middle-clicking on the icon of a running application</description>
|
||||||
|
</key>
|
||||||
|
<key name="shift-middle-click-action" enum="org.gnome.shell.extensions.dash-to-dock.clickAction">
|
||||||
|
<default>'launch'</default>
|
||||||
|
<summary>Action when clicking on a running app</summary>
|
||||||
|
<description>Set the action that is executed when shift+middle-clicking on the icon of a running application</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="hot-keys">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Super Hot-Keys</summary>
|
||||||
|
<description>Launch and switch between dash items using Super+(0-9)</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="hotkeys-show-dock">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show the dock when using the hotkeys</summary>
|
||||||
|
<description>The dock will be quickly shown so that the number-overlay is visible and app activation is easier</description>
|
||||||
|
</key>
|
||||||
|
<key type="s" name="shortcut-text">
|
||||||
|
<default>"<Super>q"</default>
|
||||||
|
<summary>Keybinding to show the dock and the number overlay.</summary>
|
||||||
|
<description>Behavior depends on hotkeys-show-dock and hotkeys-overlay.</description>
|
||||||
|
</key>
|
||||||
|
<key type="as" name="shortcut">
|
||||||
|
<default><![CDATA[['<Super>q']]]></default>
|
||||||
|
<summary>Keybinding to show the dock and the number overlay.</summary>
|
||||||
|
<description>Behavior depends on hotkeys-show-dock and hotkeys-overlay.</description>
|
||||||
|
</key>
|
||||||
|
<key type="d" name="shortcut-timeout">
|
||||||
|
<default>2</default>
|
||||||
|
<summary>Timeout to hide the dock</summary>
|
||||||
|
<description>Sets the time duration before the dock is hidden again.</description>
|
||||||
|
</key>
|
||||||
|
<key type="b" name="hotkeys-overlay">
|
||||||
|
<default>true</default>
|
||||||
|
<summary>Show the dock when using the hotkeys</summary>
|
||||||
|
<description>The dock will be quickly shown so that the number-overlay is visible and app activation is easier</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-1" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>1']]]></default>
|
||||||
|
<summary>Keybinding to launch 1st dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 1st app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-2" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>2']]]></default>
|
||||||
|
<summary>Keybinding to launch 2nd dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 2nd app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-3" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>3']]]></default>
|
||||||
|
<summary>Keybinding to launch 3rd dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 3rd app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-4" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>4']]]></default>
|
||||||
|
<summary>Keybinding to launch 4th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 4th app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-5" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>5']]]></default>
|
||||||
|
<summary>Keybinding to launch 5th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 5th app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-6" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>6']]]></default>
|
||||||
|
<summary>Keybinding to launch 6th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 6th app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-7" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>7']]]></default>
|
||||||
|
<summary>Keybinding to launch 7th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 7th app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-8" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>8']]]></default>
|
||||||
|
<summary>Keybinding to launch 8th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 8th app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-9" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>9']]]></default>
|
||||||
|
<summary>Keybinding to launch 9th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 9th app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-ctrl-hotkey-10" type="as">
|
||||||
|
<default><![CDATA[['<Ctrl><Super>0']]]></default>
|
||||||
|
<summary>Keybinding to launch 10th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to launch 10th app.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-1" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>1']]]></default>
|
||||||
|
<summary>Keybinding to trigger 1st dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 1st app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-2" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>2']]]></default>
|
||||||
|
<summary>Keybinding to trigger 2nd dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 2nd app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-3" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>3']]]></default>
|
||||||
|
<summary>Keybinding to trigger 3rd dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 3rd app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-4" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>4']]]></default>
|
||||||
|
<summary>Keybinding to trigger 4th dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 4th app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-5" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>5']]]></default>
|
||||||
|
<summary>Keybinding to trigger 5th dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 5th app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-6" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>6']]]></default>
|
||||||
|
<summary>Keybinding to trigger 6th dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 6th app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-7" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>7']]]></default>
|
||||||
|
<summary>Keybinding to trigger 7th dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 7th app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-8" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>8']]]></default>
|
||||||
|
<summary>Keybinding to trigger 8th dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 8th app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-9" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>9']]]></default>
|
||||||
|
<summary>Keybinding to trigger 9th dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 9th app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-shift-hotkey-10" type="as">
|
||||||
|
<default><![CDATA[['<Shift><Super>0']]]></default>
|
||||||
|
<summary>Keybinding to trigger 10th dash app with shift behavior</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to trigger 10th app with shift behavior.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-1" type="as">
|
||||||
|
<default><![CDATA[['<Super>1']]]></default>
|
||||||
|
<summary>Keybinding to trigger 1st dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 1st application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-2" type="as">
|
||||||
|
<default><![CDATA[['<Super>2']]]></default>
|
||||||
|
<summary>Keybinding to trigger 2nd dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 2nd application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-3" type="as">
|
||||||
|
<default><![CDATA[['<Super>3']]]></default>
|
||||||
|
<summary>Keybinding to trigger 3rd dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 3rd application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-4" type="as">
|
||||||
|
<default><![CDATA[['<Super>4']]]></default>
|
||||||
|
<summary>Keybinding to trigger 4th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 4th application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-5" type="as">
|
||||||
|
<default><![CDATA[['<Super>5']]]></default>
|
||||||
|
<summary>Keybinding to trigger 5th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 5th application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-6" type="as">
|
||||||
|
<default><![CDATA[['<Super>6']]]></default>
|
||||||
|
<summary>Keybinding to trigger 6th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 6th application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-7" type="as">
|
||||||
|
<default><![CDATA[['<Super>7']]]></default>
|
||||||
|
<summary>Keybinding to trigger 7th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 7th application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-8" type="as">
|
||||||
|
<default><![CDATA[['<Super>8']]]></default>
|
||||||
|
<summary>Keybinding to trigger 8th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 8th application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-9" type="as">
|
||||||
|
<default><![CDATA[['<Super>9']]]></default>
|
||||||
|
<summary>Keybinding to trigger 9th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 9th application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="app-hotkey-10" type="as">
|
||||||
|
<default><![CDATA[['<Super>0']]]></default>
|
||||||
|
<summary>Keybinding to trigger 10th dash app</summary>
|
||||||
|
<description>
|
||||||
|
Keybinding to either show or launch the 10th application in the dash.
|
||||||
|
</description>
|
||||||
|
</key>
|
||||||
|
<key name="force-straight-corner" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Force straight corners in dash</summary>
|
||||||
|
<description>Make the borders in the dash non rounded</description>
|
||||||
|
</key>
|
||||||
|
<key name="unity-backlit-items" type="b">
|
||||||
|
<default>false</default>
|
||||||
|
<summary>Enable unity7 like glossy backlit items</summary>
|
||||||
|
<description>Emulate the unity7 backlit glossy items behaviour</description>
|
||||||
|
</key>
|
||||||
|
</schema>
|
||||||
|
</schemalist>
|
|
@ -0,0 +1,528 @@
|
||||||
|
#dashtodockContainer.bottom #dash {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px; }
|
||||||
|
#dashtodockContainer.bottom #dash .dash-background {
|
||||||
|
margin: 0;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
padding: 0; }
|
||||||
|
#dashtodockContainer.bottom #dash .dash-separator {
|
||||||
|
margin-bottom: 0; }
|
||||||
|
#dashtodockContainer.bottom #dash #dashtodockDashContainer {
|
||||||
|
padding: 10px;
|
||||||
|
padding-bottom: 0;
|
||||||
|
padding-top: 0; }
|
||||||
|
#dashtodockContainer.bottom #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.bottom #dash .dash-item-container .show-apps {
|
||||||
|
padding: 2px;
|
||||||
|
padding-bottom: 14px;
|
||||||
|
padding-top: 10px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom.shrink #dash .dash-background {
|
||||||
|
margin-bottom: 1px;
|
||||||
|
padding: 3px;
|
||||||
|
border-radius: 12px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom.shrink #dash #dashtodockDashContainer {
|
||||||
|
padding: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom.shrink #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.bottom.shrink #dash .dash-item-container .show-apps {
|
||||||
|
padding: 1px;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
padding-top: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom.shrink.fixed #dash .dash-background {
|
||||||
|
margin-top: 1px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom.shrink.fixed #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.bottom.shrink.fixed #dash .dash-item-container .show-apps {
|
||||||
|
padding-top: 4px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom.fixed #dash .dash-background {
|
||||||
|
margin-top: 4px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom.fixed #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.bottom.fixed #dash .dash-item-container .show-apps {
|
||||||
|
padding-top: 14px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top #dash {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px; }
|
||||||
|
#dashtodockContainer.top #dash .dash-background {
|
||||||
|
margin: 0;
|
||||||
|
margin-top: 4px;
|
||||||
|
padding: 0; }
|
||||||
|
#dashtodockContainer.top #dash .dash-separator {
|
||||||
|
margin-bottom: 0; }
|
||||||
|
#dashtodockContainer.top #dash #dashtodockDashContainer {
|
||||||
|
padding: 10px;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0; }
|
||||||
|
#dashtodockContainer.top #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.top #dash .dash-item-container .show-apps {
|
||||||
|
padding: 2px;
|
||||||
|
padding-top: 14px;
|
||||||
|
padding-bottom: 10px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top.shrink #dash .dash-background {
|
||||||
|
margin-top: 1px;
|
||||||
|
padding: 3px;
|
||||||
|
border-radius: 12px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top.shrink #dash #dashtodockDashContainer {
|
||||||
|
padding: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top.shrink #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.top.shrink #dash .dash-item-container .show-apps {
|
||||||
|
padding: 1px;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top.shrink.fixed #dash .dash-background {
|
||||||
|
margin-bottom: 1px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top.shrink.fixed #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.top.shrink.fixed #dash .dash-item-container .show-apps {
|
||||||
|
padding-bottom: 4px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top.fixed #dash .dash-background {
|
||||||
|
margin-bottom: 4px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top.fixed #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.top.fixed #dash .dash-item-container .show-apps {
|
||||||
|
padding-bottom: 14px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left #dash {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px; }
|
||||||
|
#dashtodockContainer.left #dash .dash-background {
|
||||||
|
margin: 0;
|
||||||
|
margin-left: 4px;
|
||||||
|
padding: 0; }
|
||||||
|
#dashtodockContainer.left #dash .dash-separator {
|
||||||
|
height: 1px;
|
||||||
|
margin: 7px 0;
|
||||||
|
background-color: rgba(238, 238, 236, 0.3); }
|
||||||
|
#dashtodockContainer.left #dash #dashtodockDashContainer {
|
||||||
|
padding: 10px;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0; }
|
||||||
|
#dashtodockContainer.left #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.left #dash .dash-item-container .show-apps {
|
||||||
|
padding: 2px;
|
||||||
|
padding-left: 14px;
|
||||||
|
padding-right: 10px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left.shrink #dash .dash-background {
|
||||||
|
margin-left: 1px;
|
||||||
|
padding: 3px;
|
||||||
|
border-radius: 12px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left.shrink #dash #dashtodockDashContainer {
|
||||||
|
padding: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left.shrink #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.left.shrink #dash .dash-item-container .show-apps {
|
||||||
|
padding: 1px;
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left.shrink.fixed #dash .dash-background {
|
||||||
|
margin-right: 1px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left.shrink.fixed #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.left.shrink.fixed #dash .dash-item-container .show-apps {
|
||||||
|
padding-right: 4px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left.fixed #dash .dash-background {
|
||||||
|
margin-right: 4px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left.fixed #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.left.fixed #dash .dash-item-container .show-apps {
|
||||||
|
padding-right: 14px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.right #dash {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px; }
|
||||||
|
#dashtodockContainer.right #dash .dash-background {
|
||||||
|
margin: 0;
|
||||||
|
margin-right: 4px;
|
||||||
|
padding: 0; }
|
||||||
|
#dashtodockContainer.right #dash .dash-separator {
|
||||||
|
height: 1px;
|
||||||
|
margin: 7px 0;
|
||||||
|
background-color: rgba(238, 238, 236, 0.3); }
|
||||||
|
#dashtodockContainer.right #dash #dashtodockDashContainer {
|
||||||
|
padding: 10px;
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 0; }
|
||||||
|
#dashtodockContainer.right #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.right #dash .dash-item-container .show-apps {
|
||||||
|
padding: 2px;
|
||||||
|
padding-right: 14px;
|
||||||
|
padding-left: 10px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.right.shrink #dash .dash-background {
|
||||||
|
margin-right: 1px;
|
||||||
|
padding: 3px;
|
||||||
|
border-radius: 12px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.right.shrink #dash #dashtodockDashContainer {
|
||||||
|
padding: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.right.shrink #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.right.shrink #dash .dash-item-container .show-apps {
|
||||||
|
padding: 1px;
|
||||||
|
padding-right: 4px;
|
||||||
|
padding-left: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.right.shrink.fixed #dash .dash-background {
|
||||||
|
margin-left: 1px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.right.shrink.fixed #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.right.shrink.fixed #dash .dash-item-container .show-apps {
|
||||||
|
padding-left: 4px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.right.fixed #dash .dash-background {
|
||||||
|
margin-left: 4px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.right.fixed #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.right.fixed #dash .dash-item-container .show-apps {
|
||||||
|
padding-left: 14px; }
|
||||||
|
|
||||||
|
/* In extended mode we need to use the first and last .dash-item-container's
|
||||||
|
* to apply the padding on the dock, to ensure that the actual first or last
|
||||||
|
* child show-apps item will actually include the padding area so that it will
|
||||||
|
* be clickable up to the dock edge, and make Fitts happy.
|
||||||
|
* I don't think the same should happen for normal icons, so in the other side
|
||||||
|
* the padding will be applied via the scrolled area, given we can't get the
|
||||||
|
* parent of the first/last app-well-app icon to apply a rule there.
|
||||||
|
*/
|
||||||
|
#dashtodockContainer.extended.bottom #dash .dash-background {
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.bottom #dash #dashtodockDashContainer {
|
||||||
|
padding: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
padding-top: 0; }
|
||||||
|
#dashtodockContainer.extended.bottom #dash #dashtodockDashContainer > :first-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.bottom #dash #dashtodockDashContainer > :first-child .show-apps {
|
||||||
|
padding-left: 8px; }
|
||||||
|
#dashtodockContainer.extended.bottom #dash #dashtodockDashContainer #dashtodockDashScrollview:first-child {
|
||||||
|
padding-left: 8px; }
|
||||||
|
#dashtodockContainer.extended.bottom #dash #dashtodockDashContainer > :last-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.bottom #dash #dashtodockDashContainer > :last-child .show-apps {
|
||||||
|
padding-right: 8px; }
|
||||||
|
#dashtodockContainer.extended.bottom #dash #dashtodockDashContainer #dashtodockDashScrollview:last-child {
|
||||||
|
padding-right: 8px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.bottom #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.extended.bottom #dash .dash-item-container .show-apps {
|
||||||
|
padding-bottom: 10px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash #dashtodockDashContainer {
|
||||||
|
padding: 0; }
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash #dashtodockDashContainer > :first-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash #dashtodockDashContainer > :first-child .show-apps {
|
||||||
|
padding-left: 2px; }
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash #dashtodockDashContainer #dashtodockDashScrollview:first-child {
|
||||||
|
padding-left: 2px; }
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash #dashtodockDashContainer > :last-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash #dashtodockDashContainer > :last-child .show-apps {
|
||||||
|
padding-right: 2px; }
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash #dashtodockDashContainer #dashtodockDashScrollview:last-child {
|
||||||
|
padding-right: 2px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.extended.bottom.shrink #dash .dash-item-container .show-apps {
|
||||||
|
padding-bottom: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.bottom.shrink.fixed #dash .dash-background {
|
||||||
|
margin-top: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.top #dash .dash-background {
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.top #dash #dashtodockDashContainer {
|
||||||
|
padding: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0; }
|
||||||
|
#dashtodockContainer.extended.top #dash #dashtodockDashContainer > :first-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.top #dash #dashtodockDashContainer > :first-child .show-apps {
|
||||||
|
padding-left: 8px; }
|
||||||
|
#dashtodockContainer.extended.top #dash #dashtodockDashContainer #dashtodockDashScrollview:first-child {
|
||||||
|
padding-left: 8px; }
|
||||||
|
#dashtodockContainer.extended.top #dash #dashtodockDashContainer > :last-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.top #dash #dashtodockDashContainer > :last-child .show-apps {
|
||||||
|
padding-right: 8px; }
|
||||||
|
#dashtodockContainer.extended.top #dash #dashtodockDashContainer #dashtodockDashScrollview:last-child {
|
||||||
|
padding-right: 8px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.top #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.extended.top #dash .dash-item-container .show-apps {
|
||||||
|
padding-top: 10px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash #dashtodockDashContainer {
|
||||||
|
padding: 0; }
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash #dashtodockDashContainer > :first-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash #dashtodockDashContainer > :first-child .show-apps {
|
||||||
|
padding-left: 2px; }
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash #dashtodockDashContainer #dashtodockDashScrollview:first-child {
|
||||||
|
padding-left: 2px; }
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash #dashtodockDashContainer > :last-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash #dashtodockDashContainer > :last-child .show-apps {
|
||||||
|
padding-right: 2px; }
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash #dashtodockDashContainer #dashtodockDashScrollview:last-child {
|
||||||
|
padding-right: 2px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.extended.top.shrink #dash .dash-item-container .show-apps {
|
||||||
|
padding-top: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.top.shrink.fixed #dash .dash-background {
|
||||||
|
margin-bottom: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.left #dash .dash-background {
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.left #dash #dashtodockDashContainer {
|
||||||
|
padding: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0; }
|
||||||
|
#dashtodockContainer.extended.left #dash #dashtodockDashContainer > :first-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.left #dash #dashtodockDashContainer > :first-child .show-apps {
|
||||||
|
padding-top: 8px; }
|
||||||
|
#dashtodockContainer.extended.left #dash #dashtodockDashContainer #dashtodockDashScrollview:first-child {
|
||||||
|
padding-top: 8px; }
|
||||||
|
#dashtodockContainer.extended.left #dash #dashtodockDashContainer > :last-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.left #dash #dashtodockDashContainer > :last-child .show-apps {
|
||||||
|
padding-bottom: 8px; }
|
||||||
|
#dashtodockContainer.extended.left #dash #dashtodockDashContainer #dashtodockDashScrollview:last-child {
|
||||||
|
padding-bottom: 8px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.left #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.extended.left #dash .dash-item-container .show-apps {
|
||||||
|
padding-left: 10px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash #dashtodockDashContainer {
|
||||||
|
padding: 0; }
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash #dashtodockDashContainer > :first-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash #dashtodockDashContainer > :first-child .show-apps {
|
||||||
|
padding-top: 2px; }
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash #dashtodockDashContainer #dashtodockDashScrollview:first-child {
|
||||||
|
padding-top: 2px; }
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash #dashtodockDashContainer > :last-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash #dashtodockDashContainer > :last-child .show-apps {
|
||||||
|
padding-bottom: 2px; }
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash #dashtodockDashContainer #dashtodockDashScrollview:last-child {
|
||||||
|
padding-bottom: 2px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.extended.left.shrink #dash .dash-item-container .show-apps {
|
||||||
|
padding-left: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.left.shrink.fixed #dash .dash-background {
|
||||||
|
margin-right: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.right #dash .dash-background {
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.right #dash #dashtodockDashContainer {
|
||||||
|
padding: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
padding-left: 0; }
|
||||||
|
#dashtodockContainer.extended.right #dash #dashtodockDashContainer > :first-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.right #dash #dashtodockDashContainer > :first-child .show-apps {
|
||||||
|
padding-top: 8px; }
|
||||||
|
#dashtodockContainer.extended.right #dash #dashtodockDashContainer #dashtodockDashScrollview:first-child {
|
||||||
|
padding-top: 8px; }
|
||||||
|
#dashtodockContainer.extended.right #dash #dashtodockDashContainer > :last-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.right #dash #dashtodockDashContainer > :last-child .show-apps {
|
||||||
|
padding-bottom: 8px; }
|
||||||
|
#dashtodockContainer.extended.right #dash #dashtodockDashContainer #dashtodockDashScrollview:last-child {
|
||||||
|
padding-bottom: 8px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.right #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.extended.right #dash .dash-item-container .show-apps {
|
||||||
|
padding-right: 10px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash #dashtodockDashContainer {
|
||||||
|
padding: 0; }
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash #dashtodockDashContainer > :first-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash #dashtodockDashContainer > :first-child .show-apps {
|
||||||
|
padding-top: 2px; }
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash #dashtodockDashContainer #dashtodockDashScrollview:first-child {
|
||||||
|
padding-top: 2px; }
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash #dashtodockDashContainer > :last-child {
|
||||||
|
/* Use this instead of #dashtodockDashScrollview rule to apply the
|
||||||
|
* padding via the last app-icon item */ }
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash #dashtodockDashContainer > :last-child .show-apps {
|
||||||
|
padding-bottom: 2px; }
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash #dashtodockDashContainer #dashtodockDashScrollview:last-child {
|
||||||
|
padding-bottom: 2px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash .dash-item-container .app-well-app,
|
||||||
|
#dashtodockContainer.extended.right.shrink #dash .dash-item-container .show-apps {
|
||||||
|
padding-right: 3px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.extended.right.shrink.fixed #dash .dash-background {
|
||||||
|
margin-left: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.top.shrink #dash .dash-background {
|
||||||
|
margin-top: 4px;
|
||||||
|
margin-bottom: 0; }
|
||||||
|
|
||||||
|
#dashtodockContainer.straight-corner #dash .dash-background,
|
||||||
|
#dashtodockContainer.shrink.straight-corner #dash .dash-background {
|
||||||
|
border-radius: 0px; }
|
||||||
|
|
||||||
|
/* Scrollview style */
|
||||||
|
.bottom #dashtodockDashScrollview,
|
||||||
|
.top #dashtodockDashScrollview {
|
||||||
|
-st-hfade-offset: 24px; }
|
||||||
|
|
||||||
|
.left #dashtodockDashScrollview,
|
||||||
|
.right #dashtodockDashScrollview {
|
||||||
|
-st-vfade-offset: 24px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.running-dots .dash-item-container > StButton,
|
||||||
|
#dashtodockContainer.dashtodock .dash-item-container > StButton {
|
||||||
|
transition-duration: 250;
|
||||||
|
background-size: contain; }
|
||||||
|
|
||||||
|
/* Running and focused application style */
|
||||||
|
#dashtodockContainer.running-dots .app-well-app.running > .overview-icon,
|
||||||
|
#dashtodockContainer.dashtodock .app-well-app.running > .overview-icon {
|
||||||
|
background-image: none; }
|
||||||
|
|
||||||
|
#dashtodockContainer.running-dots .app-well-app.focused .overview-icon,
|
||||||
|
#dashtodockContainer.dashtodock .app-well-app.focused .overview-icon {
|
||||||
|
background-color: rgba(238, 238, 236, 0.2); }
|
||||||
|
|
||||||
|
#dashtodockContainer.dashtodock #dash .dash-background {
|
||||||
|
background: #2e3436; }
|
||||||
|
|
||||||
|
#dashtodockContainer.dashtodock .progress-bar {
|
||||||
|
/* Customization of the progress bar style, e.g.:
|
||||||
|
-progress-bar-background: rgba(0.8, 0.8, 0.8, 1);
|
||||||
|
-progress-bar-border: rgba(0.9, 0.9, 0.9, 1);
|
||||||
|
*/ }
|
||||||
|
|
||||||
|
#dashtodockContainer.top #dash .placeholder,
|
||||||
|
#dashtodockContainer.bottom #dash .placeholder {
|
||||||
|
width: 32px;
|
||||||
|
height: 1px; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is applied to a dummy actor. Only the alpha value for the background and border color
|
||||||
|
* and the transition-duration are used
|
||||||
|
*/
|
||||||
|
#dashtodockContainer.dummy-opaque {
|
||||||
|
background-color: rgba(0, 0, 0, 0.8);
|
||||||
|
border-color: rgba(0, 0, 0, 0.4);
|
||||||
|
transition-duration: 300ms; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This is applied to a dummy actor. Only the alpha value for the background and border color
|
||||||
|
* and the transition-duration are used
|
||||||
|
*/
|
||||||
|
#dashtodockContainer.dummy-transparent {
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
|
border-color: rgba(0, 0, 0, 0.1);
|
||||||
|
transition-duration: 500ms; }
|
||||||
|
|
||||||
|
#dashtodockContainer .number-overlay {
|
||||||
|
color: white;
|
||||||
|
background-color: rgba(0, 0, 0, 0.8);
|
||||||
|
text-align: center; }
|
||||||
|
|
||||||
|
#dashtodockContainer .notification-badge {
|
||||||
|
color: white;
|
||||||
|
background-color: red;
|
||||||
|
padding: 0.2em 0.5em;
|
||||||
|
border-radius: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
margin: 2px; }
|
||||||
|
|
||||||
|
#dashtodockPreviewSeparator.popup-separator-menu-item-horizontal {
|
||||||
|
width: 1px;
|
||||||
|
height: auto;
|
||||||
|
border-right-width: 1px;
|
||||||
|
margin: 32px 0px; }
|
||||||
|
|
||||||
|
.dashtodock-app-well-preview-menu-item {
|
||||||
|
padding: 1em 1em 0.5em 1em; }
|
||||||
|
|
||||||
|
#dashtodockContainer .metro .overview-icon {
|
||||||
|
border-radius: 0px; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom .metro.running2.focused,
|
||||||
|
#dashtodockContainer.top .metro.running2.focused {
|
||||||
|
background-image: url("./media/highlight_stacked_bg.svg");
|
||||||
|
background-position: 0px 0px;
|
||||||
|
background-size: contain; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left .metro.running2.focused,
|
||||||
|
#dashtodockContainer.right .metro.running2.focused {
|
||||||
|
background-image: url("./media/highlight_stacked_bg_h.svg");
|
||||||
|
background-position: 0px 0px;
|
||||||
|
background-size: contain; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom .metro.running3.focused,
|
||||||
|
#dashtodockContainer.top .metro.running3.focused {
|
||||||
|
background-image: url("./media/highlight_stacked_bg.svg");
|
||||||
|
background-position: 0px 0px;
|
||||||
|
background-size: contain; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left .metro.running3.focused,
|
||||||
|
#dashtodockContainer.right .metro.running3.focused {
|
||||||
|
background-image: url("./media/highlight_stacked_bg_h.svg");
|
||||||
|
background-position: 0px 0px;
|
||||||
|
background-size: contain; }
|
||||||
|
|
||||||
|
#dashtodockContainer.bottom .metro.running4.focused,
|
||||||
|
#dashtodockContainer.top .metro.running4.focused {
|
||||||
|
background-image: url("./media/highlight_stacked_bg.svg");
|
||||||
|
background-position: 0px 0px;
|
||||||
|
background-size: contain; }
|
||||||
|
|
||||||
|
#dashtodockContainer.left .metro.running4.focused,
|
||||||
|
#dashtodockContainer.right .metro.running4.focused {
|
||||||
|
background-image: url("./media/highlight_stacked_bg_h.svg");
|
||||||
|
background-position: 0px 0px;
|
||||||
|
background-size: contain; }
|
|
@ -0,0 +1,561 @@
|
||||||
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||||
|
|
||||||
|
const Gio = imports.gi.Gio;
|
||||||
|
const GLib = imports.gi.GLib;
|
||||||
|
const Signals = imports.signals;
|
||||||
|
const Meta = imports.gi.Meta;
|
||||||
|
const Shell = imports.gi.Shell;
|
||||||
|
const St = imports.gi.St;
|
||||||
|
const Clutter = imports.gi.Clutter;
|
||||||
|
|
||||||
|
const AppDisplay = imports.ui.appDisplay;
|
||||||
|
const AppFavorites = imports.ui.appFavorites;
|
||||||
|
const Dash = imports.ui.dash;
|
||||||
|
const DND = imports.ui.dnd;
|
||||||
|
const IconGrid = imports.ui.iconGrid;
|
||||||
|
const Main = imports.ui.main;
|
||||||
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
|
const Util = imports.misc.util;
|
||||||
|
const Workspace = imports.ui.workspace;
|
||||||
|
|
||||||
|
const Me = imports.misc.extensionUtils.getCurrentExtension();
|
||||||
|
const Docking = Me.imports.docking;
|
||||||
|
const Utils = Me.imports.utils;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* DEFAULT: transparency given by theme
|
||||||
|
* FIXED: constant transparency chosen by user
|
||||||
|
* DYNAMIC: apply 'transparent' style when no windows are close to the dock
|
||||||
|
* */
|
||||||
|
const TransparencyMode = {
|
||||||
|
DEFAULT: 0,
|
||||||
|
FIXED: 1,
|
||||||
|
DYNAMIC: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Manage theme customization and custom theme support
|
||||||
|
*/
|
||||||
|
var ThemeManager = class DashToDock_ThemeManager {
|
||||||
|
|
||||||
|
constructor(dock) {
|
||||||
|
this._signalsHandler = new Utils.GlobalSignalsHandler(this);
|
||||||
|
this._bindSettingsChanges();
|
||||||
|
this._actor = dock;
|
||||||
|
this._dash = dock.dash;
|
||||||
|
|
||||||
|
// initialize colors with generic values
|
||||||
|
this._customizedBackground = {red: 0, green: 0, blue: 0, alpha: 0};
|
||||||
|
this._customizedBorder = {red: 0, green: 0, blue: 0, alpha: 0};
|
||||||
|
this._transparency = new Transparency(dock);
|
||||||
|
|
||||||
|
this._signalsHandler.add([
|
||||||
|
// When theme changes re-obtain default background color
|
||||||
|
St.ThemeContext.get_for_stage (global.stage),
|
||||||
|
'changed',
|
||||||
|
this.updateCustomTheme.bind(this)
|
||||||
|
], [
|
||||||
|
// update :overview pseudoclass
|
||||||
|
Main.overview,
|
||||||
|
'showing',
|
||||||
|
this._onOverviewShowing.bind(this)
|
||||||
|
], [
|
||||||
|
Main.overview,
|
||||||
|
'hiding',
|
||||||
|
this._onOverviewHiding.bind(this)
|
||||||
|
]);
|
||||||
|
|
||||||
|
this._updateCustomStyleClasses();
|
||||||
|
|
||||||
|
// destroy themeManager when the managed actor is destroyed (e.g. extension unload)
|
||||||
|
// in order to disconnect signals
|
||||||
|
this._signalsHandler.add(this._actor, 'destroy', () => this.destroy());
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
this.emit('destroy');
|
||||||
|
this._transparency.destroy();
|
||||||
|
this._destroyed = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
_onOverviewShowing() {
|
||||||
|
this._actor.add_style_pseudo_class('overview');
|
||||||
|
}
|
||||||
|
|
||||||
|
_onOverviewHiding() {
|
||||||
|
this._actor.remove_style_pseudo_class('overview');
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateDashOpacity() {
|
||||||
|
let newAlpha = Docking.DockManager.settings.get_double('background-opacity');
|
||||||
|
|
||||||
|
let [backgroundColor, borderColor] = this._getDefaultColors();
|
||||||
|
|
||||||
|
if (backgroundColor==null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Get the background and border alphas. We check the background alpha
|
||||||
|
// for a minimum of .001 to prevent division by 0 errors
|
||||||
|
let backgroundAlpha = Math.max(Math.round(backgroundColor.alpha/2.55)/100, .001);
|
||||||
|
let borderAlpha = Math.round(borderColor.alpha/2.55)/100;
|
||||||
|
|
||||||
|
// The border and background alphas should remain in sync
|
||||||
|
// We also limit the borderAlpha to a maximum of 1 (full opacity)
|
||||||
|
borderAlpha = Math.min((borderAlpha/backgroundAlpha)*newAlpha, 1);
|
||||||
|
|
||||||
|
this._customizedBackground = 'rgba(' +
|
||||||
|
backgroundColor.red + ',' +
|
||||||
|
backgroundColor.green + ',' +
|
||||||
|
backgroundColor.blue + ',' +
|
||||||
|
newAlpha + ')';
|
||||||
|
|
||||||
|
this._customizedBorder = 'rgba(' +
|
||||||
|
borderColor.red + ',' +
|
||||||
|
borderColor.green + ',' +
|
||||||
|
borderColor.blue + ',' +
|
||||||
|
borderAlpha + ')';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
_getDefaultColors() {
|
||||||
|
// Prevent shell crash if the actor is not on the stage.
|
||||||
|
// It happens enabling/disabling repeatedly the extension
|
||||||
|
if (!this._dash._container.get_stage())
|
||||||
|
return [null, null];
|
||||||
|
|
||||||
|
// Remove custom style
|
||||||
|
let oldStyle = this._dash._container.get_style();
|
||||||
|
this._dash._container.set_style(null);
|
||||||
|
|
||||||
|
let themeNode = this._dash._container.get_theme_node();
|
||||||
|
this._dash._container.set_style(oldStyle);
|
||||||
|
|
||||||
|
let backgroundColor = themeNode.get_background_color();
|
||||||
|
|
||||||
|
// Just in case the theme has different border colors ..
|
||||||
|
// We want to find the inside border-color of the dock because it is
|
||||||
|
// the side most visible to the user. We do this by finding the side
|
||||||
|
// opposite the position
|
||||||
|
let position = Utils.getPosition();
|
||||||
|
let side = position + 2;
|
||||||
|
if (side > 3)
|
||||||
|
side = Math.abs(side - 4);
|
||||||
|
|
||||||
|
let borderColor = themeNode.get_border_color(side);
|
||||||
|
|
||||||
|
return [backgroundColor, borderColor];
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateDashColor() {
|
||||||
|
// Retrieve the color. If needed we will adjust it before passing it to
|
||||||
|
// this._transparency.
|
||||||
|
let [backgroundColor, borderColor] = this._getDefaultColors();
|
||||||
|
|
||||||
|
if (backgroundColor==null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
let settings = Docking.DockManager.settings;
|
||||||
|
|
||||||
|
if (settings.get_boolean('custom-background-color')) {
|
||||||
|
// When applying a custom color, we need to check the alpha value,
|
||||||
|
// if not the opacity will always be overridden by the color below.
|
||||||
|
// Note that if using 'dynamic' transparency modes,
|
||||||
|
// the opacity will be set by the opaque/transparent styles anyway.
|
||||||
|
let newAlpha = Math.round(backgroundColor.alpha/2.55)/100;
|
||||||
|
|
||||||
|
backgroundColor = settings.get_string('background-color');
|
||||||
|
// backgroundColor is a string like rgb(0,0,0)
|
||||||
|
const [ret, color] = Clutter.Color.from_string(backgroundColor);
|
||||||
|
if (!ret) {
|
||||||
|
logError(new Error(`${backgroundColor} is not a valid color string`));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings.get_enum('transparency-mode') == TransparencyMode.FIXED) {
|
||||||
|
newAlpha = settings.get_double('background-opacity');
|
||||||
|
this._customizedBackground =
|
||||||
|
`rgba(${color.red}, ${color.blue}, ${color.green}, ${newAlpha})`;
|
||||||
|
} else {
|
||||||
|
this._customizedBackground = backgroundColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
this._customizedBorder = this._customizedBackground;
|
||||||
|
|
||||||
|
color.alpha = newAlpha * 255;
|
||||||
|
this._transparency.setColor(color);
|
||||||
|
} else {
|
||||||
|
// backgroundColor is a Clutter.Color object
|
||||||
|
this._transparency.setColor(backgroundColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateCustomStyleClasses() {
|
||||||
|
let settings = Docking.DockManager.settings;
|
||||||
|
|
||||||
|
if (settings.get_boolean('apply-custom-theme'))
|
||||||
|
this._actor.add_style_class_name('dashtodock');
|
||||||
|
else
|
||||||
|
this._actor.remove_style_class_name('dashtodock');
|
||||||
|
|
||||||
|
if (settings.get_boolean('custom-theme-shrink'))
|
||||||
|
this._actor.add_style_class_name('shrink');
|
||||||
|
else
|
||||||
|
this._actor.remove_style_class_name('shrink');
|
||||||
|
|
||||||
|
if (settings.get_enum('running-indicator-style') !== 0)
|
||||||
|
this._actor.add_style_class_name('running-dots');
|
||||||
|
else
|
||||||
|
this._actor.remove_style_class_name('running-dots');
|
||||||
|
|
||||||
|
// If not the built-in theme option is not selected
|
||||||
|
if (!settings.get_boolean('apply-custom-theme')) {
|
||||||
|
if (settings.get_boolean('force-straight-corner'))
|
||||||
|
this._actor.add_style_class_name('straight-corner');
|
||||||
|
else
|
||||||
|
this._actor.remove_style_class_name('straight-corner');
|
||||||
|
} else {
|
||||||
|
this._actor.remove_style_class_name('straight-corner');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
updateCustomTheme() {
|
||||||
|
if (this._destroyed)
|
||||||
|
throw new Error(`Impossible to update a destroyed ${this.constructor.name}`);
|
||||||
|
this._updateCustomStyleClasses();
|
||||||
|
this._updateDashOpacity();
|
||||||
|
this._updateDashColor();
|
||||||
|
this._adjustTheme();
|
||||||
|
this.emit('updated');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reimported back and adapted from atomdock
|
||||||
|
*/
|
||||||
|
_adjustTheme() {
|
||||||
|
// Prevent shell crash if the actor is not on the stage.
|
||||||
|
// It happens enabling/disabling repeatedly the extension
|
||||||
|
if (!this._dash._background.get_stage())
|
||||||
|
return;
|
||||||
|
|
||||||
|
let settings = Docking.DockManager.settings;
|
||||||
|
|
||||||
|
// Remove prior style edits
|
||||||
|
this._dash._background.set_style(null);
|
||||||
|
this._transparency.disable();
|
||||||
|
|
||||||
|
// If built-in theme is enabled do nothing else
|
||||||
|
if (settings.get_boolean('apply-custom-theme'))
|
||||||
|
return;
|
||||||
|
|
||||||
|
let newStyle = '';
|
||||||
|
let position = Utils.getPosition(settings);
|
||||||
|
|
||||||
|
// obtain theme border settings
|
||||||
|
let themeNode = this._dash._background.get_theme_node();
|
||||||
|
let borderColor = themeNode.get_border_color(St.Side.TOP);
|
||||||
|
let borderWidth = themeNode.get_border_width(St.Side.TOP);
|
||||||
|
|
||||||
|
// We're copying border and corner styles to left border and top-left
|
||||||
|
// corner, also removing bottom border and bottom-right corner styles
|
||||||
|
let borderInner = '';
|
||||||
|
let borderMissingStyle = '';
|
||||||
|
|
||||||
|
if (this._rtl && (position != St.Side.RIGHT))
|
||||||
|
borderMissingStyle = 'border-right: ' + borderWidth + 'px solid ' +
|
||||||
|
borderColor.to_string() + ';';
|
||||||
|
else if (!this._rtl && (position != St.Side.LEFT))
|
||||||
|
borderMissingStyle = 'border-left: ' + borderWidth + 'px solid ' +
|
||||||
|
borderColor.to_string() + ';';
|
||||||
|
|
||||||
|
newStyle = borderMissingStyle;
|
||||||
|
|
||||||
|
if (newStyle) {
|
||||||
|
// I do call set_style possibly twice so that only the background gets the transition.
|
||||||
|
// The transition-property css rules seems to be unsupported
|
||||||
|
this._dash._background.set_style(newStyle);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Customize background
|
||||||
|
let fixedTransparency = settings.get_enum('transparency-mode') == TransparencyMode.FIXED;
|
||||||
|
let defaultTransparency = settings.get_enum('transparency-mode') == TransparencyMode.DEFAULT;
|
||||||
|
if (!defaultTransparency && !fixedTransparency) {
|
||||||
|
this._transparency.enable();
|
||||||
|
}
|
||||||
|
else if (!defaultTransparency || settings.get_boolean('custom-background-color')) {
|
||||||
|
newStyle = newStyle + 'background-color:'+ this._customizedBackground + '; ' +
|
||||||
|
'border-color:'+ this._customizedBorder + '; ' +
|
||||||
|
'transition-delay: 0s; transition-duration: 0.250s;';
|
||||||
|
this._dash._background.set_style(newStyle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_bindSettingsChanges() {
|
||||||
|
let keys = ['transparency-mode',
|
||||||
|
'customize-alphas',
|
||||||
|
'min-alpha',
|
||||||
|
'max-alpha',
|
||||||
|
'background-opacity',
|
||||||
|
'custom-background-color',
|
||||||
|
'background-color',
|
||||||
|
'apply-custom-theme',
|
||||||
|
'custom-theme-shrink',
|
||||||
|
'custom-theme-running-dots',
|
||||||
|
'extend-height',
|
||||||
|
'force-straight-corner'];
|
||||||
|
|
||||||
|
this._signalsHandler.add(...keys.map(key => [
|
||||||
|
Docking.DockManager.settings,
|
||||||
|
`changed::${key}`,
|
||||||
|
() => this.updateCustomTheme(),
|
||||||
|
]));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Signals.addSignalMethods(ThemeManager.prototype);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The following class is based on the following upstream commit:
|
||||||
|
* https://git.gnome.org/browse/gnome-shell/commit/?id=447bf55e45b00426ed908b1b1035f472c2466956
|
||||||
|
* Transparency when free-floating
|
||||||
|
*/
|
||||||
|
var Transparency = class DashToDock_Transparency {
|
||||||
|
|
||||||
|
constructor(dock) {
|
||||||
|
this._dash = dock.dash;
|
||||||
|
this._actor = this._dash._container;
|
||||||
|
this._backgroundActor = this._dash._background;
|
||||||
|
this._dockActor = dock;
|
||||||
|
this._dock = dock;
|
||||||
|
this._panel = Main.panel;
|
||||||
|
this._position = Utils.getPosition();
|
||||||
|
|
||||||
|
// All these properties are replaced with the ones in the .dummy-opaque and .dummy-transparent css classes
|
||||||
|
this._backgroundColor = '0,0,0';
|
||||||
|
this._transparentAlpha = '0.2';
|
||||||
|
this._opaqueAlpha = '1';
|
||||||
|
this._transparentAlphaBorder = '0.1';
|
||||||
|
this._opaqueAlphaBorder = '0.5';
|
||||||
|
this._transparentTransition = '0ms';
|
||||||
|
this._opaqueTransition = '0ms';
|
||||||
|
this._base_actor_style = "";
|
||||||
|
|
||||||
|
this._signalsHandler = new Utils.GlobalSignalsHandler();
|
||||||
|
this._trackedWindows = new Map();
|
||||||
|
}
|
||||||
|
|
||||||
|
enable() {
|
||||||
|
// ensure I never double-register/inject
|
||||||
|
// although it should never happen
|
||||||
|
this.disable();
|
||||||
|
|
||||||
|
this._base_actor_style = this._actor.get_style();
|
||||||
|
if (this._base_actor_style == null) {
|
||||||
|
this._base_actor_style = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
this._signalsHandler.addWithLabel('transparency', [
|
||||||
|
global.window_group,
|
||||||
|
'actor-added',
|
||||||
|
this._onWindowActorAdded.bind(this)
|
||||||
|
], [
|
||||||
|
global.window_group,
|
||||||
|
'actor-removed',
|
||||||
|
this._onWindowActorRemoved.bind(this)
|
||||||
|
], [
|
||||||
|
global.window_manager,
|
||||||
|
'switch-workspace',
|
||||||
|
this._updateSolidStyle.bind(this)
|
||||||
|
], [
|
||||||
|
Main.overview,
|
||||||
|
'hiding',
|
||||||
|
this._updateSolidStyle.bind(this)
|
||||||
|
], [
|
||||||
|
Main.overview,
|
||||||
|
'showing',
|
||||||
|
this._updateSolidStyle.bind(this)
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Window signals
|
||||||
|
global.window_group.get_children().filter(function(child) {
|
||||||
|
// An irrelevant window actor ('Gnome-shell') produces an error when the signals are
|
||||||
|
// disconnected, therefore do not add signals to it.
|
||||||
|
return child instanceof Meta.WindowActor &&
|
||||||
|
child.get_meta_window().get_wm_class() !== 'Gnome-shell';
|
||||||
|
}).forEach(function(win) {
|
||||||
|
this._onWindowActorAdded(null, win);
|
||||||
|
}, this);
|
||||||
|
|
||||||
|
if (this._actor.get_stage())
|
||||||
|
this._updateSolidStyle();
|
||||||
|
|
||||||
|
this._updateStyles();
|
||||||
|
this._updateSolidStyle();
|
||||||
|
|
||||||
|
this.emit('transparency-enabled');
|
||||||
|
}
|
||||||
|
|
||||||
|
disable() {
|
||||||
|
// ensure I never double-register/inject
|
||||||
|
// although it should never happen
|
||||||
|
this._signalsHandler.removeWithLabel('transparency');
|
||||||
|
|
||||||
|
for (let key of this._trackedWindows.keys())
|
||||||
|
this._trackedWindows.get(key).forEach(id => {
|
||||||
|
key.disconnect(id);
|
||||||
|
});
|
||||||
|
this._trackedWindows.clear();
|
||||||
|
|
||||||
|
this.emit('transparency-disabled');
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
this.disable();
|
||||||
|
this._signalsHandler.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
_onWindowActorAdded(container, metaWindowActor) {
|
||||||
|
let signalIds = [];
|
||||||
|
['notify::allocation', 'notify::visible'].forEach(s => {
|
||||||
|
signalIds.push(metaWindowActor.connect(s, this._updateSolidStyle.bind(this)));
|
||||||
|
});
|
||||||
|
this._trackedWindows.set(metaWindowActor, signalIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
_onWindowActorRemoved(container, metaWindowActor) {
|
||||||
|
if (!this._trackedWindows.get(metaWindowActor))
|
||||||
|
return;
|
||||||
|
|
||||||
|
this._trackedWindows.get(metaWindowActor).forEach(id => {
|
||||||
|
metaWindowActor.disconnect(id);
|
||||||
|
});
|
||||||
|
this._trackedWindows.delete(metaWindowActor);
|
||||||
|
this._updateSolidStyle();
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateSolidStyle() {
|
||||||
|
let isNear = this._dockIsNear();
|
||||||
|
if (isNear) {
|
||||||
|
this._backgroundActor.set_style(this._opaque_style);
|
||||||
|
this._dockActor.remove_style_class_name('transparent');
|
||||||
|
this._dockActor.add_style_class_name('opaque');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this._backgroundActor.set_style(this._transparent_style);
|
||||||
|
this._dockActor.remove_style_class_name('opaque');
|
||||||
|
this._dockActor.add_style_class_name('transparent');
|
||||||
|
}
|
||||||
|
|
||||||
|
this.emit('solid-style-updated', isNear);
|
||||||
|
}
|
||||||
|
|
||||||
|
_dockIsNear() {
|
||||||
|
if (this._dockActor.has_style_pseudo_class('overview'))
|
||||||
|
return false;
|
||||||
|
/* Get all the windows in the active workspace that are in the primary monitor and visible */
|
||||||
|
let activeWorkspace = global.workspace_manager.get_active_workspace();
|
||||||
|
let dash = this._dash;
|
||||||
|
let windows = activeWorkspace.list_windows().filter(function(metaWindow) {
|
||||||
|
return metaWindow.get_monitor() === dash._monitorIndex &&
|
||||||
|
metaWindow.showing_on_its_workspace() &&
|
||||||
|
metaWindow.get_window_type() != Meta.WindowType.DESKTOP;
|
||||||
|
});
|
||||||
|
|
||||||
|
/* Check if at least one window is near enough to the panel.
|
||||||
|
* If the dock is hidden, we need to account for the space it would take
|
||||||
|
* up when it slides out. This is avoid an ugly transition.
|
||||||
|
* */
|
||||||
|
let factor = 0;
|
||||||
|
if (!Docking.DockManager.settings.dockFixed &&
|
||||||
|
this._dock.getDockState() == Docking.State.HIDDEN)
|
||||||
|
factor = 1;
|
||||||
|
let [leftCoord, topCoord] = this._actor.get_transformed_position();
|
||||||
|
let threshold;
|
||||||
|
if (this._position === St.Side.LEFT)
|
||||||
|
threshold = leftCoord + this._actor.get_width() * (factor + 1);
|
||||||
|
else if (this._position === St.Side.RIGHT)
|
||||||
|
threshold = leftCoord - this._actor.get_width() * factor;
|
||||||
|
else if (this._position === St.Side.TOP)
|
||||||
|
threshold = topCoord + this._actor.get_height() * (factor + 1);
|
||||||
|
else
|
||||||
|
threshold = topCoord - this._actor.get_height() * factor;
|
||||||
|
|
||||||
|
let scale = St.ThemeContext.get_for_stage(global.stage).scale_factor;
|
||||||
|
let isNearEnough = windows.some((metaWindow) => {
|
||||||
|
let coord;
|
||||||
|
if (this._position === St.Side.LEFT) {
|
||||||
|
coord = metaWindow.get_frame_rect().x;
|
||||||
|
return coord < threshold + 5 * scale;
|
||||||
|
}
|
||||||
|
else if (this._position === St.Side.RIGHT) {
|
||||||
|
coord = metaWindow.get_frame_rect().x + metaWindow.get_frame_rect().width;
|
||||||
|
return coord > threshold - 5 * scale;
|
||||||
|
}
|
||||||
|
else if (this._position === St.Side.TOP) {
|
||||||
|
coord = metaWindow.get_frame_rect().y;
|
||||||
|
return coord < threshold + 5 * scale;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
coord = metaWindow.get_frame_rect().y + metaWindow.get_frame_rect().height;
|
||||||
|
return coord > threshold - 5 * scale;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return isNearEnough;
|
||||||
|
}
|
||||||
|
|
||||||
|
_updateStyles() {
|
||||||
|
this._getAlphas();
|
||||||
|
|
||||||
|
this._transparent_style = this._base_actor_style +
|
||||||
|
'background-color: rgba(' +
|
||||||
|
this._backgroundColor + ', ' + this._transparentAlpha + ');' +
|
||||||
|
'border-color: rgba(' +
|
||||||
|
this._backgroundColor + ', ' + this._transparentAlphaBorder + ');' +
|
||||||
|
'transition-duration: ' + this._transparentTransition + 'ms;';
|
||||||
|
|
||||||
|
this._opaque_style = this._base_actor_style +
|
||||||
|
'background-color: rgba(' +
|
||||||
|
this._backgroundColor + ', ' + this._opaqueAlpha + ');' +
|
||||||
|
'border-color: rgba(' +
|
||||||
|
this._backgroundColor + ',' + this._opaqueAlphaBorder + ');' +
|
||||||
|
'transition-duration: ' + this._opaqueTransition + 'ms;';
|
||||||
|
|
||||||
|
this.emit('styles-updated');
|
||||||
|
}
|
||||||
|
|
||||||
|
setColor(color) {
|
||||||
|
this._backgroundColor = color.red + ',' + color.green + ',' + color.blue;
|
||||||
|
this._updateStyles();
|
||||||
|
}
|
||||||
|
|
||||||
|
_getAlphas() {
|
||||||
|
// Create dummy object and add to the uiGroup to get it to the stage
|
||||||
|
let dummyObject = new St.Bin({
|
||||||
|
name: 'dashtodockContainer',
|
||||||
|
});
|
||||||
|
Main.uiGroup.add_child(dummyObject);
|
||||||
|
|
||||||
|
dummyObject.add_style_class_name('dummy-opaque');
|
||||||
|
let themeNode = dummyObject.get_theme_node();
|
||||||
|
this._opaqueAlpha = themeNode.get_background_color().alpha / 255;
|
||||||
|
this._opaqueAlphaBorder = themeNode.get_border_color(0).alpha / 255;
|
||||||
|
this._opaqueTransition = themeNode.get_transition_duration();
|
||||||
|
|
||||||
|
dummyObject.add_style_class_name('dummy-transparent');
|
||||||
|
themeNode = dummyObject.get_theme_node();
|
||||||
|
this._transparentAlpha = themeNode.get_background_color().alpha / 255;
|
||||||
|
this._transparentAlphaBorder = themeNode.get_border_color(0).alpha / 255;
|
||||||
|
this._transparentTransition = themeNode.get_transition_duration();
|
||||||
|
|
||||||
|
Main.uiGroup.remove_child(dummyObject);
|
||||||
|
|
||||||
|
let settings = Docking.DockManager.settings;
|
||||||
|
|
||||||
|
if (settings.get_boolean('customize-alphas')) {
|
||||||
|
this._opaqueAlpha = settings.get_double('max-alpha');
|
||||||
|
this._opaqueAlphaBorder = this._opaqueAlpha / 2;
|
||||||
|
this._transparentAlpha = settings.get_double('min-alpha');
|
||||||
|
this._transparentAlphaBorder = this._transparentAlpha / 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Signals.addSignalMethods(Transparency.prototype);
|