forked from pierrechevalier83/workstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
41affcc
commit 5ce00a1
Showing
5 changed files
with
67 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
Workstyle | ||
=== | ||
|
||
Sway/i3 workspaces with style: | ||
|
||
This application will dynamically rename your workspaces to indicate which programs are running in each one. | ||
|
||
A picture is better than a thousand words! | ||
|
||
* The workspace bar could look like this (uses waybar) | ||
 | ||
|
||
* In context: | ||
 | ||
|
||
Installation | ||
=== | ||
|
||
``` | ||
cargo install workstyke | ||
``` | ||
|
||
Usage | ||
=== | ||
|
||
Simply run the executable: | ||
``` | ||
workstyle | ||
``` | ||
|
||
``` | ||
workspace --help | ||
``` | ||
will give you some more context. | ||
|
||
Sway configuration | ||
=== | ||
|
||
Add this line to your sway config: | ||
``` | ||
exec "workstyle &> /tmp/workstyle.log" | ||
``` | ||
|
||
You may also want to control the log level with the environment variable: RUST_LOG to error, info or debug. | ||
|
||
Note that since your workspaces will be renamed all the time, you should configure your keybindings to use numbered workspaces instead of assuming that the name is the number: | ||
Prefer | ||
``` | ||
bindsym $mod+1 workspace number 1 | ||
``` | ||
over | ||
``` | ||
bindsym $mod+1 workspace 1 | ||
``` | ||
|
||
Configuration | ||
=== | ||
|
||
The main configuration consists of deciding which icons to use for which applications. | ||
|
||
The config file is located at `${XDG_CONFIG_HOME}/workstyle/config.yml`. It will be generated if missing. Read the generated file. The syntax is in YAML and should be pretty self-explanatory. | ||
|
||
When an app isn't recogised in the config, `workstyle` will log the application name as an error. | ||
Simply add that string (case insensitive) to your config file, with an icon of your choice. | ||
|
||
Note that the crate [`find_unicode`](https://github.com/pierrechevalier83/find_unicode/) can help find a unicode character directly from the command line. It now supports all of nerdfonts unicode space. | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
More logging | ||
Decide if I want to pursue something more robust than the app name using the app id | ||
README | ||
publish crate |
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.
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 |
---|---|---|
|
@@ -29,4 +29,3 @@ | |
- [music, ] | ||
- [disk usage, ] | ||
- [.pdf, ] | ||
- ["", " "] |