Skip to content

Commit

Permalink
"Plank" cleanup (#250)
Browse files Browse the repository at this point in the history
Based on the documented tasks in GH-248 the `plank` snowblock required a
cleanup regarding unused and outdated XDG desktop launchers [1],
adaption to the new host infrastructure and improvements for the
snowblock documentation.

[1]: https://wiki.archlinux.org/index.php/Desktop_entries

Closes GH-249
Related to GH-248

Co-authored-by: Sven Greb <[email protected]>
  • Loading branch information
arcticicestudio and svengreb authored Apr 15, 2020
1 parent c6b7fce commit 4fa168e
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 47 deletions.
32 changes: 13 additions & 19 deletions snowblocks/plank/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
- [dconf Configuration](#dconf-configuration)
- [Autostart](#autostart)
# _dconf_ Configuration

# 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
The [dconf][] dump [`plank.dconf`][blob-plank.dconf] provides configurations for the `net.launchpad.plank` schema.

```sh
# Load the schema configurations from the dump file.
dconf load /net/launchpad/plank/ < plank.dconf
```

A new dump can be exported via

```sh
# Export the schema configurations as dump file.
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] Plank launcher profile(s).
Also see [_Plank_'s GitHub repository][ricotz/plank] for more documentations and details.

# References
# _XDG_ Autostart

- [Plank GitHub Repository][plank-gh]
The [_XDG_ _snowblock_][tree-sb-xdg] provides host specific [autostart][archw-xdg_autostart] configurations for the `igloo` _Plank_ launcher profile.

[config-dconf-gh]: https://github.com/arcticicestudio/igloo/blob/master/snowblocks/plank/plank.dconf
[archw-plank]: https://wiki.archlinux.org/index.php/Plank
[archw-xdg_autostart]: https://wiki.archlinux.org/index.php/XDG_Autostart
[blob-plank.dconf]: https://github.com/arcticicestudio/igloo/blob/master/snowblocks/plank/plank.dconf
[dconf]: https://wiki.gnome.org/Projects/dconf
[gh-sb-xdg]: https://github.com/arcticicestudio/igloo/tree/master/snowblocks/xdg
[gh-sb-xdg-autostart]: https://github.com/arcticicestudio/igloo/tree/master/snowblocks/xdg/autostart
[gh-sb-xdg-autostart-igloo]: https://github.com/arcticicestudio/igloo/blob/master/snowblocks/xdg/autostart/plank.desktop.igloo
[plank-gh]: https://github.com/ricotz/plank
[ricotz/plank]: https://github.com/ricotz/plank
[tree-sb-xdg-autostart]: https://github.com/arcticicestudio/igloo/tree/master/snowblocks/xdg/autostart
[tree-sb-xdg]: https://github.com/arcticicestudio/igloo/tree/master/snowblocks/xdg
2 changes: 0 additions & 2 deletions snowblocks/plank/launchers/igloo/jetbrains-idea.dockitem

This file was deleted.

2 changes: 2 additions & 0 deletions snowblocks/plank/launchers/polarbear/jetbrains-idea.dockitem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/jetbrains-idea.desktop
36 changes: 18 additions & 18 deletions snowblocks/plank/plank.dconf
Original file line number Diff line number Diff line change
@@ -1,24 +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
[docks/polarbear]
alignment='center'
zoom-percent=150
auto-pinning=true
current-workspace-only=false
dock-items=['org.gnome.Nautilus.dockitem', 'firefox-developer-edition.dockitem', 'jetbrains-idea.dockitem', 'visual-studio-code.dockitem', 'org.gnome.Screenshot.dockitem']
hide-delay=0
zoom-enabled=true
monitor=''
hide-mode='auto'
icon-size=48
items-alignment='center'
lock-items=true
tooltips-enabled=true
pressure-reveal=false
monitor=''
offset=0
current-workspace-only=false
pinned-only=false
position='bottom'
pressure-reveal=false
show-dock-item=false
theme='polarbear'
tooltips-enabled=true
unhide-delay=0
zoom-enabled=true
zoom-percent=150

[/]
enabled-docks=['igloo']
enabled-docks=['polarbear']
15 changes: 7 additions & 8 deletions snowblocks/plank/snowblock.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
[
{
"clean": [
"~/.config",
"~/.local/share"
]
"clean": ["$XDG_CONFIG_HOME/plank", "$XDG_DATA_HOME/plank"]
},
{
"link": {
"~/.config/plank/igloo/launchers": {
"$XDG_CONFIG_HOME/plank/polarbear/launchers": {
"create": true,
"force": true,
"hosts": {
"igloo": "launchers/igloo"
"polarbear": "launchers/polarbear"
}
},
"~/.local/share/plank/themes/igloo": {
"$XDG_DATA_HOME/plank/themes/polarbear": {
"create": true,
"force": true,
"path": "themes/igloo"
"hosts": {
"polarbear": "themes/polarbear"
}
}
}
}
Expand Down
File renamed without changes.

0 comments on commit 4fa168e

Please sign in to comment.