diff --git a/qtile/config.py b/qtile/config.py index 2c39956..a7257c7 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -118,7 +118,7 @@ keys = [ Key([mod, "shift"], "w", lazy.spawn(home + "/dotfiles/scripts/updatewal.sh"), desc="Update Theme and Wallpaper"), Key([mod, "control"], "w", lazy.spawn(home + "/dotfiles/scripts/wallpaper.sh"), desc="Select Theme and Wallpaper"), Key([mod, "control"], "t", lazy.spawn(home + "/dotfiles/scripts/templates.sh"), desc="Select Tempate and copy to clipboard"), - Key([], 'F10', lazy.spawn("brave --app=https://chat.openai.com"), desc="Open ChatGPT") +# Key([], 'F10', lazy.spawn("brave --app=https://chat.openai.com"), desc="Open ChatGPT") ] # -------------------------------------------------------- @@ -138,15 +138,19 @@ dgroups_key_binder = simple_key_binder(mod) # -------------------------------------------------------- # Scratchpads # -------------------------------------------------------- -''' + groups.append(ScratchPad("6", [ - DropDown("chatgpt", "chromium --profile-directory=Default --app-id=jckaldkomadaenmmgladeopgmfbahfjm", x=0.3, y=0.1, width=0.40, height=0.4, on_focus_lost_hide=False ) + DropDown("chatgpt", "chromium --app=https://chat.openai.com", x=0.3, y=0.1, width=0.40, height=0.4, on_focus_lost_hide=False ), + DropDown("filemanager", "mousepad", x=0.3, y=0.1, width=0.40, height=0.4, on_focus_lost_hide=False ), + DropDown("terminal", "alacritty", x=0.3, y=0.1, width=0.40, height=0.4, on_focus_lost_hide=False ) ])) keys.extend([ - Key([], 'F10', lazy.group["6"].dropdown_toggle("chatgpt")) + Key([], 'F10', lazy.group["6"].dropdown_toggle("chatgpt")), + Key([mod], 'F11', lazy.group["6"].dropdown_toggle("filemanager")), + Key([mod], 'F12', lazy.group["6"].dropdown_toggle("terminal")) ]) -''' + # -------------------------------------------------------- # Pywal Colors # -------------------------------------------------------- @@ -225,7 +229,7 @@ widget_list = [ active='ffffff' ), widget.TextBox( - text='  ', + text='  ', foreground=ColorC, ), widget.WindowName(), diff --git a/scripts/launchvm.sh b/scripts/launchvm.sh new file mode 100755 index 0000000..2e9b403 --- /dev/null +++ b/scripts/launchvm.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# _ _ __ ____ __ +# | | __ _ _ _ _ __ ___| |__ \ \ / / \/ | +# | | / _` | | | | '_ \ / __| '_ \ \ \ / /| |\/| | +# | |__| (_| | |_| | | | | (__| | | | \ V / | | | | +# |_____\__,_|\__,_|_| |_|\___|_| |_| \_/ |_| |_| +# +# +# by Stephan Raabe (2023) +# ----------------------------------------------------- + +tmp=$(virsh --connect qemu:///system list | grep " win11 " | awk '{ print $3}') +if ([ "x$tmp" == "x" ] || [ "x$tmp" != "xrunning" ]) +then + virsh --connect qemu:///system start win11 + echo "Virtual Machine win11 is starting..." + exit +else + echo "Starting xfreerdp now..." + xfreerdp -grab-keyboard /t:"Windows 11" /v:192.168.122.42 /size:100% /u:raabe /p:SECRET /d: /dynamic-resolution /gfx-h264:avc444 +gfx-progressive & + exit +fi +