This commit is contained in:
Schneider Roland 2025-04-15 20:24:41 +02:00
parent e4d92e8927
commit 01227361e5
4 changed files with 1927 additions and 71 deletions

19
askme.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
rc=-1
# while [[ $rc != [01] ]]; do  ✔  took 4s   at 07:46:30 
ans=$(zenity --info --title 'Choose!' \
--text 'Autostart apps?' \
--ok-label YES \
--extra-button NO \
--timeout 15)
rc=$?
echo "${rc}-${ans}"
# done
if [[ $rc = 1 ]]
then
echo "exiting"
else
echo "startng"
fi

View File

@ -1,12 +1,21 @@
#!/usr/bin/env bash #!/usr/bin/env bash
function run { function run {
if ! pgrep $1 ; if ! pgrep $1; then
then
$@ & $@ &
fi fi
} }
ans=$(zenity --info --title 'Choose!' \
--text 'Autostart tray icons?' \
--ok-label YES \
--extra-button NO \
--timeout 15)
rc1=$?
echo "${rc}-${ans}"
if [[ $rc1 = 1 ]]; then
echo "exiting"
else
# utilities in top bar # utilities in top bar
# network manager # network manager
run /usr/bin/nm-applet run /usr/bin/nm-applet
@ -17,21 +26,40 @@ run /usr/bin/shutter
# volume control # volume control
run /usr/bin/pasystray run /usr/bin/pasystray
fi
ans=$(zenity --info --title 'Choose!' \
--text 'Autostart apps?' \
--ok-label YES \
--extra-button NO \
--timeout 15)
rc=$?
echo "${rc}-${ans}"
if [[ $rc = 1 ]]; then
echo "exiting"
exit 0
fi
# tag 1 # tag 1
run jetbrains-toolbox #run /usr/local/bin/jetbrains-toolbox
run /snap/bin/intellij-idea-ultimate
# tag 2 # tag 2
run /opt/google/chrome/chrome run /opt/google/chrome/chrome
# tag 3 # tag 3
run /usr/bin/terminator run /usr/bin/terminator
# tag 4 # tag 4
run /usr/bin/code run /snap/bin/code
# tag 5 # tag 5
#run /usr/bin/zoom run /usr/bin/zoom
#run /usr/bin/teams #run /snap/bin/teams
run /snap/bin/rambox
#tag 6 #tag 6
#run /snap/bin/rocketchat-desktop run /snap/bin/rocketchat-desktop
run /usr/bin/thunderbird run /usr/bin/thunderbird
run /usr/bin/discord #run /snap/bin/discord
# tag 7 # tag 7
run /usr/local/bin/bitwarden run /snap/bin/bitwarden
#run /usr/bin/keepassx #run /usr/bin/keepassx
# tag 12
run /snap/bin/firefox

1771
mein-a1 Normal file

File diff suppressed because it is too large Load Diff

110
rc.lua
View File

@ -18,6 +18,8 @@ local battery_widget = require("battery-widget")
local keyboard_layout_indicator = require("keyboard-layout-indicator") local keyboard_layout_indicator = require("keyboard-layout-indicator")
local revelation=require("revelation") local revelation=require("revelation")
revelation.curr_tag_only = true
-- Load Debian menu entries -- Load Debian menu entries
local debian = require("debian.menu") local debian = require("debian.menu")
local has_fdo, freedesktop = pcall(require, "freedesktop") local has_fdo, freedesktop = pcall(require, "freedesktop")
@ -64,6 +66,9 @@ local tag18 = "18"
local tag19 = "19" local tag19 = "19"
local tag20 = "20" local tag20 = "20"
-- Numpad: [0-9] = [#90, #87-#89, #83-#85, #79-#81]
local numpadMap = { 87, 88, 89, 83, 84, 85, 79, 80, 81, 90 }
local tags = { local tags = {
tag1,tag2,tag3,tag4,tag5,tag6,tag7,tag8,tag9,tag10, tag1,tag2,tag3,tag4,tag5,tag6,tag7,tag8,tag9,tag10,
tag11,tag12,tag13,tag14,tag15,tag16,tag17,tag18,tag19,tag20 tag11,tag12,tag13,tag14,tag15,tag16,tag17,tag18,tag19,tag20
@ -318,7 +323,6 @@ local function getAllClient()
local t = focusedScreen.selected_tag local t = focusedScreen.selected_tag
local clientsOnTag = t:clients() local clientsOnTag = t:clients()
return clientsOnTag return clientsOnTag
end end
-- restore the given client -- restore the given client
@ -479,6 +483,29 @@ root.buttons(gears.table.join(
-- {{{ Key bindings -- {{{ Key bindings
-- mod + s = show help -- mod + s = show help
globalkeys = gears.table.join( globalkeys = gears.table.join(
awful.key({ modkey, "Control" }, "v",
function ()
for _, c in ipairs(client.get()) do
awful.titlebar.show(c)
end
end,
{description = "show titles", group = "awesome"}
),
awful.key({ modkey }, "v",
function ()
for _, c in ipairs(client.get()) do
awful.titlebar.hide(c)
end
end,
{description = "hide titles", group = "awesome"}
),
awful.key({ modkey }, "b",
function ()
myscreen = awful.screen.focused()
myscreen.mywibox.visible = not myscreen.mywibox.visible
end,
{description = "toggle statusbar", group = "awesome"}
),
awful.key({ "Mod1", }, "Tab", awful.key({ "Mod1", }, "Tab",
function () function ()
switcher.switch( 1, "Mod1", "Alt_L", "Shift", "Tab") switcher.switch( 1, "Mod1", "Alt_L", "Shift", "Tab")
@ -497,6 +524,10 @@ globalkeys = gears.table.join(
{description = "view previous", group = "tag"}), {description = "view previous", group = "tag"}),
awful.key({ modkey, }, "Right", awful.tag.viewnext, awful.key({ modkey, }, "Right", awful.tag.viewnext,
{description = "view next", group = "tag"}), {description = "view next", group = "tag"}),
awful.key({ modkey, }, "End", awful.tag.viewprev,
{description = "view previous", group = "tag"}),
awful.key({ modkey, }, "Home", awful.tag.viewnext,
{description = "view next", group = "tag"}),
-- mod + Esc -> tag history resotre -- mod + Esc -> tag history resotre
awful.key({ modkey, }, "Escape", awful.tag.history.restore, awful.key({ modkey, }, "Escape", awful.tag.history.restore,
{description = "go back", group = "tag"}), {description = "go back", group = "tag"}),
@ -520,7 +551,7 @@ globalkeys = gears.table.join(
end, end,
{description = "restore all", group = "client"} {description = "restore all", group = "client"}
), ),
awful.key({ modkey, }, "u", awful.key({ modkey}, "Prior",
function () function ()
restoreAll() restoreAll()
awful.client.focus.byidx( 1) awful.client.focus.byidx( 1)
@ -528,7 +559,7 @@ globalkeys = gears.table.join(
end, end,
{description = "focus next by index", group = "client"} {description = "focus next by index", group = "client"}
), ),
awful.key({ modkey, }, "i", awful.key({ modkey }, "Next",
function () function ()
restoreAll() restoreAll()
awful.client.focus.byidx(-1) awful.client.focus.byidx(-1)
@ -546,10 +577,12 @@ globalkeys = gears.table.join(
{description = "swap with next client by index", group = "client"}), {description = "swap with next client by index", group = "client"}),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end, awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
{description = "swap with previous client by index", group = "client"}), {description = "swap with previous client by index", group = "client"}),
-- mod + ctrl + j|k -> focus next|prev screen -- mod + é|á|ű -> focus next|prev screen
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end, awful.key({ modkey }, "é", function () awful.screen.focus( 1) end,
{description = "focus the next screen", group = "screen"}), {description = "focus the next screen", group = "screen"}),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end, awful.key({ modkey }, "á", function () awful.screen.focus(2) end,
{description = "focus the previous screen", group = "screen"}),
awful.key({ modkey }, "ű", function () awful.screen.focus(3) end,
{description = "focus the previous screen", group = "screen"}), {description = "focus the previous screen", group = "screen"}),
-- mod + u -> urgent client -- mod + u -> urgent client
awful.key({ modkey, }, "u", awful.client.urgent.jumpto, awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
@ -703,7 +736,9 @@ for i = 1, 10 do
end, end,
{description = "view tag #"..i, group = "tag"}), {description = "view tag #"..i, group = "tag"}),
awful.key({ modkey, KEY_ALT }, "#" .. i + 9, -- awful.key({ modkey, KEY_ALT }, "#" .. i + 9,
-- awful.key({ modkey, KEY_ALT }, "#" .. i + 9,
awful.key({ modkey, KEY_ALT }, "#" .. numpadMap[i],
function () function ()
selectClientIdx(i) selectClientIdx(i)
end, end,
@ -749,8 +784,6 @@ for i = 1, 10 do
) )
end end
-- Numpad: [0-9] = [#90, #87-#89, #83-#85, #79-#81]
local numpadMap = { 87, 88, 89, 83, 84, 85, 79, 80, 81, 90 }
-- tags 11-20 -- tags 11-20
for i = 1, 10 do for i = 1, 10 do
globalkeys = gears.table.join(globalkeys, globalkeys = gears.table.join(globalkeys,
@ -854,30 +887,30 @@ awful.rules.rules = {
}, },
-- Floating clients. -- Floating clients.
{ rule_any = { -- { rule_any = {
instance = { -- instance = {
"DTA", -- Firefox addon DownThemAll. -- "DTA", -- Firefox addon DownThemAll.
"copyq", -- Includes session name in class. -- "copyq", -- Includes session name in class.
}, -- },
class = { -- class = {
"Arandr", -- "Arandr",
"Gpick", -- "Gpick",
"Kruler", -- "Kruler",
"MessageWin", -- kalarm. -- "MessageWin", -- kalarm.
"Sxiv", -- "Sxiv",
"Wpa_gui", -- "Wpa_gui",
"pinentry", -- "pinentry",
"veromix", -- "veromix",
"xtightvncviewer"}, -- "xtightvncviewer"},
name = { -- name = {
"Event Tester", -- xev. -- "Event Tester", -- xev.
}, -- },
role = { -- role = {
"AlarmWindow", -- Thunderbird's calendar. -- "AlarmWindow", -- Thunderbird's calendar.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools. -- "pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
} -- }
}, properties = { floating = true }}, -- }, properties = { floating = true }},
-- Add titlebars to normal clients and dialogs -- Add titlebars to normal clients and dialogs
{ rule_any = {type = { "normal", "dialog" } { rule_any = {type = { "normal", "dialog" }
@ -901,8 +934,10 @@ awful.rules.rules = {
{ rule = { instance = "zoom" }, { rule = { instance = "zoom" },
properties = { screen = function () return getScreenByTagName(tag5) end, tag = tag5 } }, properties = { screen = function () return getScreenByTagName(tag5) end, tag = tag5 } },
-- microsoft teams - preview -> tag5 -- microsoft teams - preview -> tag5
{ rule = { instance = "microsoft teams - preview" }, -- { rule = { instance = "microsoft teams - preview" },
properties = { screen = function () return getScreenByTagName(tag5) end, tag = tag5 } }, -- properties = { screen = function () return getScreenByTagName(tag5) end, tag = tag5 } },
{ rule = { class = "rambox" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
-- rocket.chat-> tag6 -- rocket.chat-> tag6
{ rule = { instance = "rocket.chat" }, { rule = { instance = "rocket.chat" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } }, properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
@ -910,14 +945,17 @@ awful.rules.rules = {
{ rule = { instance = "discord" }, { rule = { instance = "discord" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } }, properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
-- Thunderbird -> tag6 -- Thunderbird -> tag6
{ rule = { class = "Thunderbird" }, { rule = { class = "thunderbird" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } }, properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag17 } },
-- Bitwarden -> tag7 -- Bitwarden -> tag7
{ rule = { instance = "bitwarden" }, { rule = { instance = "bitwarden" },
properties = { screen = function () return getScreenByTagName(tag7) end, tag = tag7 } }, properties = { screen = function () return getScreenByTagName(tag7) end, tag = tag7 } },
-- keepass2 -> tag7 -- keepass2 -> tag7
{ rule = { instance = "keepassx" }, { rule = { instance = "keepassx" },
properties = { screen = function () return getScreenByTagName(tag7) end, tag = tag7 } }, properties = { screen = function () return getScreenByTagName(tag7) end, tag = tag7 } },
-- fireefox -> tag12
{ rule = { class = "firefox" },
properties = { screen = function () return getScreenByTagName(tag12) end, tag = tag12 } },
-- Set Firefox to always map on the tag named "2" on screen 1. -- Set Firefox to always map on the tag named "2" on screen 1.
-- { rule = { class = "Firefox" }, -- { rule = { class = "Firefox" },
-- properties = { screen = 1, tag = "2" } }, -- properties = { screen = 1, tag = "2" } },