From 01227361e529405b0377f92433b2cc7d57da235c Mon Sep 17 00:00:00 2001 From: Schneider Roland Date: Tue, 15 Apr 2025 20:24:41 +0200 Subject: [PATCH] hg g6 --- askme.sh | 19 + autorun.sh | 70 ++- mein-a1 | 1771 ++++++++++++++++++++++++++++++++++++++++++++++++++++ rc.lua | 138 ++-- 4 files changed, 1927 insertions(+), 71 deletions(-) create mode 100644 askme.sh create mode 100644 mein-a1 diff --git a/askme.sh b/askme.sh new file mode 100644 index 0000000..d239f6d --- /dev/null +++ b/askme.sh @@ -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 + + diff --git a/autorun.sh b/autorun.sh index 236ab88..732e361 100755 --- a/autorun.sh +++ b/autorun.sh @@ -1,37 +1,65 @@ #!/usr/bin/env bash function run { - if ! pgrep $1 ; - then - $@& - fi + 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 +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 diff --git a/mein-a1 b/mein-a1 new file mode 100644 index 0000000..0ef1594 --- /dev/null +++ b/mein-a1 @@ -0,0 +1,1771 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Handy - Festnetz - Internet - Mobiles Internet - TV | A1.net + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ Herzlich willkommen bei A1 + + + + + + + + + + +

+ Herzlich willkommen bei A1 +

+ + + + + + + + + + +
+
+
+ + +
+ + +
+
+
+ + + + + + + + + + + +
+
+ +
+
+
+
+
+ Das bietet Ihnen Mein A1 +
+
+
+
+

+ + + + + + + + + + + + Das bietet Ihnen Mein A1: + + +

+ + + + + + + + + + +

+

    +
  • Rechnungen ansehen
  • +
  • Freieinheiten & Datenvolumen abrufen
  • +
  • Informationen zu Ihren Produkten
  • +
  • Persönliche Daten bearbeiten
  • +
  • Individuelle Angebote für Sie
  • +
+

Holen Sie sich jetzt die Mein A1 App im App Store oder auf Google Play!

+

+ + + +
+
+
+
+
+ + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/rc.lua b/rc.lua index f9ce70f..ab16ecb 100644 --- a/rc.lua +++ b/rc.lua @@ -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 @@ -232,7 +237,7 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ -- mytextclock = wibox.widget.textclock() mytextclock = wibox.widget.textclock("%y-%m-%d %a %H:%M:%S",1) -mybatterywidget = battery_widget { adapter = "BAT0", ac = "AC", widget_font = wibar_font +mybatterywidget = battery_widget { adapter = "BAT0", ac = "AC", widget_font = wibar_font , battery_prefix = "🔋" , ac_prefix = "🔌" } @@ -318,7 +323,6 @@ local function getAllClient() local t = focusedScreen.selected_tag local clientsOnTag = t:clients() return clientsOnTag - end -- restore the given client @@ -479,11 +483,34 @@ 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") end), - + awful.key({ "Mod1", "Shift" }, "Tab", function () switcher.switch(-1, "Mod1", "Alt_L", "Shift", "Tab") @@ -492,12 +519,16 @@ globalkeys = gears.table.join( awful.key({ modkey, }, "e", revelation), awful.key({ modkey, }, "s", hotkeys_popup.show_help, {description="show help", group="awesome"}), - -- mod + left|right -> view next/prev tag + -- mod + left|right -> view next/prev tag awful.key({ modkey, }, "Left", awful.tag.viewprev, {description = "view previous", group = "tag"}), awful.key({ modkey, }, "Right", awful.tag.viewnext, {description = "view next", group = "tag"}), - -- mod + Esc -> tag history resotre + 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"}), -- mod + j|k -> focus next|prev client @@ -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, @@ -570,7 +603,7 @@ globalkeys = gears.table.join( -- mod + ctrl + r -> restart awsome awful.key({ modkey, "Control" }, "r", awesome.restart, {description = "reload awesome", group = "awesome"}), - -- mod + shift + q -> quit awesome + -- mod + shift + q -> quit awesome awful.key({ modkey, "Shift" }, "q", awesome.quit, {description = "quit awesome", group = "awesome"}), @@ -639,17 +672,17 @@ clientkeys = gears.table.join( -- mod + shift + c -> close client awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end, {description = "close", group = "client"}), - -- mod + ctrl + space -> toggle float + -- mod + ctrl + space -> toggle float awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle , {description = "toggle floating", group = "client"}), - -- mod + ctrl + enter -> move to master position + -- mod + ctrl + enter -> move to master position awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end, {description = "move to master", group = "client"}), - -- mod + o -> move to screen + -- mod + o -> move to screen -- move the current client in to the active tag of the next screen awful.key({ modkey, }, "o", function (c) c:move_to_screen() end, {description = "move to screen", group = "client"}), - -- mod + t -> toggle on top + -- mod + t -> toggle on top awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, {description = "toggle keep on top", group = "client"}), -- mod + n -> minimize @@ -660,14 +693,14 @@ clientkeys = gears.table.join( c.minimized = true end , {description = "minimize", group = "client"}), - -- mod + m -> toggle maximize + -- mod + m -> toggle maximize awful.key({ modkey, }, "m", function (c) c.maximized = not c.maximized c:raise() end , {description = "(un)maximize", group = "client"}), - -- mod + ctrl + m -> toggle maximize vertical + -- mod + ctrl + m -> toggle maximize vertical awful.key({ modkey, "Control" }, "m", function (c) c.maximized_vertical = not c.maximized_vertical @@ -703,14 +736,16 @@ 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, {description = "select client in active tag #"..i, group = "client"}), -- Toggle tag display. - -- + -- -- mod + ctrl + i -> show/hide tag awful.key({ modkey, "Control" }, "#" .. i + 9, function () @@ -730,7 +765,7 @@ for i = 1, 10 do -- if tag then -- client.focus:move_to_tag(tag) -- end - -- end + -- end move_client_to_tag(tags[i]) end, {description = "move focused client to tag #"..i, group = "tag"}) @@ -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, @@ -828,7 +861,7 @@ local function getScreenByTagName(tagName) print( "tag " .. tostring(tagName) .. " is on screen " .. tostring(indexOfScreen)) return indexOfScreen end - return awful.screen.focused().index + return awful.screen.focused().index end @@ -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" } },