mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2026-03-23 05:55:12 +00:00
update
This commit is contained in:
parent
fdc1b021cc
commit
9856882616
|
|
@ -100,7 +100,7 @@ local themes = { "blackburn", -- 1
|
||||||
local chosen_theme = themes[7]
|
local chosen_theme = themes[7]
|
||||||
local modkey = "Mod4"
|
local modkey = "Mod4"
|
||||||
local altkey = "Mod1"
|
local altkey = "Mod1"
|
||||||
local terminal = "gnome-terminal"
|
local terminal = "terminator"
|
||||||
local vi_focus = false -- vi-like client focus https://github.com/lcpz/awesome-copycats/issues/275
|
local vi_focus = false -- vi-like client focus https://github.com/lcpz/awesome-copycats/issues/275
|
||||||
local cycle_prev = true -- cycle with only the previously focused client or all https://github.com/lcpz/awesome-copycats/issues/274
|
local cycle_prev = true -- cycle with only the previously focused client or all https://github.com/lcpz/awesome-copycats/issues/274
|
||||||
local editor = os.getenv("EDITOR") or "nano"
|
local editor = os.getenv("EDITOR") or "nano"
|
||||||
|
|
@ -113,13 +113,16 @@ BLUESTATUS = false
|
||||||
-- IBus
|
-- IBus
|
||||||
os.execute("ibus-daemon -d")
|
os.execute("ibus-daemon -d")
|
||||||
|
|
||||||
|
|
||||||
awful.util.terminal = terminal
|
awful.util.terminal = terminal
|
||||||
awful.util.tagnames = { "1", "2" }
|
awful.util.tagnames = { "1", "2" }
|
||||||
awful.layout.layouts = { awful.layout.suit.tile, awful.layout.suit.tile.left, awful.layout.suit.tile.bottom,
|
awful.layout.layouts = { awful.layout.suit.tile, awful.layout.suit.tile.left, awful.layout.suit.tile.bottom,
|
||||||
awful.layout.suit.tile.top, -- awful.layout.suit.fair,
|
awful.layout.suit.tile.top,
|
||||||
-- awful.layout.suit.fair.horizontal,
|
awful.layout.suit.fair,
|
||||||
-- awful.layout.suit.spiral,
|
awful.layout.suit.fair.horizontal,
|
||||||
awful.layout.suit.spiral.dwindle -- awful.layout.suit.floating
|
awful.layout.suit.spiral,
|
||||||
|
awful.layout.suit.spiral.dwindle
|
||||||
|
-- awful.layout.suit.floating
|
||||||
-- awful.layout.suit.max,
|
-- awful.layout.suit.max,
|
||||||
-- awful.layout.suit.max.fullscreen,
|
-- awful.layout.suit.max.fullscreen,
|
||||||
-- awful.layout.suit.magnifier,
|
-- awful.layout.suit.magnifier,
|
||||||
|
|
@ -205,19 +208,19 @@ awful.util.mymainmenu = freedesktop.menu.build {
|
||||||
|
|
||||||
-- Hide the menu when the mouse leaves it
|
-- Hide the menu when the mouse leaves it
|
||||||
|
|
||||||
awful.util.mymainmenu.wibox:connect_signal("mouse::leave", function()
|
-- awful.util.mymainmenu.wibox:connect_signal("mouse::leave", function()
|
||||||
if not awful.util.mymainmenu.active_child or
|
-- if not awful.util.mymainmenu.active_child or
|
||||||
(awful.util.mymainmenu.wibox ~= mouse.current_wibox and awful.util.mymainmenu.active_child.wibox ~=
|
-- (awful.util.mymainmenu.wibox ~= mouse.current_wibox and awful.util.mymainmenu.active_child.wibox ~=
|
||||||
mouse.current_wibox) then
|
-- mouse.current_wibox) then
|
||||||
awful.util.mymainmenu:hide()
|
-- awful.util.mymainmenu:hide()
|
||||||
else
|
-- else
|
||||||
awful.util.mymainmenu.active_child.wibox:connect_signal("mouse::leave", function()
|
-- awful.util.mymainmenu.active_child.wibox:connect_signal("mouse::leave", function()
|
||||||
if awful.util.mymainmenu.wibox ~= mouse.current_wibox then
|
-- if awful.util.mymainmenu.wibox ~= mouse.current_wibox then
|
||||||
awful.util.mymainmenu:hide()
|
-- awful.util.mymainmenu:hide()
|
||||||
end
|
-- end
|
||||||
end)
|
-- end)
|
||||||
end
|
-- end
|
||||||
end)
|
-- end)
|
||||||
|
|
||||||
-- Set the Menubar terminal for applications that require it
|
-- Set the Menubar terminal for applications that require it
|
||||||
-- menubar.utils.terminal = terminal
|
-- menubar.utils.terminal = terminal
|
||||||
|
|
@ -269,7 +272,7 @@ end), awful.button({}, 4, awful.tag.viewnext), awful.button({}, 5, awful.tag.vie
|
||||||
-- {{{ Key bindings
|
-- {{{ Key bindings
|
||||||
|
|
||||||
globalkeys = mytable.join(-- Destroy all notifications
|
globalkeys = mytable.join(-- Destroy all notifications
|
||||||
awful.key({ "Control" }, "space", function()
|
awful.key({ "Control", "Shift" }, "Escape", function()
|
||||||
naughty.destroy_all_notifications()
|
naughty.destroy_all_notifications()
|
||||||
end, {
|
end, {
|
||||||
description = "destroy all notifications",
|
description = "destroy all notifications",
|
||||||
|
|
@ -281,9 +284,9 @@ globalkeys = mytable.join(-- Destroy all notifications
|
||||||
end, {
|
end, {
|
||||||
description = "take a screenshot",
|
description = "take a screenshot",
|
||||||
group = "hotkeys"
|
group = "hotkeys"
|
||||||
}), -- X screen locker
|
}), -- xlock screen locker
|
||||||
awful.key({ altkey, "Control", "Shift" }, "l", function()
|
awful.key({ altkey, "Control", "Shift" }, "l", function()
|
||||||
os.execute("xscreensaver-command -lock")
|
os.execute("xlock")
|
||||||
end, {
|
end, {
|
||||||
description = "lock screen",
|
description = "lock screen",
|
||||||
group = "hotkeys"
|
group = "hotkeys"
|
||||||
|
|
@ -411,18 +414,20 @@ globalkeys = mytable.join(-- Destroy all notifications
|
||||||
end, {
|
end, {
|
||||||
description = "toggle wibox",
|
description = "toggle wibox",
|
||||||
group = "awesome"
|
group = "awesome"
|
||||||
}), -- On-the-fly useless gaps change
|
}),
|
||||||
awful.key({ altkey, "Control" }, "+", function()
|
-- On-the-fly useless gaps change
|
||||||
lain.util.useless_gaps_resize(1)
|
-- awful.key({ altkey, "Control" }, "+", function()
|
||||||
end, {
|
-- lain.util.useless_gaps_resize(1)
|
||||||
description = "increment useless gaps",
|
-- end, {
|
||||||
group = "tag"
|
-- description = "increment useless gaps",
|
||||||
}), awful.key({ altkey, "Control" }, "-", function()
|
-- group = "tag"
|
||||||
lain.util.useless_gaps_resize(-1)
|
-- }), awful.key({ altkey, "Control" }, "-", function()
|
||||||
end, {
|
-- lain.util.useless_gaps_resize(-1)
|
||||||
description = "decrement useless gaps",
|
-- end, {
|
||||||
group = "tag"
|
-- description = "decrement useless gaps",
|
||||||
}), -- Dynamic tagging
|
-- group = "tag"
|
||||||
|
-- }),
|
||||||
|
-- Dynamic tagging
|
||||||
awful.key({ modkey, "Shift" }, "n", function()
|
awful.key({ modkey, "Shift" }, "n", function()
|
||||||
lain.util.add_tag()
|
lain.util.add_tag()
|
||||||
end, {
|
end, {
|
||||||
|
|
@ -518,35 +523,35 @@ globalkeys = mytable.join(-- Destroy all notifications
|
||||||
description = "dropdown application",
|
description = "dropdown application",
|
||||||
group = "launcher"
|
group = "launcher"
|
||||||
}), -- Widgets popups
|
}), -- Widgets popups
|
||||||
awful.key({ altkey }, "c", function()
|
-- awful.key({ altkey }, "c", function()
|
||||||
if beautiful.cal then
|
-- if beautiful.cal then
|
||||||
beautiful.cal.show(7)
|
-- beautiful.cal.show(7)
|
||||||
end
|
-- end
|
||||||
end, {
|
-- end, {
|
||||||
description = "show calendar",
|
-- description = "show calendar",
|
||||||
group = "widgets"
|
-- group = "widgets"
|
||||||
}), awful.key({ altkey }, "h", function()
|
-- }), awful.key({ altkey }, "h", function()
|
||||||
if beautiful.fs then
|
-- if beautiful.fs then
|
||||||
beautiful.fs.show(7)
|
-- beautiful.fs.show(7)
|
||||||
end
|
-- end
|
||||||
end, {
|
-- end, {
|
||||||
description = "show filesystem",
|
-- description = "show filesystem",
|
||||||
group = "widgets"
|
-- group = "widgets"
|
||||||
}), awful.key({ altkey }, "w", function()
|
-- }), awful.key({ altkey }, "w", function()
|
||||||
if beautiful.weather then
|
-- if beautiful.weather then
|
||||||
beautiful.weather.show(7)
|
-- beautiful.weather.show(7)
|
||||||
end
|
-- end
|
||||||
end, {
|
-- end, {
|
||||||
description = "show weather",
|
-- description = "show weather",
|
||||||
group = "widgets"
|
-- group = "widgets"
|
||||||
}), -- Screen brightness
|
-- }), -- Screen brightness
|
||||||
awful.key({}, "#233", function()
|
awful.key({}, "#233", function()
|
||||||
os.execute("adjust-brightness.lnk --inc 10")
|
os.execute("light -A 10")
|
||||||
end, {
|
end, {
|
||||||
description = "Fn + f6 --- brightness +10%",
|
description = "Fn + f6 --- brightness +10%",
|
||||||
group = "hotkeys"
|
group = "hotkeys"
|
||||||
}), awful.key({}, "#232", function()
|
}), awful.key({}, "#232", function()
|
||||||
os.execute("adjust-brightness.lnk --dec 10")
|
os.execute("light -U 10")
|
||||||
end, {
|
end, {
|
||||||
description = "Fn + f5 --- brightness -10%",
|
description = "Fn + f5 --- brightness -10%",
|
||||||
group = "hotkeys"
|
group = "hotkeys"
|
||||||
|
|
@ -572,10 +577,12 @@ globalkeys = mytable.join(-- Destroy all notifications
|
||||||
awful.key({ altkey, "Control", "Shift" }, "b", function()
|
awful.key({ altkey, "Control", "Shift" }, "b", function()
|
||||||
os.execute("rfkill toggle bluetooth")
|
os.execute("rfkill toggle bluetooth")
|
||||||
if BLUESTATUS == false then
|
if BLUESTATUS == false then
|
||||||
naughty.notify({ title = "Bluetooth", text = "Bluetooth is ON", icon="/home/sirhadrian/.config/awesome/themes/powerarrow-dark/icons/bluetooth.png"})
|
naughty.notify({ title = "Bluetooth", text = "Bluetooth is ON",
|
||||||
|
icon = "/home/sirhadrian/.config/awesome/themes/powerarrow-dark/icons/bluetooth.png" })
|
||||||
BLUESTATUS = true
|
BLUESTATUS = true
|
||||||
else
|
else
|
||||||
naughty.notify({ title = "Bluetooth", text = "Bluetooth is OFF", icon="/home/sirhadrian/.config/awesome/themes/powerarrow-dark/icons/bluetooth.png"})
|
naughty.notify({ title = "Bluetooth", text = "Bluetooth is OFF",
|
||||||
|
icon = "/home/sirhadrian/.config/awesome/themes/powerarrow-dark/icons/bluetooth.png" })
|
||||||
BLUESTATUS = false
|
BLUESTATUS = false
|
||||||
end
|
end
|
||||||
end, {
|
end, {
|
||||||
|
|
@ -601,7 +608,7 @@ globalkeys = mytable.join(-- Destroy all notifications
|
||||||
end, {
|
end, {
|
||||||
description = "Fn + f1 --- toggle mute",
|
description = "Fn + f1 --- toggle mute",
|
||||||
group = "hotkeys"
|
group = "hotkeys"
|
||||||
}), awful.key({ altkey, "Control" }, "m", function()
|
}), awful.key({ altkey, "Control" }, "9", function()
|
||||||
os.execute(string.format("amixer -q set %s 100%%", beautiful.volume.channel))
|
os.execute(string.format("amixer -q set %s 100%%", beautiful.volume.channel))
|
||||||
beautiful.volume.update()
|
beautiful.volume.update()
|
||||||
end, {
|
end, {
|
||||||
|
|
@ -980,9 +987,12 @@ end)
|
||||||
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
-- Mute volume on startup
|
||||||
|
-- os.execute(string.format("amixer set Master 0%%"))
|
||||||
|
-- beautiful.volume.update()
|
||||||
|
|
||||||
-- Gaps
|
-- Gaps
|
||||||
beautiful.useless_gap = 6
|
beautiful.useless_gap = 6
|
||||||
|
|
||||||
awful.spawn.with_shell("picom")
|
awful.spawn.with_shell("picom")
|
||||||
awful.spawn.with_shell("nitrogen --set-zoom-fill --random ~/Pictures/SFW")
|
awful.spawn.with_shell("nitrogen --set-zoom-fill --random ~/Pictures/SFW")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -298,11 +298,11 @@ theme.volume = lain.widget.alsa({
|
||||||
})
|
})
|
||||||
theme.volume.widget:buttons(awful.util.table.join(
|
theme.volume.widget:buttons(awful.util.table.join(
|
||||||
awful.button({}, 4, function()
|
awful.button({}, 4, function()
|
||||||
awful.util.spawn("amixer set Master 1%+")
|
awful.util.spawn("amixer set Master 5%+")
|
||||||
theme.volume.update()
|
theme.volume.update()
|
||||||
end),
|
end),
|
||||||
awful.button({}, 5, function()
|
awful.button({}, 5, function()
|
||||||
awful.util.spawn("amixer set Master 1%-")
|
awful.util.spawn("amixer set Master 5%-")
|
||||||
theme.volume.update()
|
theme.volume.update()
|
||||||
end)
|
end)
|
||||||
))
|
))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue