feat: clipboard menu
This commit is contained in:
@@ -21,6 +21,7 @@ from fabric.utils import (
|
||||
from .modules.bar import StatusBar
|
||||
from .modules.window_fuzzy import FuzzyWindowFinder
|
||||
from .modules.launcher.apps import AppLauncher
|
||||
from .modules.launcher.clipboard import ClipboardMenu
|
||||
from .modules.launcher.power import PowerMenu
|
||||
from .modules.launcher.screenrec import ScreenrecMenu
|
||||
from .modules.launcher.screenshot import ScreenshotMenu
|
||||
@@ -36,6 +37,7 @@ get_i3_connection()
|
||||
dummy = Window(visible=False)
|
||||
finder = FuzzyWindowFinder()
|
||||
app_launcher = AppLauncher()
|
||||
clipboard_menu = ClipboardMenu()
|
||||
power_menu = PowerMenu(lock_command=POWER.get("lock_command", ["waylock"]))
|
||||
screenshot_menu = ScreenshotMenu()
|
||||
|
||||
@@ -50,7 +52,7 @@ if SCREENREC.get("enable", False):
|
||||
bar_windows = []
|
||||
notmuch_widget = None
|
||||
|
||||
_app_windows = [dummy, finder, app_launcher, power_menu, screenshot_menu]
|
||||
_app_windows = [dummy, finder, app_launcher, clipboard_menu, power_menu, screenshot_menu]
|
||||
if screenrec_menu is not None:
|
||||
_app_windows.append(screenrec_menu)
|
||||
app = Application("sims", *_app_windows)
|
||||
@@ -66,6 +68,11 @@ def open_app_launcher():
|
||||
app_launcher.show()
|
||||
|
||||
|
||||
@Application.action()
|
||||
def open_clipboard_menu():
|
||||
clipboard_menu.show()
|
||||
|
||||
|
||||
@Application.action()
|
||||
def open_power_menu():
|
||||
power_menu.show()
|
||||
|
||||
Reference in New Issue
Block a user