Skip to content

Commit

Permalink
Fix warn messages for short -k flag
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitronx committed Jul 24, 2023
1 parent 6bbfbea commit aeeb4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func main() {
layershell.SetMargin(win, layershell.LAYER_SHELL_EDGE_BOTTOM, *marginBottom)

if (*keyboard) == "" {
log.Warnf("Empty string passed to --keyboard: %s)", *keyboard)
log.Warnf("Empty string passed to -k: %s)", *keyboard)
log.Warn("Setting GTK layer shell keyboard mode to default: exclusive")
layershell.SetKeyboardMode(win, layershell.LAYER_SHELL_KEYBOARD_MODE_EXCLUSIVE)
} else if (*keyboard)[0] == 'e' {
Expand All @@ -398,7 +398,7 @@ func main() {
log.Info("Setting GTK layer shell keyboard mode to: on-demand")
layershell.SetKeyboardMode(win, layershell.LAYER_SHELL_KEYBOARD_MODE_ON_DEMAND)
} else {
log.Warnf("Invalid option passed to --keyboard: %s)", *keyboard)
log.Warnf("Invalid option passed to -k: %s)", *keyboard)
log.Warn("Setting GTK layer shell keyboard mode to default: exclusive")
layershell.SetKeyboardMode(win, layershell.LAYER_SHELL_KEYBOARD_MODE_EXCLUSIVE)
}
Expand Down

0 comments on commit aeeb4e4

Please sign in to comment.