added another tabbar style
This commit is contained in:
parent
eaecd80859
commit
b7c65b3c84
|
@ -135,16 +135,17 @@ tabbed_spawn_into_tab -- set to true if you want new windows to spawn into y
|
||||||
### Flash Focus
|
### Flash Focus
|
||||||
![](https://imgur.com/5txYrlV.gif)
|
![](https://imgur.com/5txYrlV.gif)
|
||||||
|
|
||||||
<p align="center">gif by [javacafe](https://github.com/JavaCafe01)</p>
|
<p align="center">git by [javacafe](https://github.com/JavaCafe01)</p>
|
||||||
|
|
||||||
### Wind swallowing
|
### Wind swallowing
|
||||||
![](https://media.discordapp.net/attachments/635625813143978012/769180910683684864/20-10-23-14-40-32.gif)
|
![](https://media.discordapp.net/attachments/635625813143978012/769180910683684864/20-10-23-14-40-32.gif)
|
||||||
|
|
||||||
<p align="center">gif by me :)</p>
|
<p align="center">gif by me :)</p>
|
||||||
|
|
||||||
##TODO
|
## TODO
|
||||||
- [ ] Scratchpad module
|
- [ ] Scratchpad module
|
||||||
- [ ] Add a cool alternative tabbar style
|
- [ ] Some more documentation on the tabbed module
|
||||||
|
- [x] Add a cool alternative tabbar style
|
||||||
- [ ] Add another cool tabbar style (we need more styles)
|
- [ ] Add another cool tabbar style (we need more styles)
|
||||||
- [ ] Make the mstab layout compatible with vertical tabbars (left and right)
|
- [ ] Make the mstab layout compatible with vertical tabbars (left and right)
|
||||||
- [ ] Add option to mstab layout to not shrink windows down when they are in the tabbed pane and unfocused (for example for people using transparent terminals)
|
- [ ] Add option to mstab layout to not shrink windows down when they are in the tabbed pane and unfocused (for example for people using transparent terminals)
|
||||||
|
|
|
@ -0,0 +1,54 @@
|
||||||
|
local awful = require("awful")
|
||||||
|
local gears = require("gears")
|
||||||
|
local wibox = require("wibox")
|
||||||
|
|
||||||
|
local beautiful = require("beautiful")
|
||||||
|
|
||||||
|
local bg_normal = beautiful.tabbar_bg_normal or beautiful.bg_normal or "#ffffff"
|
||||||
|
local fg_normal = beautiful.tabbar_fg_normal or beautiful.fg_normal or "#000000"
|
||||||
|
local bg_focus = beautiful.tabbar_bg_focus or beautiful.bg_focus or "#000000"
|
||||||
|
local fg_focus = beautiful.tabbar_fg_focus or beautiful.fg_focus or "#ffffff"
|
||||||
|
local font = beautiful.tabbar_font or beautiful.font or "Hack 15"
|
||||||
|
local size = beautiful.tabbar_size or 40
|
||||||
|
local position = beautiful.tabbar_position or "bottom"
|
||||||
|
|
||||||
|
local function create(c, focused_bool, buttons)
|
||||||
|
local bg_temp = bg_normal
|
||||||
|
local fg_temp = fg_normal
|
||||||
|
if focused_bool then
|
||||||
|
bg_temp = bg_focus
|
||||||
|
fg_temp = fg_focus
|
||||||
|
end
|
||||||
|
local wid_temp = wibox.widget({
|
||||||
|
{
|
||||||
|
{
|
||||||
|
awful.widget.clienticon(c),
|
||||||
|
left = 10,
|
||||||
|
right = 10,
|
||||||
|
bottom= 10,
|
||||||
|
top= 10,
|
||||||
|
widget = wibox.container.margin()
|
||||||
|
},
|
||||||
|
widget = wibox.container.place()
|
||||||
|
},
|
||||||
|
buttons = buttons,
|
||||||
|
bg = bg_temp,
|
||||||
|
widget = wibox.container.background()
|
||||||
|
})
|
||||||
|
return wid_temp
|
||||||
|
end
|
||||||
|
|
||||||
|
local layout = wibox.layout.fixed.horizontal
|
||||||
|
if position == "left" or position == "right" then
|
||||||
|
layout = wibox.layout.fixed.vertical
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
layout = layout,
|
||||||
|
create = create,
|
||||||
|
position = position,
|
||||||
|
size = size,
|
||||||
|
bg_normal = bg_normal,
|
||||||
|
bg_focus = bg_normal
|
||||||
|
}
|
||||||
|
|
|
@ -3,13 +3,13 @@ local wibox = require("wibox")
|
||||||
|
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
|
|
||||||
local bg_normal = beautiful.tabbed_bg_normal or beautiful.bg_normal or "#ffffff"
|
local bg_normal = beautiful.tabbar_bg_normal or beautiful.bg_normal or "#ffffff"
|
||||||
local fg_normal = beautiful.tabbed_fg_normal or beautiful.fg_normal or "#000000"
|
local fg_normal = beautiful.tabbar_fg_normal or beautiful.fg_normal or "#000000"
|
||||||
local bg_focus = beautiful.tabbed_bg_focus or beautiful.bg_focus or "#000000"
|
local bg_focus = beautiful.tabbar_bg_focus or beautiful.bg_focus or "#000000"
|
||||||
local fg_focus = beautiful.tabbed_fg_focus or beautiful.fg_focus or "#ffffff"
|
local fg_focus = beautiful.tabbar_fg_focus or beautiful.fg_focus or "#ffffff"
|
||||||
local font = beautiful.tabbed_font or beautiful.font or "Hack 15"
|
local font = beautiful.tabbar_font or beautiful.font or "Hack 15"
|
||||||
local height = beautiful.tabbed_bar_height or 20
|
local size = beautiful.tabbar_size or 20
|
||||||
local position = beautiful.tabbed_bar_orientation or "top"
|
local position = beautiful.tabbar_orientation or "top"
|
||||||
|
|
||||||
local function create(c, focused_bool, buttons)
|
local function create(c, focused_bool, buttons)
|
||||||
local flexlist = wibox.layout.flex.horizontal()
|
local flexlist = wibox.layout.flex.horizontal()
|
||||||
|
@ -43,7 +43,7 @@ return {
|
||||||
layout = wibox.layout.flex.horizontal,
|
layout = wibox.layout.flex.horizontal,
|
||||||
create = create,
|
create = create,
|
||||||
position = "top",
|
position = "top",
|
||||||
height = height,
|
size = size,
|
||||||
bg_normal = bg_normal,
|
bg_normal = bg_normal,
|
||||||
bg_focus = bg_focus
|
bg_focus = bg_focus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue