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,37 +1,65 @@
#!/usr/bin/env bash
function run {
if ! pgrep $1 ;
then
$@&
if ! pgrep $1; then
$@ &
fi
}
ans=$(zenity --info --title 'Choose!' \
--text 'Autostart tray icons?' \
--ok-label YES \
--extra-button NO \
--timeout 15)
rc1=$?
echo "${rc}-${ans}"
# utilities in top bar
# network manager
run /usr/bin/nm-applet
# bluetooth indicator
run /usr/bin/blueman-manager
# screenshot utility
run /usr/bin/shutter
# volume control
run /usr/bin/pasystray
if [[ $rc1 = 1 ]]; then
echo "exiting"
else
# utilities in top bar
# network manager
run /usr/bin/nm-applet
# bluetooth indicator
run /usr/bin/blueman-manager
# screenshot utility
run /usr/bin/shutter
# volume control
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
run jetbrains-toolbox
#run /usr/local/bin/jetbrains-toolbox
run /snap/bin/intellij-idea-ultimate
# tag 2
run /opt/google/chrome/chrome
# tag 3
run /usr/bin/terminator
# tag 4
run /usr/bin/code
run /snap/bin/code
# tag 5
#run /usr/bin/zoom
#run /usr/bin/teams
run /usr/bin/zoom
#run /snap/bin/teams
run /snap/bin/rambox
#tag 6
#run /snap/bin/rocketchat-desktop
run /snap/bin/rocketchat-desktop
run /usr/bin/thunderbird
run /usr/bin/discord
#run /snap/bin/discord
# tag 7
run /usr/local/bin/bitwarden
run /snap/bin/bitwarden
#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 revelation=require("revelation")
revelation.curr_tag_only = true
-- Load Debian menu entries
local debian = require("debian.menu")
local has_fdo, freedesktop = pcall(require, "freedesktop")
@ -64,6 +66,9 @@ local tag18 = "18"
local tag19 = "19"
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 = {
tag1,tag2,tag3,tag4,tag5,tag6,tag7,tag8,tag9,tag10,
tag11,tag12,tag13,tag14,tag15,tag16,tag17,tag18,tag19,tag20
@ -318,7 +323,6 @@ local function getAllClient()
local t = focusedScreen.selected_tag
local clientsOnTag = t:clients()
return clientsOnTag
end
-- restore the given client
@ -479,6 +483,29 @@ root.buttons(gears.table.join(
-- {{{ Key bindings
-- mod + s = show help
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",
function ()
switcher.switch( 1, "Mod1", "Alt_L", "Shift", "Tab")
@ -497,6 +524,10 @@ globalkeys = gears.table.join(
{description = "view previous", group = "tag"}),
awful.key({ modkey, }, "Right", awful.tag.viewnext,
{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
awful.key({ modkey, }, "Escape", awful.tag.history.restore,
{description = "go back", group = "tag"}),
@ -520,7 +551,7 @@ globalkeys = gears.table.join(
end,
{description = "restore all", group = "client"}
),
awful.key({ modkey, }, "u",
awful.key({ modkey}, "Prior",
function ()
restoreAll()
awful.client.focus.byidx( 1)
@ -528,7 +559,7 @@ globalkeys = gears.table.join(
end,
{description = "focus next by index", group = "client"}
),
awful.key({ modkey, }, "i",
awful.key({ modkey }, "Next",
function ()
restoreAll()
awful.client.focus.byidx(-1)
@ -546,10 +577,12 @@ globalkeys = gears.table.join(
{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"}),
-- mod + ctrl + j|k -> focus next|prev screen
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
-- mod + é|á|ű -> focus next|prev screen
awful.key({ modkey }, "é", function () awful.screen.focus( 1) end,
{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"}),
-- mod + u -> urgent client
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
@ -703,7 +736,9 @@ for i = 1, 10 do
end,
{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 ()
selectClientIdx(i)
end,
@ -749,8 +784,6 @@ for i = 1, 10 do
)
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
for i = 1, 10 do
globalkeys = gears.table.join(globalkeys,
@ -854,30 +887,30 @@ awful.rules.rules = {
},
-- Floating clients.
{ rule_any = {
instance = {
"DTA", -- Firefox addon DownThemAll.
"copyq", -- Includes session name in class.
},
class = {
"Arandr",
"Gpick",
"Kruler",
"MessageWin", -- kalarm.
"Sxiv",
"Wpa_gui",
"pinentry",
"veromix",
"xtightvncviewer"},
-- { rule_any = {
-- instance = {
-- "DTA", -- Firefox addon DownThemAll.
-- "copyq", -- Includes session name in class.
-- },
-- class = {
-- "Arandr",
-- "Gpick",
-- "Kruler",
-- "MessageWin", -- kalarm.
-- "Sxiv",
-- "Wpa_gui",
-- "pinentry",
-- "veromix",
-- "xtightvncviewer"},
name = {
"Event Tester", -- xev.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
}, properties = { floating = true }},
-- name = {
-- "Event Tester", -- xev.
-- },
-- role = {
-- "AlarmWindow", -- Thunderbird's calendar.
-- "pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
-- }
-- }, properties = { floating = true }},
-- Add titlebars to normal clients and dialogs
{ rule_any = {type = { "normal", "dialog" }
@ -901,8 +934,10 @@ awful.rules.rules = {
{ rule = { instance = "zoom" },
properties = { screen = function () return getScreenByTagName(tag5) end, tag = tag5 } },
-- microsoft teams - preview -> tag5
{ rule = { instance = "microsoft teams - preview" },
properties = { screen = function () return getScreenByTagName(tag5) end, tag = tag5 } },
-- { rule = { instance = "microsoft teams - preview" },
-- properties = { screen = function () return getScreenByTagName(tag5) end, tag = tag5 } },
{ rule = { class = "rambox" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
-- rocket.chat-> tag6
{ rule = { instance = "rocket.chat" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
@ -910,14 +945,17 @@ awful.rules.rules = {
{ rule = { instance = "discord" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
-- Thunderbird -> tag6
{ rule = { class = "Thunderbird" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag6 } },
{ rule = { class = "thunderbird" },
properties = { screen = function () return getScreenByTagName(tag6) end, tag = tag17 } },
-- Bitwarden -> tag7
{ rule = { instance = "bitwarden" },
properties = { screen = function () return getScreenByTagName(tag7) end, tag = tag7 } },
-- keepass2 -> tag7
{ rule = { instance = "keepassx" },
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.
-- { rule = { class = "Firefox" },
-- properties = { screen = 1, tag = "2" } },