Feat: ScratchPad with mocp

This commit is contained in:
Bertrand Benjamin 2020-04-22 09:24:41 +02:00
parent 7ecb216f35
commit 701f09df2a
1 changed files with 12 additions and 2 deletions

View File

@ -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),