Skip to content

Commit

Permalink
Better defaults :)
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 15, 2024
1 parent 227f801 commit e5bad78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/ui/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ func (d *deskSettings) load() {
d.launcherZoomScale = 2.0
}

moduleNames := fyne.CurrentApp().Preferences().StringWithFallback("modulenames", "Battery|Brightness|Compositor|Sound|Launcher: Calculate|Launcher: Open URLs|Network|Virtual Desktops")
moduleNames := fyne.CurrentApp().Preferences().StringWithFallback("modulenames", "Battery|Brightness|Compositor|Sound|Launcher: Calculate|Launcher: Open URLs|Network|Virtual Desktops|SystemTray")
if moduleNames != "" {
d.moduleNames = strings.Split(moduleNames, "|")
}
d.modifier = fyne.KeyModifier(fyne.CurrentApp().Preferences().IntWithFallback("keyboardmodifier", int(fyne.KeyModifierSuper)))
d.narrowLeftLauncher = fyne.CurrentApp().Preferences().Bool("launchernarrowleft")
d.narrowPanel = fyne.CurrentApp().Preferences().Bool("narrowpanel")
d.narrowLeftLauncher = fyne.CurrentApp().Preferences().BoolWithFallback("launchernarrowleft", true)
d.narrowPanel = fyne.CurrentApp().Preferences().BoolWithFallback("narrowpanel", true)

d.borderButtonPosition = fyne.CurrentApp().Preferences().StringWithFallback("borderbuttonposition", "Left")

Expand Down
6 changes: 6 additions & 0 deletions internal/x11/wm/desk.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ const (
keyCodeEnter = 108
keyCodeLeft = 113
keyCodeRight = 114
keyCodeUp = 111
keyCodeDown = 116

keyCodeBrightLess = 232
keyCodeBrightMore = 233
Expand Down Expand Up @@ -333,6 +335,10 @@ func (x *x11WM) keyNameToCode(n fyne.KeyName) xproto.Keycode {
return keyCodeLeft
case fyne.KeyRight:
return keyCodeRight
case fyne.KeyUp:
return keyCodeUp
case fyne.KeyDown:
return keyCodeDown
case deskDriver.KeyPrintScreen:
return keyCodePrintScreen
case fyne.KeyTab:
Expand Down

0 comments on commit e5bad78

Please sign in to comment.