mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
medit added in blackburn
This commit is contained in:
parent
0323d06f2a
commit
ad4c2e8642
|
@ -17,6 +17,7 @@ local beautiful = require("beautiful")
|
||||||
local naughty = require("naughty")
|
local naughty = require("naughty")
|
||||||
local vicious = require("vicious")
|
local vicious = require("vicious")
|
||||||
local scratch = require("scratch")
|
local scratch = require("scratch")
|
||||||
|
local perceptive = require("perceptive")
|
||||||
|
|
||||||
|
|
||||||
-- Run once function
|
-- Run once function
|
||||||
|
@ -81,7 +82,7 @@ beautiful.init(active_theme .. "/theme.lua")
|
||||||
terminal = "urxvtc"
|
terminal = "urxvtc"
|
||||||
editor = os.getenv("EDITOR")
|
editor = os.getenv("EDITOR")
|
||||||
editor_cmd = terminal .. " -e " .. editor
|
editor_cmd = terminal .. " -e " .. editor
|
||||||
gui_editor = "geany -ps"
|
gui_editor = "medit"
|
||||||
browser = "dwb"
|
browser = "dwb"
|
||||||
mail = terminal .. " -e mutt "
|
mail = terminal .. " -e mutt "
|
||||||
chat = terminal .. " -e irssi "
|
chat = terminal .. " -e irssi "
|
||||||
|
@ -99,13 +100,6 @@ layouts =
|
||||||
awful.layout.suit.tile.left, -- 3
|
awful.layout.suit.tile.left, -- 3
|
||||||
awful.layout.suit.tile.bottom, -- 4
|
awful.layout.suit.tile.bottom, -- 4
|
||||||
awful.layout.suit.tile.top, -- 5
|
awful.layout.suit.tile.top, -- 5
|
||||||
awful.layout.suit.fair, -- 6
|
|
||||||
awful.layout.suit.fair.horizontal, -- 7
|
|
||||||
awful.layout.suit.spiral, -- 8
|
|
||||||
awful.layout.suit.spiral.dwindle, -- 9
|
|
||||||
awful.layout.suit.max, -- 10
|
|
||||||
--awful.layout.suit.max.fullscreen, -- 11
|
|
||||||
--awful.layout.suit.magnifier -- 12
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -121,7 +115,7 @@ end
|
||||||
|
|
||||||
tags = {
|
tags = {
|
||||||
names = { "web", "term", "docs", "media", "down"},
|
names = { "web", "term", "docs", "media", "down"},
|
||||||
layout = { layouts[1], layouts[3], layouts[4], layouts[1], layouts[7] }
|
layout = { layouts[1], layouts[3], layouts[2], layouts[4], layouts[5] }
|
||||||
}
|
}
|
||||||
for s = 1, screen.count() do
|
for s = 1, screen.count() do
|
||||||
tags[s] = awful.tag(tags.names, s, tags.layout)
|
tags[s] = awful.tag(tags.names, s, tags.layout)
|
||||||
|
@ -130,14 +124,12 @@ end
|
||||||
-- Menu
|
-- Menu
|
||||||
myaccessories = {
|
myaccessories = {
|
||||||
{ "archives", "7zFM" },
|
{ "archives", "7zFM" },
|
||||||
{ "file manager", "spacefm" },
|
|
||||||
{ "editor", gui_editor },
|
{ "editor", gui_editor },
|
||||||
}
|
}
|
||||||
myinternet = {
|
myinternet = {
|
||||||
{ "browser", browser },
|
{ "browser", browser },
|
||||||
{ "irc client" , chat },
|
{ "irc client" , chat },
|
||||||
{ "torrent" , "rtorrent" },
|
{ "torrent" , "rtorrent" },
|
||||||
{ "torrtux" , terminal .. " -e torrtux " },
|
|
||||||
{ "torrent search" , "torrent-search" }
|
{ "torrent search" , "torrent-search" }
|
||||||
}
|
}
|
||||||
mygames = {
|
mygames = {
|
||||||
|
@ -227,14 +219,14 @@ local function create_calendar()
|
||||||
local first_day_in_week = os.date("%w", first_day)
|
local first_day_in_week = os.date("%w", first_day)
|
||||||
|
|
||||||
local result = "do lu ma me gi ve sa\n" -- days of the week
|
local result = "do lu ma me gi ve sa\n" -- days of the week
|
||||||
|
|
||||||
-- Italian localization
|
-- Italian localization
|
||||||
-- can be a stub for your own localization
|
-- can be a stub for your own localization
|
||||||
if language:find("it_IT") == nil
|
if language:find("it_IT") == nil
|
||||||
then
|
then
|
||||||
result = "su mo tu we th fr sa\n"
|
result = "su mo tu we th fr sa\n"
|
||||||
else
|
else
|
||||||
result = "do lu ma me gi ve sa\n"
|
result = "do lu ma me gi ve sa\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, first_day_in_week do
|
for i = 1, first_day_in_week do
|
||||||
|
@ -344,7 +336,7 @@ vicious.register(mygmail, vicious.widgets.gmail,
|
||||||
notify_text = 'Last one: "' .. args["{subject}"] .. '"'
|
notify_text = 'Last one: "' .. args["{subject}"] .. '"'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
naughty.notify({
|
naughty.notify({
|
||||||
title = notify_title,
|
title = notify_title,
|
||||||
text = notify_text,
|
text = notify_text,
|
||||||
timeout = 7,
|
timeout = 7,
|
||||||
|
@ -422,7 +414,7 @@ function show_info(t_out)
|
||||||
}
|
}
|
||||||
local hdd = awful.util.pread(scriptdir .. "dfs")
|
local hdd = awful.util.pread(scriptdir .. "dfs")
|
||||||
hdd = string.gsub(hdd, " ^%s*(.-)%s*$", "%1")
|
hdd = string.gsub(hdd, " ^%s*(.-)%s*$", "%1")
|
||||||
|
|
||||||
-- Italian localization
|
-- Italian localization
|
||||||
-- can be a stub for your own localization
|
-- can be a stub for your own localization
|
||||||
if language:find("it_IT") ~= nil
|
if language:find("it_IT") ~= nil
|
||||||
|
@ -431,7 +423,7 @@ function show_info(t_out)
|
||||||
hdd = string.gsub(hdd, "Free ", "Libero")
|
hdd = string.gsub(hdd, "Free ", "Libero")
|
||||||
hdd = string.gsub(hdd, "Total ", "Totale")
|
hdd = string.gsub(hdd, "Total ", "Totale")
|
||||||
end
|
end
|
||||||
|
|
||||||
infos = naughty.notify({
|
infos = naughty.notify({
|
||||||
text = hdd,
|
text = hdd,
|
||||||
timeout = t_out,
|
timeout = t_out,
|
||||||
|
@ -512,7 +504,7 @@ end, 1, "Master")
|
||||||
-- Net checker widget
|
-- Net checker widget
|
||||||
no_net_shown = true
|
no_net_shown = true
|
||||||
netwidget = wibox.widget.textbox()
|
netwidget = wibox.widget.textbox()
|
||||||
vicious.register(netwidget, vicious.widgets.net,
|
vicious.register(netwidget, vicious.widgets.net,
|
||||||
function (widget, args)
|
function (widget, args)
|
||||||
if args["{wlan0 carrier}"] == 0 then
|
if args["{wlan0 carrier}"] == 0 then
|
||||||
if no_net_shown == true then
|
if no_net_shown == true then
|
||||||
|
@ -533,7 +525,6 @@ end, 10)
|
||||||
netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end)))
|
netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end)))
|
||||||
|
|
||||||
-- Weather widget
|
-- Weather widget
|
||||||
require("perceptive")
|
|
||||||
perceptive.register(123456) -- https//github.com/copycat-killer/perceptive
|
perceptive.register(123456) -- https//github.com/copycat-killer/perceptive
|
||||||
|
|
||||||
-- Separators
|
-- Separators
|
||||||
|
@ -689,7 +680,7 @@ globalkeys = awful.util.table.join(
|
||||||
|
|
||||||
-- Show/Hide Wibox
|
-- Show/Hide Wibox
|
||||||
awful.key({ modkey }, "b", function ()
|
awful.key({ modkey }, "b", function ()
|
||||||
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible
|
||||||
end),
|
end),
|
||||||
|
|
||||||
-- Layout manipulation
|
-- Layout manipulation
|
||||||
|
@ -741,29 +732,30 @@ globalkeys = awful.util.table.join(
|
||||||
awful.util.spawn("amixer set Master playback mute", false )
|
awful.util.spawn("amixer set Master playback mute", false )
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ "Control" }, "u", function ()
|
awful.key({ "Control" }, "u", function ()
|
||||||
awful.util.spawn("amixer set Master playback unmute", false )
|
awful.util.spawn("amixer set Master playback unmute", false )
|
||||||
vicious.force({ volumewidget })
|
vicious.force({ volumewidget })
|
||||||
|
end),
|
||||||
|
awful.key({ altkey, "Control" }, "m",
|
||||||
|
function ()
|
||||||
|
awful.util.spawn("amixer set Master playback 100%", false )
|
||||||
|
vicious.force({ volumewidget })
|
||||||
end),
|
end),
|
||||||
awful.key({ altkey, "Control" }, "m", function ()
|
|
||||||
awful.util.spawn("amixer set Master playback 100%", false )
|
|
||||||
vicious.force({ volumewidget })
|
|
||||||
end),
|
|
||||||
|
|
||||||
-- Music control
|
-- Music control
|
||||||
awful.key({ altkey, "Control" }, "Up", function ()
|
awful.key({ altkey, "Control" }, "Up", function ()
|
||||||
awful.util.spawn( "mpc toggle", false )
|
awful.util.spawn( "mpc toggle", false )
|
||||||
vicious.force({ mpdwidget } )
|
vicious.force({ mpdwidget } )
|
||||||
end),
|
end),
|
||||||
awful.key({ altkey, "Control" }, "Down", function ()
|
awful.key({ altkey, "Control" }, "Down", function ()
|
||||||
awful.util.spawn( "mpc stop", false )
|
awful.util.spawn( "mpc stop", false )
|
||||||
vicious.force({ mpdwidget } )
|
vicious.force({ mpdwidget } )
|
||||||
end ),
|
end ),
|
||||||
awful.key({ altkey, "Control" }, "Left", function ()
|
awful.key({ altkey, "Control" }, "Left", function ()
|
||||||
awful.util.spawn( "mpc prev", false )
|
awful.util.spawn( "mpc prev", false )
|
||||||
vicious.force({ mpdwidget } )
|
vicious.force({ mpdwidget } )
|
||||||
end ),
|
end ),
|
||||||
awful.key({ altkey, "Control" }, "Right", function ()
|
awful.key({ altkey, "Control" }, "Right", function ()
|
||||||
awful.util.spawn( "mpc next", false )
|
awful.util.spawn( "mpc next", false )
|
||||||
vicious.force({ mpdwidget } )
|
vicious.force({ mpdwidget } )
|
||||||
end ),
|
end ),
|
||||||
|
@ -774,7 +766,6 @@ globalkeys = awful.util.table.join(
|
||||||
-- User programs
|
-- User programs
|
||||||
awful.key({ modkey, }, "q", function () awful.util.spawn( "dwb", false ) end),
|
awful.key({ modkey, }, "q", function () awful.util.spawn( "dwb", false ) end),
|
||||||
awful.key({ modkey, }, "s", function () awful.util.spawn(gui_editor) end),
|
awful.key({ modkey, }, "s", function () awful.util.spawn(gui_editor) end),
|
||||||
awful.key({ modkey, }, "d", function () awful.util.spawn( "spacefm", false ) end),
|
|
||||||
|
|
||||||
-- Prompt
|
-- Prompt
|
||||||
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
|
||||||
|
@ -865,7 +856,7 @@ awful.rules.rules = {
|
||||||
size_hints_honor = false
|
size_hints_honor = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{ rule = { class = "URxvt" },
|
{ rule = { class = "URxvt" },
|
||||||
properties = {opacity = 0.95} },
|
properties = {opacity = 0.95} },
|
||||||
|
|
||||||
|
@ -878,7 +869,7 @@ awful.rules.rules = {
|
||||||
maximized_vertical=true,
|
maximized_vertical=true,
|
||||||
maximized_horizontal=true } },
|
maximized_horizontal=true } },
|
||||||
|
|
||||||
{ rule = { class = "Geany" },
|
{ rule = { class = "Medit" },
|
||||||
properties = { tag = tags[1][2] } },
|
properties = { tag = tags[1][2] } },
|
||||||
|
|
||||||
{ rule = { class = "Zathura" },
|
{ rule = { class = "Zathura" },
|
||||||
|
@ -888,8 +879,8 @@ awful.rules.rules = {
|
||||||
properties = { tag = tags[1][4],
|
properties = { tag = tags[1][4],
|
||||||
floating = true } },
|
floating = true } },
|
||||||
|
|
||||||
{ rule = { class = "Native" },
|
{ rule = { class = "Nathive" },
|
||||||
properties = { tag = tags[1][4] } },
|
properties = { tag = tags[1][4] } },
|
||||||
|
|
||||||
{ rule = { class = "Transmission-gtk" },
|
{ rule = { class = "Transmission-gtk" },
|
||||||
properties = { tag = tags[1][5] } },
|
properties = { tag = tags[1][5] } },
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 119 KiB |
Loading…
Reference in a new issue