-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pavel Makhov
committed
Dec 27, 2020
1 parent
b2664e5
commit 8b829b2
Showing
6 changed files
with
39 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
layout: post | ||
title: Client is missing an icon | ||
date: 2020-12-26 | ||
description: I didn't have an icon for Rambox and finally found how to add it | ||
tags: awesome wm | ||
--- | ||
|
||
For some reason Rambox didn't have an icon on the tasklist and it looked following way: | ||
|
||
![rambox-no-icon]({{site.url}}/images/2020/rambox-no-icon.png) | ||
|
||
Adding following lines to the signal handler finally resolved the issue (note that default configuration already has this handler): | ||
|
||
```lua | ||
client.connect_signal("manage", function (c) | ||
if c.class == "Rambox" then | ||
local icon = gears.surface("/home/pmakhov/Pictures/256x256.png") | ||
c.icon = icon._native | ||
icon:finish() | ||
end | ||
end) | ||
``` | ||
|
||
![rambox-with-icon]({{site.url}}/images/2020/rambox-with-icon.png) | ||
|
||
Based on this SO answer: [stackoverflow.com/a/30379815/1252056](https://stackoverflow.com/a/30379815/1252056) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.