mirror of https://github.com/deuill/dotfiles.git
Default to 'sensible-terminal' for Sway
This commit is contained in:
parent
fd28b3ba65
commit
16c93d25c8
|
@ -4,7 +4,7 @@ configuration {
|
|||
matching: "prefix";
|
||||
modi: "run,calc";
|
||||
sidebar-mode: false;
|
||||
terminal: "alacritty";
|
||||
terminal: "sensible-terminal";
|
||||
}
|
||||
|
||||
@theme "base16"
|
||||
|
|
|
@ -23,8 +23,7 @@ set {
|
|||
|
||||
# Application aliases.
|
||||
set {
|
||||
$terminal alacritty
|
||||
$launcher rofi -terminal $terminal -run-command 'bash -ic "{cmd}"'
|
||||
$launcher rofi -run-command 'bash -ic "{cmd}"'
|
||||
$locker swaylock -f
|
||||
$mixer pulsemixer --max-volume 100
|
||||
}
|
||||
|
@ -90,7 +89,7 @@ floating_modifier $mod
|
|||
|
||||
bindsym --to-code {
|
||||
# Application launching
|
||||
$mod+Return exec $terminal
|
||||
$mod+Return exec sensible-terminal
|
||||
$mod+d exec $launcher -show drun -show-icons
|
||||
$mod+Shift+d exec $launcher -show run
|
||||
$mod+o exec $launcher -show filebrowser -show-icons
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"interval": 10,
|
||||
"format": "<span color='#585858' size='smaller'>cpu</span> {usage}%",
|
||||
"max-length": 10,
|
||||
"on-click": "alacritty -e htop"
|
||||
"on-click": "sensible-terminal -e htop"
|
||||
},
|
||||
"custom/mpris": {
|
||||
"format": "{} {icon}",
|
||||
|
@ -46,7 +46,7 @@
|
|||
"memory": {
|
||||
"interval": 30,
|
||||
"format": "<span color='#585858' size='smaller'>mem</span> {}%",
|
||||
"on-click": "alacritty -e htop"
|
||||
"on-click": "sensible-terminal -e htop"
|
||||
},
|
||||
"network": {
|
||||
"format": "<span color='#585858' size='smaller'>net</span> {ifname}",
|
||||
|
@ -63,7 +63,7 @@
|
|||
"format-muted": "<span color='#585858' size='smaller'>vol</span> <span color='#ab4642'>{volume}%</span>",
|
||||
"tooltip-format": "{desc}",
|
||||
"scroll-step": 1,
|
||||
"on-click": "alacritty -e pulsemixer"
|
||||
"on-click": "sensible-terminal -e pulsemixer"
|
||||
},
|
||||
"sway/language": {
|
||||
"format": "<span color='#585858' size='smaller'>key</span> {}",
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
for terminal in $TERMINAL x-terminal-emulator xterm gnome-terminal alacritty kitty; do
|
||||
if command -v $terminal >/dev/null 2>&1; then
|
||||
exec $terminal "$@"
|
||||
fi
|
||||
done
|
||||
|
||||
swaynag --message "Failed to find a suitable terminal"
|
Loading…
Reference in New Issue