diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-06-18 17:30:37 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-06-18 17:40:34 +0900 |
commit | 4b8adb4594798777b744d67735395a2f3ebaaa10 (patch) | |
tree | 6d089aa5001d2472fa6c992b709a4957fef6818e /awesome | |
parent | 2ef32b05c8ba937aec26b59fb1c8e07a56baa7be (diff) | |
download | dotfiles-4b8adb4594798777b744d67735395a2f3ebaaa10.tar.gz |
Update installed applications on laptop and launchers
Diffstat (limited to 'awesome')
-rw-r--r-- | awesome/.config/awesome/rc.lua | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 4574167..357a6be 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -60,7 +60,9 @@ local calcurse = terminal .. " -e calcurse" local aerc = terminal .. " -e aerc" local amfora = terminal .. " -e amfora" local emacs = "emacs" +local senpai = terminal .. " -e senpai" local slock_suspend = "slock systemctl --ignore-inhibitors suspend" +local weechat = terminal .. " -e weechat" -- Audacious media player local play_pause = "playerctl play-pause" @@ -499,7 +501,7 @@ local globalkeys = awful.util.table.join( end end, {description = "add fake screens", group = "screen"}), - awful.key({modkey}, "u", awful.client.urgent.jumpto, + awful.key({modkey, "Shift"}, "u", awful.client.urgent.jumpto, {description = "jump to urgent client", group = "client"}), awful.key({modkey}, "Tab", function () @@ -519,6 +521,8 @@ local globalkeys = awful.util.table.join( {description = "open Emacs", group = "launcher"}), awful.key({modkey}, "e", spawner(aerc), {description = "open aerc", group = "launcher"}), + awful.key({modkey}, "u", spawner(weechat), + {description = "open weechat", group = "launcher"}), awful.key({modkey}, "c", spawner(calcurse), {description = "open calcurse", group = "launcher"}), awful.key({modkey}, "a", spawner"liferea", @@ -531,6 +535,10 @@ local globalkeys = awful.util.table.join( {description = "open Firefox", group = "launcher"}), awful.key({modkey, "Shift"}, "f", spawner"torbrowser-launcher", {description = "open Tor Browser", group = "launcher"}), + awful.key({modkey}, "o", function () + awful.spawn.with_shell("mpv --ytdl-format=b $(xclip -out -selection clipboard)") + end, + {description = "open URL with mpv", group = "launcher"}), awful.key({modkey}, "t", spawner"transmission-gtk", {description = "open Transmission", group = "launcher"}), awful.key({modkey, "Shift"}, "t", spawner"thunderbird", @@ -547,12 +555,12 @@ local globalkeys = awful.util.table.join( {description = "lock screen", group = "launcher"}), awful.key({modkey, "Shift"}, "s", spawner(slock_suspend), {description = "lock screen then suspend", group = "launcher"}), - awful.key({modkey}, "m", spawner"nheko -p halogen", + awful.key({modkey}, "i", spawner(senpai), + {description = "open senpai", group = "launcher"}), + awful.key({modkey, "Shift"}, "m", spawner"nheko -p halogen", {description = "open Nheko for Halogen City", group = "launcher"}), - awful.key({modkey, "Shift"}, "m", spawner"nheko -p loang", + awful.key({modkey}, "m", spawner"nheko -p loang", {description = "open Nheko for loang network", group = "launcher"}), - awful.key({modkey, "Shift"}, "m", spawner"tootle", - {description = "open Tootle", group = "launcher"}), awful.key({modkey, "Shift"}, "-", spawner"audacious", {description = "Audacious: jump-to-song", group = "multimedia"}), awful.key({modkey}, "=", spawner(play_pause), @@ -766,7 +774,9 @@ awful.rules.rules = { -- Add titlebars to normal clients and dialogs {rule_any = {type = {"normal", "dialog"}}, - properties = {titlebars_enabled = true}} + properties = { + titlebars_enabled = function(c) return not c.requests_no_titlebar end, + }} -- Set Firefox to always map on the tag named "2" on screen 1. -- {rule = {class = "Firefox"}, @@ -835,12 +845,6 @@ client.connect_signal( }, layout = wibox.layout.align.horizontal } - - -- Show titlebar if client is floating, hide otherwise. - --if not c.floating and - -- awful.layout.get(c.screen) ~= awful.layout.suit.floating then - -- awful.titlebar.hide(c) - --end end ) |