fzdwx

fzdwx

Hello , https://github.com/fzdwx

一个linux中的应用程序 launcher: Rofi

今天发现了一个 linux 下的 application launcher rofi , 它可以快速切换窗口和启动程序,
我用它和wmctrl进行配合使用.

我的使用过程:

1.Archlinux install

yay -S rofi

2. 添加自定义快捷键绑定 hotkey 为alt+space触发rofi -show.

3.pressalt+space, 然后使用shift+leftorright进行切换 mode.


更改主题以及显示 icon:

1. 生成配置文件

mkdir -p ~/.config/rofi
rofi -dump-config > ~/.config/rofi/config.rasi

2. 显示 icon

sed -i '8c show-icons: true;' ~/.config/rofi/config.rasi

3. 更换主题

参考 https://github.com/lr-tech/rofi-themes-collection#installing-themes


我的wmctrl的配置示例:

使用xprop WM_CLASS获取前缀.

alias chrome="wmctrl -x -a google-chrome || google-chrome-stable > /dev/null 2>&1 &"
alias note="wmctrl -x -a obsidian || /usr/bin/obsidian > /dev/null 2>&1 &"
alias codew="wmctrl -x -a code || /opt/code/code > /dev/null 2>&1 &"
alias idea="wmctrl -x -a jetbrains-idea || /opt/idea/bin/idea.sh > /dev/null 2>&1 &"
alias discord="wmctrl -x -a discord || /opt/discord/Discord > /dev/null 2>&1 &"
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.