add revelation plugin
This commit is contained in:
parent
9a31da851d
commit
66a7212d79
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
battery-widget
|
battery-widget
|
||||||
keyboard-layout-indicator
|
keyboard-layout-indicator
|
||||||
|
revelation
|
||||||
|
|||||||
@ -28,9 +28,10 @@ run /usr/bin/code
|
|||||||
# tag 5
|
# tag 5
|
||||||
run /usr/bin/zoom
|
run /usr/bin/zoom
|
||||||
run /usr/bin/teams
|
run /usr/bin/teams
|
||||||
tag 6
|
#tag 6
|
||||||
run /snap/bin/rocketchat-desktop
|
run /snap/bin/rocketchat-desktop
|
||||||
run /usr/bin/thunderbird
|
run /usr/bin/thunderbird
|
||||||
|
run /usr/bin/discord
|
||||||
# tag 7
|
# tag 7
|
||||||
run /usr/local/bin/bitwarden
|
run /usr/local/bin/bitwarden
|
||||||
run /usr/bin/keepassx
|
run /usr/bin/keepassx
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
git clone https://github.com/deficient/battery-widget.git
|
git clone https://github.com/deficient/battery-widget.git
|
||||||
git clone https://github.com/deficient/keyboard-layout-indicator.git
|
git clone https://github.com/deficient/keyboard-layout-indicator.git
|
||||||
|
git clone https://github.com/guotsuan/awesome-revelation revelation
|
||||||
sudo apt-get install acpid
|
sudo apt-get install acpid
|
||||||
|
|||||||
12
rc.lua
12
rc.lua
@ -13,8 +13,10 @@ local hotkeys_popup = require("awful.hotkeys_popup").widget
|
|||||||
-- Enable hotkeys help widget for VIM and other apps
|
-- Enable hotkeys help widget for VIM and other apps
|
||||||
-- when client with a matching name is opened:
|
-- when client with a matching name is opened:
|
||||||
require("awful.hotkeys_popup.keys")
|
require("awful.hotkeys_popup.keys")
|
||||||
|
-- custom widgets
|
||||||
local battery_widget = require("battery-widget")
|
local battery_widget = require("battery-widget")
|
||||||
local keyboard_layout_indicator = require("keyboard-layout-indicator")
|
local keyboard_layout_indicator = require("keyboard-layout-indicator")
|
||||||
|
local revelation=require("revelation")
|
||||||
|
|
||||||
-- Load Debian menu entries
|
-- Load Debian menu entries
|
||||||
local debian = require("debian.menu")
|
local debian = require("debian.menu")
|
||||||
@ -104,7 +106,8 @@ beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
|
|||||||
beautiful.font = wibar_font
|
beautiful.font = wibar_font
|
||||||
beautiful.wibar_bg="#6C3483cc"
|
beautiful.wibar_bg="#6C3483cc"
|
||||||
beautiful.bg_systray="#6C3483cc"
|
beautiful.bg_systray="#6C3483cc"
|
||||||
|
--revelation widget
|
||||||
|
revelation.init()
|
||||||
|
|
||||||
-- This is used later as the default terminal and editor to run.
|
-- This is used later as the default terminal and editor to run.
|
||||||
terminal = "x-terminal-emulator"
|
terminal = "x-terminal-emulator"
|
||||||
@ -348,6 +351,8 @@ root.buttons(gears.table.join(
|
|||||||
-- {{{ Key bindings
|
-- {{{ Key bindings
|
||||||
-- mod + s = show help
|
-- mod + s = show help
|
||||||
globalkeys = gears.table.join(
|
globalkeys = gears.table.join(
|
||||||
|
-- mod + e -> custom widget revelation
|
||||||
|
awful.key({ modkey, }, "e", revelation),
|
||||||
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
||||||
{description="show help", group="awesome"}),
|
{description="show help", group="awesome"}),
|
||||||
-- mod + left|right -> view next/prev tag
|
-- mod + left|right -> view next/prev tag
|
||||||
@ -700,6 +705,9 @@ awful.rules.rules = {
|
|||||||
-- rocket.chat-> tag6
|
-- rocket.chat-> tag6
|
||||||
{ rule = { instance = "rocket.chat" },
|
{ rule = { instance = "rocket.chat" },
|
||||||
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
|
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
|
||||||
|
-- discord -> tag6
|
||||||
|
{ rule = { instance = "discord" },
|
||||||
|
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
|
||||||
-- Thunderbird -> tag6
|
-- Thunderbird -> tag6
|
||||||
{ rule = { class = "Thunderbird" },
|
{ rule = { class = "Thunderbird" },
|
||||||
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
|
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
|
||||||
@ -785,5 +793,5 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
|
|||||||
-- }}}
|
-- }}}
|
||||||
--
|
--
|
||||||
-- {{{ autostart
|
-- {{{ autostart
|
||||||
-- awful.spawn.with_shell("~/.config/awesome/autorun.sh")
|
awful.spawn.with_shell("~/.config/awesome/autorun.sh")
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user