Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
awesome-wm-widgets-streetturtle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hglawe
awesome-wm-widgets-streetturtle
Commits
acb569b5
Commit
acb569b5
authored
2 years ago
by
GitHub Action
Browse files
Options
Downloads
Patches
Plain Diff
update from master
parent
79d04b54
Branches
gh-pages
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_widgets/spotify-widget.md
+6
-1
6 additions, 1 deletion
_widgets/spotify-widget.md
with
6 additions
and
1 deletion
_widgets/spotify-widget.md
+
6
−
1
View file @
acb569b5
...
...
@@ -37,6 +37,7 @@ It is possible to customize widget by providing a table with all or some of the
|
`max_length`
|
`15`
| Maximum lentgh of artist and title names. Text will be ellipsized if longer. |
|
`show_tooltip`
|
`true`
| Show tooltip on hover with information about the playing song |
|
`timeout`
| 1 | How often in seconds the widget refreshes |
|
`sp_bin`
|
`sp`
| Path to the
`sp`
binary. Required if
`sp`
is not in environment PATH. |
### Example:
...
...
@@ -49,7 +50,8 @@ spotify_widget({
dim_when_paused
=
true
,
dim_opacity
=
0
.
5
,
max_length
=
-
1
,
show_tooltip
=
false
show_tooltip
=
false
,
sp_bin
=
gears
.
filesystem
.
get_configuration_dir
()
..
'scripts/sp'
})
```
...
...
@@ -69,7 +71,10 @@ First you need to have spotify CLI installed, it uses dbus to communicate with s
git clone https://gist.github.com/fa6258f3ff7b17747ee3.git
cd
./fa6258f3ff7b17747ee3
chmod
+x sp
# This widget will work by default if the binary is in the system PATH
sudo cp
./sp /usr/local/bin/
# Alternatively, you may save the binary anywhere and supply the path via this widget's sp_bin argument:
# cp ./sp ~/.config/awesome/scripts/
```
Then clone repo under
**~/.config/awesome/**
and add widget in
**rc.lua**
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment