tmux new window in new session
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user