This commit is contained in:
Stephan Raabe 2023-06-07 08:51:31 +02:00
parent 7ef5ce140e
commit 11a7b9b1b1
2 changed files with 33 additions and 6 deletions

View File

@ -118,7 +118,7 @@ keys = [
Key([mod, "shift"], "w", lazy.spawn(home + "/dotfiles/scripts/updatewal.sh"), desc="Update Theme and Wallpaper"), 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"], "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([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 # Scratchpads
# -------------------------------------------------------- # --------------------------------------------------------
'''
groups.append(ScratchPad("6", [ 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([ 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 # Pywal Colors
# -------------------------------------------------------- # --------------------------------------------------------
@ -225,7 +229,7 @@ widget_list = [
active='ffffff' active='ffffff'
), ),
widget.TextBox( widget.TextBox(
text=' ', text=' ',
foreground=ColorC, foreground=ColorC,
), ),
widget.WindowName(), widget.WindowName(),

23
scripts/launchvm.sh Executable file
View File

@ -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