xcalc
xcalc 是 X Window System 的科学计算器。
安装[编辑 | 编辑源代码]
安装 xorg-xcalc包 软件包。
配置[编辑 | 编辑源代码]
你可以在 X resources 文件中设置几个选项,让 xcalc 看起来比默认的白底黑字更好看。每个按钮的位置、标签、功能和颜色都可以单独更改。更多信息,请参见 xcalc(1) § CUSTOMIZATION。
主题[编辑 | 编辑源代码]
xcalc 有一个内置主题,模仿 Texas Instruments TI-30 的外观。如何启用该主题,请参见 xcalc(1) § COLORS。
如果你只是想要一些更漂亮的颜色,可以试试这个主题。
~/.Xresources
XCalc.geometry: 200x275 XCalc.stipple: true XCalc.ti.Command.background: #777777 XCalc.ti.Command.foreground: White XCalc.ti.bevel.background: #111111 XCalc.ti.bevel.screen.DEC.background: #000000 XCalc.ti.bevel.screen.DEC.foreground: LightSeaGreen XCalc.ti.bevel.screen.DEG.background: #000000 XCalc.ti.bevel.screen.DEG.foreground: LightSeaGreen XCalc.ti.bevel.screen.GRAD.background: #000000 XCalc.ti.bevel.screen.GRAD.foreground: LightSeaGreen XCalc.ti.bevel.screen.HEX.background: #000000 XCalc.ti.bevel.screen.HEX.foreground: LightSeaGreen XCalc.ti.bevel.screen.INV.background: #000000 XCalc.ti.bevel.screen.INV.foreground: Red XCalc.ti.bevel.screen.LCD.background: #000000 XCalc.ti.bevel.screen.LCD.foreground: LightSeaGreen XCalc.ti.bevel.screen.LCD.shadowWidth: 0 XCalc.ti.bevel.screen.M.background: #000000 XCalc.ti.bevel.screen.M.foreground: LightSeaGreen XCalc.ti.bevel.screen.OCT.background: #000000 XCalc.ti.bevel.screen.OCT.foreground: LightSeaGreen XCalc.ti.bevel.screen.P.background: #000000 XCalc.ti.bevel.screen.P.foreground: Yellow XCalc.ti.bevel.screen.RAD.background: #000000 XCalc.ti.bevel.screen.RAD.foreground: LightSeaGreen XCalc.ti.bevel.screen.background: #000000 XCalc.ti.button4.background: Orange3 XCalc.ti.button5.background: Red4 XCalc.ti.button23.background: #611161 XCalc.ti.button24.background: #611161 XCalc.ti.button35.background: #611111 XCalc.ti.button37.background: #222262 XCalc.ti.button38.background: #222262 XCalc.ti.button39.background: #222262 XCalc.ti.button40.background: #722222 XCalc.ti.button42.background: #333373 XCalc.ti.button43.background: #333373 XCalc.ti.button44.background: #333373 XCalc.ti.button45.background: #833333 XCalc.ti.button47.background: #444484 XCalc.ti.button48.background: #444484 XCalc.ti.button49.background: #444484 XCalc.ti.button50.background: #944444 XCalc.ti.button52.background: #555595 XCalc.ti.button53.background: #555595 XCalc.ti.button54.background: #555595 XCalc.ti.button55.background: #a55555
更改分部标签[编辑 | 编辑源代码]
如果您愿意,可以将分隔符改为正斜线。
XCalc.ti.button35.label: /
桌面项[编辑 | 编辑源代码]
xcalc 不会显示在应用程序菜单中,因为它没有桌面项。要让它出现在菜单中,可以添加一个桌面项。
~/.local/share/applications/xcalc.desktop
[Desktop Entry] Name=XCalc GenericName=Scientific Calculator Comment=Scientific calculator for X Exec=xcalc Icon=accessories-calculator Terminal=false Type=Application StartupNotify=true Keywords=calculator;scientific; Categories=Utility;Calculator;
在 Utility > Calculator应用程序列表中,菜单项将显示为 XCalc。