diff --git a/polybar/config.ini b/polybar/config.ini index 5e07194..5244155 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -31,7 +31,7 @@ separator = "" separator-foreground = ${colors.disabled} font-0 = "Fira Sans SemiBold:size=11;2" font-1 = "Font Awesome 6 Free Solid:pixelsize=11;2" -modules-left = xworkspaces mymenu +modules-left = xworkspaces mymenu mychatgpt modules-center = xwindow modules-right = battery xkeyboard mycalculator mysystem filesystem pulseaudio memory cpu date myexit cursor-click = pointer @@ -51,6 +51,11 @@ content-foreground = ${colors.primary} content = "" click-left = "~/dotfiles/scripts/applauncher.sh" +[module/mychatgpt] +type = custom/text +content-foreground = ${colors.primary} +content = "ChatGPT" +click-left = "brave --app=https://chat.openai.com" [module/mycalculator] type = custom/text @@ -66,6 +71,8 @@ click-left = "~/dotfiles/scripts/powermenu.sh" [module/xworkspaces] type = internal/xworkspaces +icon1=3 +icon-default = "" label-active = %name% label-active-background = ${colors.primary} label-active-padding = 2 diff --git a/qtile/config.py b/qtile/config.py index 2ceddd4..2c39956 100644 --- a/qtile/config.py +++ b/qtile/config.py @@ -118,9 +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"), - - # Scratchpads - # Key([mod, "control"], "c", lazy.group["calculator"].dropdown_toggle("calc")) + Key([], 'F10', lazy.spawn("brave --app=https://chat.openai.com"), desc="Open ChatGPT") ] # -------------------------------------------------------- @@ -133,16 +131,22 @@ groups = [ Group("3", layout='monadtall'), Group("4", layout='monadtall'), Group("5", layout='monadtall'), - -# -------------------------------------------------------- -# Scratchpads -# -------------------------------------------------------- - - # ScratchPad("calculator",[DropDown("calc", "qalculate-gtk", x=0.3, y=0.1, width=0.40, height=0.4, on_focus_lost_hide=False )]) ] 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 ) +])) + +keys.extend([ + Key([], 'F10', lazy.group["6"].dropdown_toggle("chatgpt")) +]) +''' # -------------------------------------------------------- # Pywal Colors # --------------------------------------------------------