From d6455d46f370743a77ca45d44c2faacbb5597ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Wed, 27 Apr 2022 17:07:02 +0200 Subject: layout review --- config/awesome/rc.lua | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) (limited to 'config') diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 0235ea3..08a5794 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -43,7 +43,8 @@ local hostname = io.popen("uname -n"):read() -- Setup laptop screen -- awful.spawn.with_shell("nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1") -- load the gpu performance profile saved in home -awful.spawn.with_shell("xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --output HDMI-2 --primary --mode 1920x1080 --pos 1920x0") +-- awful.spawn.with_shell("xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --output HDMI-2 --primary --mode 1920x1080 --pos 1920x0") +awful.spawn.with_shell("xrandr --output eDP-1 --mode 1920x1080 --pos 0x360 --output HDMI-2 --primary --mode 3440x1440 --pos 1920x0") awful.spawn.with_shell("xinput --set-prop \"SYN1B7E:01 06CB:2970 Touchpad\" \"Synaptics Two-Finger Scrolling\" 1 1") @@ -74,18 +75,18 @@ local modkey = "Mod4" -- Table of layouts to cover with awful.layout.inc, order matters. awful.layout.layouts = { - awful.layout.suit.fair, + -- awful.layout.suit.fair, awful.layout.suit.tile, - awful.layout.suit.tile.left, - awful.layout.suit.tile.bottom, - awful.layout.suit.tile.top, - awful.layout.suit.fair.horizontal, - -- awful.layout.suit.spiral, + -- awful.layout.suit.tile.left, + -- awful.layout.suit.tile.bottom, + -- awful.layout.suit.tile.top, + -- awful.layout.suit.fair.horizontal, + awful.layout.suit.spiral, -- awful.layout.suit.spiral.dwindle, -- awful.layout.suit.max, - awful.layout.suit.max.fullscreen, + -- awful.layout.suit.max.fullscreen, -- awful.layout.suit.magnifier, - awful.layout.suit.floating, + -- awful.layout.suit.floating, -- awful.layout.suit.corner.nw, -- awful.layout.suit.corner.ne, -- awful.layout.suit.corner.sw, @@ -256,14 +257,6 @@ globalkeys = gears.table.join( awful.key({ modkey, "Control" }, "t", function () awful.screen.focus_relative(-1) end, {description = "focus the previous screen", group = "screen"}), - awful.key({modkey, }, "F1", function () awful.screen.focus(1) end, - {description = "Focus to first screen", group = "screen"}), - awful.key({modkey, }, "F2", function () awful.screen.focus(2) end, - {description = "Focus to second screen", group = "screen"}), - awful.key({modkey, }, "F3", function () awful.screen.focus(3) end, - {description = "Focus to third screen", group = "screen"}), - - awful.key({ modkey, }, "u", awful.client.urgent.jumpto, {description = "jump to urgent client", group = "client"}), awful.key({ modkey, }, "Tab", @@ -294,13 +287,13 @@ globalkeys = gears.table.join( {description = "increase master width factor", group = "layout"}), awful.key({ modkey, }, "n", function () awful.tag.incmwfact(-0.05) end, {description = "decrease master width factor", group = "layout"}), - awful.key({ modkey, "Shift" }, "n", function () awful.tag.incnmaster( 1, nil, true) end, + awful.key({ modkey, "Shift" }, "s", function () awful.tag.incnmaster( 1, nil, true) end, {description = "increase the number of master clients", group = "layout"}), - awful.key({ modkey, "Shift" }, "s", function () awful.tag.incnmaster(-1, nil, true) end, + awful.key({ modkey, "Shift" }, "n", function () awful.tag.incnmaster(-1, nil, true) end, {description = "decrease the number of master clients", group = "layout"}), - awful.key({ modkey, "Control" }, "n", function () awful.tag.incncol( 1, nil, true) end, + awful.key({ modkey, "Control" }, "s", function () awful.tag.incncol( 1, nil, true) end, {description = "increase the number of columns", group = "layout"}), - awful.key({ modkey, "Control" }, "s", function () awful.tag.incncol(-1, nil, true) end, + awful.key({ modkey, "Control" }, "n", function () awful.tag.incncol(-1, nil, true) end, {description = "decrease the number of columns", group = "layout"}), awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end, {description = "select next", group = "layout"}), -- cgit v1.2.3