Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
taggrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Henrik Tjäder
taggrid
Commits
a6288628
Commit
a6288628
authored
5 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug where the tagbar was duplicated for all screens
parent
0b19c1a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
taggrid.lua
+7
-2
7 additions, 2 deletions
taggrid.lua
with
9 additions
and
4 deletions
README.md
+
2
−
2
View file @
a6288628
...
...
@@ -35,7 +35,7 @@ s.mytaglist = awful.widget.taglist{
screen
=
s
,
filter
=
awful
.
widget
.
taglist
.
filter
.
all
,
buttons
=
taglist_buttons
,
layout
=
taggrid
.
g
rid
layout
layout
=
taggrid
.
g
et
layout
()
}
```
...
...
This diff is collapsed.
Click to expand it.
taggrid.lua
+
7
−
2
View file @
a6288628
...
...
@@ -25,9 +25,9 @@ taggrid.tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "[", "]", "
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
"0"
,
"["
,
"]"
,
"←"
}
function
taggrid
.
getlayout
()
-- Create a gridlayout for the above tags
taggrid
.
grid
layout
=
wibox
.
widget
{
local
layout
=
wibox
.
widget
{
forced_num_cols
=
taggrid
.
tag_offset
,
forced_num_rows
=
taggrid
.
tag_column_count
,
--min_rows_size = 10,
...
...
@@ -36,6 +36,9 @@ taggrid.tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "[", "]", "
layout
=
wibox
.
layout
.
grid
}
return
layout
end
-- View the next tag to the left, wrapping on the current row
-- Replacing awful.tag.viewprev
function
taggrid
.
viewprev
()
...
...
@@ -82,6 +85,8 @@ function taggrid.viewnext()
tag
=
screen
.
tags
[
curidx
+
1
]
end
if
tag
then
-- Can be replaced with awful.tag.viewidx(i,[screen])
-- view_only() is deprecated
tag
:
view_only
()
end
end
...
...
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