1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

medit added in blackburn

This commit is contained in:
luke bonham 2013-04-09 12:10:03 +02:00
parent 0323d06f2a
commit ad4c2e8642
2 changed files with 28 additions and 37 deletions

View file

@ -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 = {
@ -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
@ -745,7 +736,8 @@ globalkeys = awful.util.table.join(
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), end),
awful.key({ altkey, "Control" }, "m", function () awful.key({ altkey, "Control" }, "m",
function ()
awful.util.spawn("amixer set Master playback 100%", false ) awful.util.spawn("amixer set Master playback 100%", false )
vicious.force({ volumewidget }) vicious.force({ volumewidget })
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),
@ -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,7 +879,7 @@ 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" },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 119 KiB