added dropdown terminal
This commit is contained in:
@@ -5,7 +5,7 @@ import psutil
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
|
||||
from libqtile import layout, bar, widget
|
||||
from libqtile.config import Key, Drag, Click, Group, Screen
|
||||
from libqtile.config import Key, Drag, Click, Group, Screen, ScratchPad, DropDown
|
||||
from libqtile.command import lazy
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ group_names = [("","Home", 'h',{'layout': 'monadtall'}),
|
||||
("","Gaming", 'g',{'layout': 'monadtall'})]
|
||||
|
||||
groups = [Group(icon, **kwargs) for icon, name, key, kwargs in group_names]
|
||||
groups.extend([ScratchPad("scratchpad",[DropDown("term",term,opacity=0.8)])])
|
||||
|
||||
for (icon,name,key, kwargs) in group_names:
|
||||
keys.extend([
|
||||
@@ -128,6 +129,8 @@ for (icon,name,key, kwargs) in group_names:
|
||||
|
||||
Key(['mod1','control', "shift"], str(key), lazy.window.togroup(icon),
|
||||
desc="move focused window to group {}".format(name)),
|
||||
|
||||
Key(['mod1','control'],'space',lazy.group['scratchpad'].dropdown_toggle('term')),
|
||||
])
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user