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