fix
This commit is contained in:
61
assets/popups/settings.py
Normal file
61
assets/popups/settings.py
Normal file
@@ -0,0 +1,61 @@
|
||||
from libqtile import qtile
|
||||
from libqtile.lazy import lazy
|
||||
|
||||
from colors import gruvbox_dark
|
||||
|
||||
from qtile_extras.popup.menu import (
|
||||
PopupMenu,
|
||||
PopupMenuItem,
|
||||
PopupMenuSeparator,
|
||||
)
|
||||
|
||||
items = [
|
||||
PopupMenuItem( # Wallpaper setting
|
||||
show_icon=False,
|
||||
text=" Nitrogen Wallpaper",
|
||||
font="Open Sans",
|
||||
fontsize=16,
|
||||
can_focus=True,
|
||||
highlight_method="text",
|
||||
foreground=gruvbox_dark["fg0"],
|
||||
highlight=gruvbox_dark["green"],
|
||||
mouse_callbacks={"Button1": lazy.spawn("nitrogen")},
|
||||
),
|
||||
PopupMenuSeparator(),
|
||||
PopupMenuItem( # Arandr
|
||||
show_icon=False,
|
||||
text=" Arandr Display",
|
||||
font="Open Sans",
|
||||
fontsize=16,
|
||||
can_focus=True,
|
||||
highlight_method="text",
|
||||
foreground=gruvbox_dark["fg0"],
|
||||
highlight=gruvbox_dark["green"],
|
||||
mouse_callbacks={"Button1": lazy.spawn("arandr")},
|
||||
),
|
||||
PopupMenuSeparator(),
|
||||
PopupMenuItem( # VS-Code qtile config
|
||||
show_icon=False,
|
||||
text=" Qtile Config",
|
||||
font="Open Sans",
|
||||
fontsize=16,
|
||||
can_focus=True,
|
||||
highlight_method="text",
|
||||
foreground=gruvbox_dark["fg0"],
|
||||
highlight=gruvbox_dark["green"],
|
||||
mouse_callbacks={"Button1": lazy.spawn("code /home/cerberus/.config/")},
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
def settings(qtile):
|
||||
layout = PopupMenu.generate(
|
||||
qtile,
|
||||
pos_x=100,
|
||||
pos_y=100,
|
||||
width=225,
|
||||
opacity=0.7,
|
||||
menuitems=items,
|
||||
background=gruvbox_dark["bg0_soft"],
|
||||
)
|
||||
layout.show(relative_to=1, relative_to_bar=True, y=75, x=325)
|
||||
Reference in New Issue
Block a user