From ef5459d83b2be4e9d32673cce286337a58ec54a0 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Thu, 30 Dec 2021 16:08:37 +0200 Subject: [PATCH] Update awesome keybinds, conky details --- .config/awesome/bindings/client/init.lua | 29 +++++++------------- .config/awesome/bindings/global/init.lua | 35 ++---------------------- .config/conky/conky_left.conf | 6 ++-- 3 files changed, 16 insertions(+), 54 deletions(-) diff --git a/.config/awesome/bindings/client/init.lua b/.config/awesome/bindings/client/init.lua index f6a8619..6dd8723 100755 --- a/.config/awesome/bindings/client/init.lua +++ b/.config/awesome/bindings/client/init.lua @@ -63,16 +63,16 @@ clientkeys = end, {description = "toggle sticky", group = "client"} ), - --awful.key( - -- {modkey}, - -- "n", - -- function(c) - -- -- The client currently has the input focus, so it cannot be - -- -- minimized, since minimized clients can't have the focus. - -- c.minimized = true - -- end, - -- {description = "minimize", group = "client"} - --), + awful.key( + {modkey}, + "n", + function(c) + -- The client currently has the input focus, so it cannot be + -- minimized, since minimized clients can't have the focus. + c.minimized = true + end, + {description = "minimize", group = "client"} + ), awful.key( {modkey}, "m", @@ -82,15 +82,6 @@ clientkeys = end, {description = "(un)maximize", group = "client"} ), - awful.key( - {modkey, "Control"}, - "m", - function(c) - c.maximized_vertical = not c.maximized_vertical - c:raise() - end, - {description = "(un)maximize vertically", group = "client"} - ), awful.key( {modkey, "Shift"}, "m", diff --git a/.config/awesome/bindings/global/init.lua b/.config/awesome/bindings/global/init.lua index 3f0d44a..9cb05f8 100755 --- a/.config/awesome/bindings/global/init.lua +++ b/.config/awesome/bindings/global/init.lua @@ -27,19 +27,6 @@ globalkeys = end, {description = "quit awesome", group = "awesome"} ), - awful.key( - {modkey}, - "x", - function() - awful.prompt.run { - prompt = "Run Lua code: ", - textbox = awful.screen.focused().mypromptbox.widget, - exe_callback = awful.util.eval, - history_path = awful.util.get_cache_dir() .. "/history_eval" - } - end, - {description = "lua execute prompt", group = "awesome"} - ), awful.key( {modkey}, "j", @@ -50,28 +37,12 @@ globalkeys = ), awful.key( {modkey}, - "k", + "h", function() awful.client.focus.byidx(-1) end, {description = "focus previous by index", group = "client"} ), - awful.key( - {modkey, "Shift"}, - "j", - function() - awful.client.swap.byidx(1) - end, - {description = "swap with next client by index", group = "client"} - ), - awful.key( - {modkey, "Shift"}, - "k", - function() - awful.client.swap.byidx(-1) - end, - {description = "swap with previous client by index", group = "client"} - ), awful.key( {modkey}, "u", @@ -211,7 +182,7 @@ globalkeys = function() awful.spawn("/home/nick/.config/awesome/scripts/switch_theme.sh", false) end, - {description = "switch theme", group = "hotkey"} + {description = "switch theme", group = "hotkeys"} ), awful.key( {modkey}, @@ -239,7 +210,7 @@ globalkeys = ), awful.key( {modkey}, - "h", + "k", function() awful.tag.incmwfact(-0.05) end, diff --git a/.config/conky/conky_left.conf b/.config/conky/conky_left.conf index 04298f6..4c7929c 100755 --- a/.config/conky/conky_left.conf +++ b/.config/conky/conky_left.conf @@ -4,7 +4,7 @@ conky.config = { use_xft = true, font = 'Meslo LGS NF:size=12', xftalpha = 0.8, - update_interval = 1, + update_interval = 5, update_interval_on_battery = 15, total_run_times = 0, own_window = true, @@ -63,8 +63,8 @@ ${offset 300} └ UPTIME < $uptime > -$alignr ${offset -220} < wlp4s0:${if_empty ${exec iwgetid}} Offline$else ${exec iwgetid | sed 's/wlp4s0 ESSID://g'} - ${exec ifconfig wlp4s0 | grep "inet " | awk '{print $2}'}$endif > ┐ -$alignr ${offset -100} < eno1:${if_empty ${exec ifconfig eno1 | grep "inet " | awk '{print $2}'}} Offline$else ${exec ifconfig wlp4s0 | grep "inet " | awk '{print $2}'}$endif > ┴──────────── +$alignr < wlp4s0:${if_empty ${exec iwgetid}} Offline$else ${exec iwgetid | sed 's/wlp4s0 ESSID://g'} - ${exec ifconfig wlp4s0 | grep "inet " | awk '{print $2}'}$endif > ┐ ​ +$alignr < eno1:${if_empty ${exec ifconfig eno1 | grep "inet " | awk '{print $2}'}} Offline$else ${exec ifconfig wlp4s0 | grep "inet " | awk '{print $2}'}$endif > ┴──────────── ​ ${offset 450} MEM < $mem/$memmax - ${lua_parse format %2.0f $memperc}% ${membar 8,150} > ┬─────────────