tmux new window in new session

This commit is contained in:
Simonas Narbutas
2018-07-27 09:10:36 +02:00
parent 22cb8a8c40
commit 2e41d7601d
3 changed files with 28 additions and 1 deletions

View File

@@ -119,6 +119,28 @@ mykeyboardlayout = awful.widget.keyboardlayout()
-- {{{ Wibar
-- Create a textclock widget
mytextclock = wibox.widget.textclock()
local cal_notification
mytextclock:connect_signal("button::release",
function()
if cal_notification == nil then
awful.spawn.easy_async([[zsh -c "cal -3 -m --color=always |sed 's#\x1B\[7m\([0-9]\+\)\x1B\[27m#<span foreground=\"red\"><b>\1</b></span>#'"]],
function(stdout, stderr, reason, exit_code)
cal_notification = naughty.notify{
text = stdout,
-- text = string.gsub(string.gsub(stdout,
-- "+", "<span foreground='red'><b>"),
-- "-", "</b></span>"),
font = "Source Code Pro",
timeout = 0,
width = auto,
destroy = function() cal_notification = nil end
}
end
)
else
naughty.destroy(cal_notification)
end
end)
-- Create a wibox for each screen and add it
local taglist_buttons = gears.table.join(