Add rofi config; use rofi as app launcher in i3 on roxy

This commit is contained in:
Lexi / Zoe 2021-12-16 00:53:40 +01:00
parent 2ae15042e9
commit 0175c5a4ab
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
3 changed files with 25 additions and 4 deletions

19
.config/rofi/config.rasi Normal file
View File

@ -0,0 +1,19 @@
configuration {
// Set default modi
modi: "window,run,drun";
// Autodetect DPI
dpi: 0;
// Continuous scrolling (line-by-line instead of page-wise)
scroll-method: 1;
// When running shell commands in a terminal, pause before exiting
run-shell-command: "{terminal} -e 'bash -ic \"{cmd} && read\"'";
// Keybindings: Autocomplete with Tab
kb-row-select: "Control+space,Tab";
kb-row-tab: "";
}
@theme "/usr/share/rofi/themes/Monokai.rasi"

1
.vimrc
View File

@ -25,6 +25,7 @@ filetype plugin on
" Syntax rules for custom file extensions/patterns
autocmd BufNewFile,BufRead *.gitconfig set syntax=gitconfig
autocmd BufNewFile,BufRead *.rasi set syntax=scss
" Indentation for Python (use 4 spaces)
"autocmd FileType python setlocal expandtab shiftwidth=4 softtabstop=4

View File

@ -104,10 +104,11 @@ for_window [instance="sakura-floating"] floating enable
bindsym $mod+Shift+Return exec sakura --name=sakura-floating
# ~~ Start application launcher
# Regular dmenu:
bindsym $mod+d exec dmenu_run
# This one only displays .desktop file applications
bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop
bindsym $mod+d exec rofi -show run
bindsym $mod+Shift+d exec rofi -show drun
bindsym $mod+w exec rofi -show window
bindsym $mod+c exec rofi -show calc
bindsym $mod+m exec rofi -show emoji
# ~~ Kill focused window
bindsym $mod+Shift+q kill