Catalogue
我的i3wm设置的scratchpad 快捷键是
1 | $mod + shift + - #把一个程序设置为使用 |
但是有时候会不小心在鼠标焦点处于不想要设置的程序上时按了这个快捷键,就会导致scrathcpad里面有多个程序,这时要显示自己想要快速调出的程序时,可以这样设置一下。
给scratchpad 命名,以便在scratchpad空间里有多个运行程序时可以直接呼出自己想要的程序
Hey, thanks for your response. I think that’s where I’m headed, as I’m able to now toggle a specific app that only ever has one instance (Spotify), but I use two to three terminals and need to give a specific name to a quick terminal. For example, Spotify toggle is like so:
1
2
3 bindsym $mod+g [con_mark="music"] scratchpad show
for_window [class="Spotify"] mark "music", move scratchpad
exec --no-startup-id spotifyHow might I name a specific app instance?
for commandline things i personally do something like:
1 urxvt -name ranger -e rangerfor gui stuff you can just use xprop to find how the the program names its window.
Tdrop 也可以实现类似的功能,可以添加多个需要随时调出的程序
https://github.com/noctuid/tdrop
1 | yay -S tdrop-git sxhkd #sxhkd 是一个linux全局快捷键设置软件 |
在i3配置文件里面设置需要使用tdrop
的软件为浮动模式,避免闪屏
1 | for_window [class="Typora"] floating enable border normal |
配置 sxhkd
快捷键
1 | mkdir .config/sxhkd |