xcalc
xcalc 是一个用于 科学计算器,适用于 X Window 系统。
安装
安装 xorg-xcalc 软件包。
配置
您可以在您的 X 资源文件中设置几个选项,使 xcalc 看起来比默认的白色背景上的黑色文本好得多。可以为每个按钮单独更改位置、标签、功能和颜色。有关更多信息,请参阅 xcalc(1) § 自定义。
主题
xcalc 内置了一个主题,模仿 德州仪器 TI-30 的外观。请参阅 xcalc(1) § 颜色 了解如何启用它。
如果您只是想要一些更好看的颜色,您可以尝试这个主题。
~/.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;
菜单项将在实用工具 > 计算器 应用程序列表中显示为 XCalc。