From 1d1cd0550add9b3b8ae0a225f1af503c45e47b13 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 27 Dec 2020 08:28:43 +0100 Subject: [PATCH] Add config.lua contents --- config.lua | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/config.lua b/config.lua index 526175c..3ed04c0 100644 --- a/config.lua +++ b/config.lua @@ -1,3 +1,61 @@ local config = require("default_config") +local awful = require("awful") +local gears = require("gears") + +config.awesome.tiling.layouts = { + awful.layout.suit.tile, + awful.layout.suit.floating, + awful.layout.suit.tile.left, + awful.layout.suit.tile.bottom, + awful.layout.suit.tile.top, + -- awful.layout.suit.fair, + -- 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.magnifier, + -- awful.layout.suit.corner.nw, + -- awful.layout.suit.corner.ne, + -- awful.layout.suit.corner.sw, + -- awful.layout.suit.corner.se, +} + +config.autostart = gears.table.join(config.autostart, + { + "nextcloud", + "discord-canary", + "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1", + "tabs-app", + "/usr/lib/kdeconnectd", + "kdeconnect-indicator", + } +) + +config.widgets.system_resources.bars.screens = { 1, 2, 3 } + +config.keys.custom_keys = { + { + hotkey = { + { config.keys.modkey, }, + "e" + }, + action = function() + awful.spawn('pcmanfm') + end, + identity = { description = "pcmanfm", group = "utilities" } + }, + { + hotkey = { + { config.keys.modkey, }, + 'Print' + }, + action = function() + awful.spawn('sh -c ~/scripts/flameshot_upload.sh') + end, + identity = { description = "Upload screeshot", group = "utilities" } + } +}; + return config