improve terminal confgen stuff

This commit is contained in:
LordMZTE 2023-01-26 08:18:52 +01:00
parent 8d14bc4d63
commit 5fedc8a9d4
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
4 changed files with 11 additions and 6 deletions

View file

@ -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/>

View file

@ -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

View file

@ -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

View file

@ -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