mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-13 11:32:58 +01:00
improve terminal confgen stuff
This commit is contained in:
parent
8d14bc4d63
commit
5fedc8a9d4
4 changed files with 11 additions and 6 deletions
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<actions>
|
||||
<action>
|
||||
<icon>Alacritty</icon>
|
||||
<name>Open Alacritty Here</name>
|
||||
<icon><% opt.term.icon_name %></icon>
|
||||
<name>Open <% opt.term.name %> Here</name>
|
||||
<unique-id>1644418824525892-1</unique-id>
|
||||
<command>alacritty --working-directory %f -e fish</command>
|
||||
<command><% opt.term.workdir_command %> %f</command>
|
||||
<description></description>
|
||||
<patterns>*</patterns>
|
||||
<startup-notify/>
|
|
@ -46,7 +46,7 @@ bindsym XF86Calculator exec qalculate-gtk
|
|||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec TERMINAL=<% opt.term_command %> i3-sensible-terminal
|
||||
bindsym $mod+Return exec TERMINAL=<% opt.term.command %> i3-sensible-terminal
|
||||
|
||||
# open thunar
|
||||
bindsym $mod+Ctrl+e exec thunar
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
|
||||
|
||||
# Super+Return to start a terminal
|
||||
riverctl map normal Super+Shift Return spawn <% opt.term_command %>
|
||||
riverctl map normal Super+Shift Return spawn <% opt.term.command %>
|
||||
|
||||
# Super+Q to close the focused view
|
||||
riverctl map normal Super Q close
|
||||
|
|
|
@ -3,6 +3,11 @@ local opts = {}
|
|||
opts.font = "Iosevka Nerd Font"
|
||||
opts.term_font = "Iosevka Term Nerd Font Mono"
|
||||
|
||||
opts.term_command = "wezterm"
|
||||
opts.term = {
|
||||
name = "Wezterm",
|
||||
command = "wezterm",
|
||||
workdir_command = "wezterm-gui start --cwd",
|
||||
icon_name = "org.wezfurlong.wezterm",
|
||||
}
|
||||
|
||||
return opts
|
||||
|
|
Loading…
Reference in a new issue