Skip to content

Commit

Permalink
Create new snowblock for Plank
Browse files Browse the repository at this point in the history
Create a new snowblock for Plank (1) including

* application launchers for the host specific "igloo" and "archbook" profiles
* a minimal and non obstructive "igloo" theme with a transparent background and no shadow- and glow effects.

References:

  (1) https://wiki.archlinux.org/index.php/Plank
  plank(1)

GH-81
  • Loading branch information
arcticicestudio committed Nov 28, 2017
1 parent 952d502 commit 6f60096
Show file tree
Hide file tree
Showing 18 changed files with 217 additions and 0 deletions.
32 changes: 32 additions & 0 deletions snowblocks/plank/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
* [dconf Configuration](#dconf-configuration)
* [Autostart](#autostart)

# dconf Configuration

The [dconf][dconf] dump [`plank.dconf`][config-dconf-gh] provides configurations for the `net.launchpad.plank` schema and can be loaded via `dconf` by run

```sh
dconf load /net/launchpad/plank/ < plank.dconf
```

A new dump can be exported via

```sh
dconf dump /net/launchpad/plank/ > plank.dconf
```

# Autostart

The [xdg snowblock][gh-sb-xdg] provides host specific [autostart][gh-sb-xdg-autostart] configurations for the [igloo][gh-sb-xdg-autostart-igloo] and [archbook][gh-sb-xdg-autostart-archbook] Plank launcher profiles.

# References

* [Plank GitHub Repository][plank-gh]

[config-dconf-gh]: https://github.com/arcticicestudio/igloo/blob/develop/snowblocks/plank/plank.dconf
[dconf]: https://wiki.gnome.org/Projects/dconf
[gh-sb-xdg]: https://github.com/arcticicestudio/igloo/tree/develop/snowblocks/xdg
[gh-sb-xdg-autostart]: https://github.com/arcticicestudio/igloo/tree/develop/snowblocks/xdg/autostart
[gh-sb-xdg-autostart-archbook]: https://github.com/arcticicestudio/igloo/blob/develop/snowblocks/xdg/autostart/plank.desktop.archbook
[gh-sb-xdg-autostart-igloo]: https://github.com/arcticicestudio/igloo/blob/develop/snowblocks/xdg/autostart/plank.desktop.igloo
[plank-gh]: https://github.com/ricotz/plank
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/archbook/atom.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///home/sgreb/.local/share/applications/atom.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/archbook/google-chrome.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/google-chrome.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/archbook/intellij-idea-u.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///home/sgreb/.local/share/applications/intellij-idea-u.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.gnome.Nautilus.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.gnome.Screenshot.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///home/sgreb/.local/share/applications/pycharm-community.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/archbook/webstorm.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///home/sgreb/.local/share/applications/webstorm.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/igloo/atom.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///home/arcticicestudio/.local/share/applications/atom.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/igloo/google-chrome.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/google-chrome.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/igloo/intellij-idea-u.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///home/arcticicestudio/.local/share/applications/intellij-idea-u.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/igloo/org.gnome.Nautilus.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.gnome.Nautilus.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.gnome.Screenshot.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/igloo/pycharm-community.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///home/arcticicestudio/.local/share/applications/pycharm-community.desktop
2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/igloo/webstorm.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///home/arcticicestudio/.local/share/applications/webstorm.desktop
24 changes: 24 additions & 0 deletions snowblocks/plank/plank.dconf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[docks/igloo]
icon-size=48
show-dock-item=false
position='bottom'
dock-items=['org.gnome.Nautilus.dockitem', 'google-chrome.dockitem', 'intellij-idea-u.dockitem', 'webstorm.dockitem', 'pycharm-community.dockitem', 'org.gnome.Screenshot.dockitem']
unhide-delay=0
items-alignment='center'
theme='igloo'
hide-mode='auto'
pinned-only=false
auto-pinning=true
alignment='center'
zoom-percent=150
hide-delay=0
zoom-enabled=true
monitor=''
lock-items=true
tooltips-enabled=true
pressure-reveal=false
offset=0
current-workspace-only=false

[/]
enabled-docks=['igloo']
31 changes: 31 additions & 0 deletions snowblocks/plank/snowblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[
{
"clean": [
"~/.config",
"~/.local/share"
]
},
{
"link": {
"~/.config/plank/igloo/launchers": {
"create": true,
"force": true,
"hosts": {
"igloo": "launchers/igloo"
}
},
"~/.config/plank/archbook/launchers": {
"create": true,
"force": true,
"hosts": {
"archbook": "launchers/archbook"
}
},
"~/.local/share/plank/themes/igloo": {
"create": true,
"force": true,
"path": "themes/igloo"
}
}
}
]
102 changes: 102 additions & 0 deletions snowblocks/plank/themes/igloo/dock.theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Copyright (c) 2016-2017 Arctic Ice Studio <[email protected]>
# Copyright (c) 2016-2017 Sven Greb <[email protected]>

# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# plank(1)
# https://launchpad.net/plank
# https://wiki.archlinux.org/index.php/Plank

# A minimal and non obstructive theme with a transparent background and no shadow- and glow effects.

[PlankTheme]
# The roundness of the top corners.
TopRoundness=0

# The roundness of the bottom corners.
BottomRoundness=0

# The thickness (in pixels) of lines drawn.
LineWidth=0

# The color (RGBA) of the outer stroke.
OuterStrokeColor=22;;26;;38;;255

# The starting color (RGBA) of the fill gradient.
FillStartColor=53;;57;;69;;242

# The ending color (RGBA) of the fill gradient.
FillEndColor=53;;57;;69;;242

# The color (RGBA) of the inner stroke.
InnerStrokeColor=53;;57;;69;;0

[PlankDockTheme]
# The padding on the left/right dock edges, in tenths of a percent of IconSize.
HorizPadding=0

# The padding on the top dock edge, in tenths of a percent of IconSize.
TopPadding=-12

# The padding on the bottom dock edge, in tenths of a percent of IconSize.
BottomPadding=2

# The padding between items on the dock, in tenths of a percent of IconSize.
ItemPadding=2.5

# The size of item indicators, in tenths of a percent of IconSize.
IndicatorSize=4

# The size of the icon-shadow behind every item, in tenths of a percent of IconSize.
IconShadowSize=0

# The height (in percent of IconSize) to bounce an icon when the application sets urgent.
UrgentBounceHeight=1.6666666666666667

# The height (in percent of IconSize) to bounce an icon when launching an application.
LaunchBounceHeight=0.625

# The opacity value (0 to 1) to fade the dock to when hiding it.
FadeOpacity=1

# The amount of time (in ms) for click animations.
ClickTime=300

# The amount of time (in ms) to bounce an urgent icon.
UrgentBounceTime=0

# The amount of time (in ms) to bounce an icon when launching an application.
LaunchBounceTime=600

# The amount of time (in ms) for active window indicator animations.
ActiveTime=300

# The amount of time (in ms) to slide icons into/out of the dock.
SlideTime=300

# The time (in ms) to fade the dock in/out on a hide (if FadeOpacity is < 1).
FadeTime=250

# The time (in ms) to slide the dock in/out on a hide (if FadeOpacity is 1).
HideTime=250

# The size of the urgent glow (shown when dock is hidden), in tenths of a percent of IconSize.
GlowSize=0

# The total time (in ms) to show the hidden-dock urgent glow.
GlowTime=0

# The time (in ms) of each pulse of the hidden-dock urgent glow.
GlowPulseTime=0

# The hue-shift (-180 to 180) of the urgent indicator color.
UrgentHueShift=150

# The time (in ms) to move an item to its new position or its addition/removal to/from the dock.
ItemMoveTime=200

# Whether background and icons will unhide/hide with different speeds.
# The top-border of both will leave/hit the screen-edge at the same time.
CascadeHide=true

0 comments on commit 6f60096

Please sign in to comment.