From 6d1748eb97b7ffd1d89706e5fd321f1db365e963 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 28 Oct 2021 19:38:28 +1100 Subject: [PATCH] made any leftover tags from 10 / screens:count() get given to the first screen --- rc.lua | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/rc.lua b/rc.lua index c3c678d..08d56e6 100644 --- a/rc.lua +++ b/rc.lua @@ -219,7 +219,11 @@ awful.screen.connect_for_each_screen(function(s) -- Each screen has its own tag table. local tags = {} - for i = 1, math.floor(10 / screen:count()) do + local extra = 0 + if s.index == 1 then + extra = 10 % screen:count() + end + for i = 1, math.floor(10 / screen:count()) + extra do tags[#tags+1] = tostring(workspaceCounter) workspaceCounter = workspaceCounter + 1 end @@ -484,7 +488,7 @@ clientkeys = gears.table.join( -- Bind all key numbers to tags. -- Be careful: we use keycodes to make it work on any keyboard layout. -- This should map on the top row of your keyboard, usually 1 to 9. -for i = 1, 10 do +for i = 1, #root.tags() do globalkeys = gears.table.join(globalkeys, -- View tag only. awful.key({ modkey }, "#" .. i + 9, @@ -621,21 +625,27 @@ awful.rules.rules = { }, { rule_any = { - class = {"xfce4-terminal", "Xfce4-terminal"}, + class = {"xfce4-terminal", "Xfce4-terminal", "mpv"}, }, properties = { size_hints_honor = false } }, -- Set Firefox to always map on the tag named "2" on screen 1. -- { rule = { class = "Firefox" }, -- properties = { screen = 1, tag = "2" } }, - { rule = { class = "Steam", name = "Steam" }, - properties = {tag = "2", titlebars_enabled = false } }, - { rule = { class = "Steam", name = "Friends List.*"}, - properties = {tag = "5", titlebars_enabled = false } }, - { rule = { class = "Pidgin"}, - properties = {tag = "5"} }, - { rule = { class = "Gajim", name = ".*File Transfer.*"}, - properties = {tag = "4", floating = true } }, + { rule = { class = "Steam", name = "Steam" }, + properties = {tag = "3", titlebars_enabled = false } }, + { rule = { class = "Steam", name = "Friends List.*"}, + properties = {tag = "6", titlebars_enabled = false } }, + { rule = { class = "Pidgin"}, + properties = {tag = "6"} }, + { rule = { class = "Gajim", name = ".*File Transfer.*"}, + properties = {tag = "5", floating = true } }, + { rule_any = { class = {"RimWorldLinux", "Minecraft.*"} }, + properties = {fullscreen = true, tag = "4" } }, + { rule = { class = "Waterfox-classic" }, + properties = {tag = "8"} }, + { rule = { class = "QuiteRss" }, + properties = {tag = "9"} }, } -- }}} @@ -698,12 +708,13 @@ awful.spawn.with_shell( 'xrdb -merge <<< "awesome.started:true";' .. 'corectrl &' .. 'nextcloud &' .. + 'SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket SSH_ASKPASS_REQUIRE=force SSH_ASKPASS=/usr/lib/ssh/ssh-askpass ssh-add &' .. 'xinput set-prop "Logitech MX518 Gaming Mouse" "libinput Accel Profile Enabled" 0, 0;' .. 'xinput set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Profile Enabled" 0, 0;' .. 'dex --environment Awesome --autostart --search-paths "$XDG_CONFIG_DIRS/autostart:$XDG_CONFIG_HOME/autostart";' -- https://github.com/jceb/dex ) gears.wallpaper.set("#000000") -awful.spawn.with_shell("SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket SSH_ASKPASS_REQUIRE=force SSH_ASKPASS=/usr/lib/ssh/ssh-askpass ssh-add") +--awful.spawn.with_shell("SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket SSH_ASKPASS_REQUIRE=force SSH_ASKPASS=/usr/lib/ssh/ssh-askpass ssh-add") --[[ awful.spawn.with_shell("corectrl") awful.spawn.with_shell("nextcloud")