Code Monkey home page Code Monkey logo

Comments (15)

yaocccc avatar yaocccc commented on July 21, 2024 1

我用的也是在theCW的基础上改的,一直想换但是不想舍弃scratchpad功能(就是在屏幕中间开一个终端,各个window间共享),这个patch和这个repo兼容吗

这个原先有,被我删掉了,我的用法是 super -,开一个浮动终端,简单说就是 一个scratchpad 不够我用。我可以给client加一个属性,符合的就全局显示。好像也不错

from dwm.

yaocccc avatar yaocccc commented on July 21, 2024

from dwm.

ibepo avatar ibepo commented on July 21, 2024

其实我是想把task那里的宽度等分,试了试没成功

from dwm.

yaocccc avatar yaocccc commented on July 21, 2024

看一下drawbar这个func,当时我是改了这里面的内容来让自己有空余的空间

from dwm.

fecet avatar fecet commented on July 21, 2024

我用的也是在theCW的基础上改的,一直想换但是不想舍弃scratchpad功能(就是在屏幕中间开一个终端,各个window间共享),这个patch和这个repo兼容吗

from dwm.

yaocccc avatar yaocccc commented on July 21, 2024

我用的也是在theCW的基础上改的,一直想换但是不想舍弃scratchpad功能(就是在屏幕中间开一个终端,各个window间共享),这个patch和这个repo兼容吗

7bcdfb2

from dwm.

fecet avatar fecet commented on July 21, 2024

试用了一下, 非常方便, 不过我还有个小问题, 怎么能实现像scratchpad一样再按一次就自动隐藏, 第三次按恢复的效果呢

from dwm.

yaocccc avatar yaocccc commented on July 21, 2024

我这个没有设计类似的逻辑呢,scratchpad是有且只有一个窗口,然后可以做这样的逻辑,我这边的变更是不限定数量的,所以比较不好设计交互。

或许你可以使用 super h,来隐藏这个窗口,super shift h,再使这个窗口重新显示。当然想重新实现scratchpad也行。。。不过我动力不强

from dwm.

fecet avatar fecet commented on July 21, 2024

我这个没有设计类似的逻辑呢,scratchpad是有且只有一个窗口,然后可以做这样的逻辑,我这边的变更是不限定数量的,所以比较不好设计交互。

或许你可以使用 super h,来隐藏这个窗口,super shift h,再使这个窗口重新显示。当然想重新实现scratchpad也行。。。不过我动力不强

我有个想法是这个可以设计在应用层面上, 让这个应用支持开关式的操作, 比如 https://github.com/phuhl/linux_notification_center 这个项目就支持

Toggle between hidden and shown state of the notification center:

kill -s USR1 $(pidof deadd-notification-center)

st能不能实现类似的功能呢

from dwm.

yaocccc avatar yaocccc commented on July 21, 2024

我这个没有设计类似的逻辑呢,scratchpad是有且只有一个窗口,然后可以做这样的逻辑,我这边的变更是不限定数量的,所以比较不好设计交互。
或许你可以使用 super h,来隐藏这个窗口,super shift h,再使这个窗口重新显示。当然想重新实现scratchpad也行。。。不过我动力不强

我有个想法是这个可以设计在应用层面上, 让这个应用支持开关式的操作, 比如 https://github.com/phuhl/linux_notification_center 这个项目就支持

Toggle between hidden and shown state of the notification center:

kill -s USR1 $(pidof deadd-notification-center)

st能不能实现类似的功能呢

我在浏览我的下游时发现了这个commit,也许你可以采用类似的方案解决

Meow-2@8af7358

from dwm.

yaocccc avatar yaocccc commented on July 21, 2024

我这个没有设计类似的逻辑呢,scratchpad是有且只有一个窗口,然后可以做这样的逻辑,我这边的变更是不限定数量的,所以比较不好设计交互。
或许你可以使用 super h,来隐藏这个窗口,super shift h,再使这个窗口重新显示。当然想重新实现scratchpad也行。。。不过我动力不强

我有个想法是这个可以设计在应用层面上, 让这个应用支持开关式的操作, 比如 https://github.com/phuhl/linux_notification_center 这个项目就支持

Toggle between hidden and shown state of the notification center:

kill -s USR1 $(pidof deadd-notification-center)

st能不能实现类似的功能呢

我在浏览我的下游时发现了这个commit,也许你可以采用类似的方案解决

Meow-2@8af7358

原始的scratchpad实质上干的也是类似的事情,手动指定了一个cmd,然后指定了instance name,匹配已存在则会去hide,不存在则会去创建

from dwm.

fecet avatar fecet commented on July 21, 2024
#!/bin/bash

float() {
    alacritty -o "window.dimensions.lines=30" \
        --class global \
        --hold \
        -t "tmux-floatterm" \
        -e zsh -c "tmux -u attach -t float || tmux -u new -s float"
}

kill $(xprop -name "tmux-floatterm" _NET_WM_PID) || float

写了个这个, 勉强能用吧

from dwm.

yaocccc avatar yaocccc commented on July 21, 2024
#!/bin/bash

float() {
    alacritty -o "window.dimensions.lines=30" \
        --class global \
        --hold \
        -t "tmux-floatterm" \
        -e zsh -c "tmux -u attach -t float || tmux -u new -s float"
}

kill $(xprop -name "tmux-floatterm" _NET_WM_PID) || float

写了个这个, 勉强能用吧

老哥你这也太惨烈了。。。我来吧。

from dwm.

yaocccc avatar yaocccc commented on July 21, 2024
#!/bin/bash

float() {
    alacritty -o "window.dimensions.lines=30" \
        --class global \
        --hold \
        -t "tmux-floatterm" \
        -e zsh -c "tmux -u attach -t float || tmux -u new -s float"
}

kill $(xprop -name "tmux-floatterm" _NET_WM_PID) || float

写了个这个, 勉强能用吧

看看这个。。。效果一定比你那个强

7e0c359

from dwm.

fecet avatar fecet commented on July 21, 2024

感谢老哥, 我这个效果肯定不如原生的, 回头试一下

from dwm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.