added dropdown menues for Nextcloud Tasks and Calendar
This commit is contained in:
@@ -101,7 +101,7 @@ groups.append(
|
||||
height = 0.5,
|
||||
width = 0.8,
|
||||
x = 0.1,
|
||||
on_focus_lost_hide=False,
|
||||
on_focus_lost_hide=True,
|
||||
opacity=1
|
||||
),
|
||||
DropDown(
|
||||
@@ -113,6 +113,24 @@ groups.append(
|
||||
on_focus_lost_hide=False,
|
||||
opacity=1,
|
||||
match = Match(wm_class='telegram-desktop')
|
||||
),
|
||||
DropDown(
|
||||
'Calendar',
|
||||
'surf https://cloud.ploedige.com/apps/calendar/dayGridMonth/now',
|
||||
height = 0.5,
|
||||
width = 0.8,
|
||||
x = 0.1,
|
||||
on_focus_lost_hide=True,
|
||||
opacity=1,
|
||||
),
|
||||
DropDown(
|
||||
'ToDo',
|
||||
'surf https://cloud.ploedige.com/apps/tasks/#/collections/week',
|
||||
height = 0.5,
|
||||
width = 0.8,
|
||||
x = 0.1,
|
||||
on_focus_lost_hide=True,
|
||||
opacity=1,
|
||||
)
|
||||
])
|
||||
)
|
||||
@@ -150,5 +168,9 @@ keys.extend([
|
||||
Key(['mod1','control'],'q',lazy.group['scratchpad'].dropdown_toggle('Qalculate!'),
|
||||
desc="open the dropdown for Qalculate!"),
|
||||
Key(['mod1','control'],'d',lazy.group['scratchpad'].dropdown_toggle('Deepl'),
|
||||
desc="open the dropdown for Deepl")
|
||||
desc="open the dropdown for Deepl"),
|
||||
Key(['mod1','control'],'k',lazy.group['scratchpad'].dropdown_toggle('Calendar'),
|
||||
desc="open the dropdown for Nextcloud Calendar"),
|
||||
Key(['mod1','control'],'o',lazy.group['scratchpad'].dropdown_toggle('ToDo'),
|
||||
desc="open the dropdown for Nextcloud Calendar")
|
||||
])
|
||||
|
||||
@@ -15,5 +15,4 @@ nm-applet &
|
||||
blueman-applet &
|
||||
thunderbird &
|
||||
fcitx5 -d&
|
||||
#emacs --daemon &
|
||||
surf https://cloud.ploedige.com/apps/tasks/#/collections/week &
|
||||
#emacs --daemon &
|
||||
@@ -6,7 +6,7 @@ from libqtile import layout, bar, widget, hook
|
||||
from libqtile.config import Key, Drag, Click, Group, Screen, ScratchPad, DropDown
|
||||
from libqtile.command import lazy
|
||||
|
||||
sys.path.append(".config/qtile")
|
||||
sys.path.append("/home/paul/.config/qtile")
|
||||
|
||||
from defines import hotkey_file
|
||||
from Keys import keys
|
||||
@@ -34,18 +34,18 @@ focus_on_window_activation = "smart"
|
||||
#region Hotkey_Wallpaper
|
||||
|
||||
#create hotkey textfile
|
||||
if os.path.isfile(hotkey_file):
|
||||
os.remove(hotkey_file)
|
||||
with open(hotkey_file,'w') as file:
|
||||
for key in keys:
|
||||
if not str(key.key).startswith("XF86"):
|
||||
modifiers=""
|
||||
for modifier in key.modifiers:
|
||||
modifiers += '{:^7}'.format(
|
||||
str(modifier).replace("mod1","Alt").replace("mod4","Super").replace("shift","Shift").replace("control","Ctrl")
|
||||
) + "+"
|
||||
file.write('{:30}'.format(modifiers+' '+str(key.key).upper())+"=> "+key.desc)
|
||||
file.write('\n')
|
||||
# if os.path.isfile(hotkey_file):
|
||||
# os.remove(hotkey_file)
|
||||
# with open(hotkey_file,'w') as file:
|
||||
# for key in keys:
|
||||
# if not str(key.key).startswith("XF86"):
|
||||
# modifiers=""
|
||||
# for modifier in key.modifiers:
|
||||
# modifiers += '{:^7}'.format(
|
||||
# str(modifier).replace("mod1","Alt").replace("mod4","Super").replace("shift","Shift").replace("control","Ctrl")
|
||||
# ) + "+"
|
||||
# file.write('{:30}'.format(modifiers+' '+str(key.key).upper())+"=> "+key.desc)
|
||||
# file.write('\n')
|
||||
#endregion
|
||||
|
||||
# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
|
||||
|
||||
Reference in New Issue
Block a user