devicescale: Add other desktops

This commit is contained in:
Hajime Hoshi 2018-01-04 03:29:58 +09:00
parent 75f5cbd45a
commit ee87a0fd71

View File

@ -32,6 +32,9 @@ const (
desktopUnknown desktop = iota desktopUnknown desktop = iota
desktopGnome desktopGnome
desktopCinnamon desktopCinnamon
desktopUnity
desktopKDE
desktopXFCE
) )
func currentDesktop() desktop { func currentDesktop() desktop {
@ -41,6 +44,12 @@ func currentDesktop() desktop {
return desktopGnome return desktopGnome
case "X-Cinnamon": case "X-Cinnamon":
return desktopCinnamon return desktopCinnamon
case "Unity":
return desktopUnity
case "KDE":
return desktopKDE
case "XFCE":
return desktopXFCE
default: default:
return desktopUnknown return desktopUnknown
} }
@ -100,6 +109,15 @@ func impl() float64 {
return 1 return 1
} }
return s return s
case desktopUnity:
// TODO: Implement
return 1
case desktopKDE:
// TODO: Implement
return 1
case desktopXFCE:
// TODO: Implement
return 1
} }
return 1 return 1
} }