Feat: ScratchPad with mocp
This commit is contained in:
parent
7ecb216f35
commit
701f09df2a
14
config.py
14
config.py
@ -24,7 +24,7 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
from libqtile.config import Key, Screen, Group, Drag, Click
|
||||
from libqtile.config import Key, Screen, Group, Drag, Click, ScratchPad, DropDown
|
||||
from libqtile.command import lazy
|
||||
from libqtile import layout, bar, widget, extension, hook
|
||||
from os.path import expanduser
|
||||
@ -119,6 +119,16 @@ for i, g in enumerate(groups):
|
||||
Key([MOD, "shift"], k, lazy.window.togroup(g.name), lazy.group[g.name].toscreen()),
|
||||
])
|
||||
|
||||
groups.append(
|
||||
ScratchPad("scratchpad", [
|
||||
DropDown("music", "st mocp", x=0.25, y=0.25, height=0.5, width=0.5, opacity=0.8),
|
||||
]),
|
||||
)
|
||||
|
||||
keys.extend([
|
||||
Key([MOD], "m", lazy.group["scratchpad"].dropdown_toggle("music")),
|
||||
])
|
||||
|
||||
layouts = [
|
||||
layout.Max(),
|
||||
layout.VerticalTile(),
|
||||
@ -150,7 +160,7 @@ screens = [
|
||||
[
|
||||
widget.GroupBox(),
|
||||
widget.Prompt(),
|
||||
widget.WindowName(),
|
||||
# widget.WindowName(),
|
||||
widget.Clock(format='%A %d %B %Y %I:%M %p'),
|
||||
widget.Systray(),
|
||||
#widget.CurrentLayoutIcon(scale=0.5),
|
||||
|
Loading…
Reference in New Issue
Block a user