From 66a7212d799c12f08bd27189ac01e4e89741943a Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Mon, 9 Aug 2021 18:19:11 +0200 Subject: [PATCH] add revelation plugin --- .gitignore | 1 + autorun.sh | 3 ++- install-deps.sh | 1 + rc.lua | 12 ++++++++++-- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5a6c133..4c77264 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ battery-widget keyboard-layout-indicator +revelation diff --git a/autorun.sh b/autorun.sh index 9d6ff5b..c465332 100755 --- a/autorun.sh +++ b/autorun.sh @@ -28,9 +28,10 @@ run /usr/bin/code # tag 5 run /usr/bin/zoom run /usr/bin/teams -tag 6 +#tag 6 run /snap/bin/rocketchat-desktop run /usr/bin/thunderbird +run /usr/bin/discord # tag 7 run /usr/local/bin/bitwarden run /usr/bin/keepassx diff --git a/install-deps.sh b/install-deps.sh index ec37c2b..994dc48 100644 --- a/install-deps.sh +++ b/install-deps.sh @@ -1,3 +1,4 @@ git clone https://github.com/deficient/battery-widget.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 diff --git a/rc.lua b/rc.lua index 3c56446..1a42b82 100644 --- a/rc.lua +++ b/rc.lua @@ -13,8 +13,10 @@ local hotkeys_popup = require("awful.hotkeys_popup").widget -- Enable hotkeys help widget for VIM and other apps -- when client with a matching name is opened: require("awful.hotkeys_popup.keys") +-- custom widgets local battery_widget = require("battery-widget") local keyboard_layout_indicator = require("keyboard-layout-indicator") +local revelation=require("revelation") -- Load Debian menu entries local debian = require("debian.menu") @@ -104,7 +106,8 @@ beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") beautiful.font = wibar_font beautiful.wibar_bg="#6C3483cc" beautiful.bg_systray="#6C3483cc" - +--revelation widget +revelation.init() -- This is used later as the default terminal and editor to run. terminal = "x-terminal-emulator" @@ -348,6 +351,8 @@ root.buttons(gears.table.join( -- {{{ Key bindings -- mod + s = show help globalkeys = gears.table.join( + -- mod + e -> custom widget revelation + awful.key({ modkey, }, "e", revelation), awful.key({ modkey, }, "s", hotkeys_popup.show_help, {description="show help", group="awesome"}), -- mod + left|right -> view next/prev tag @@ -700,6 +705,9 @@ awful.rules.rules = { -- rocket.chat-> tag6 { rule = { instance = "rocket.chat" }, 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 { rule = { class = "Thunderbird" }, 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 --- awful.spawn.with_shell("~/.config/awesome/autorun.sh") +awful.spawn.with_shell("~/.config/awesome/autorun.sh") -- }}}