Package: i8kutils
Version: 1.41
Severity: wishlist
Tags: upstream patch
Dear Maintainer,
i8kmon uses 2 different fonts. »fixed« and »6x10«. Not everywhere this
are the convenient fonts... but no possibility to change this. Whether
Xressources nor commandline-option.
So i added a possibility to set a font on commandline wiht option "-f"
or "--font"
--- /home/jakob/i8kmon 2014-02-02 13:38:01.000000000 +0100
+++ /usr/local/bin/i8kmon 2014-10-24 14:24:39.206323123 +0200
@@ -22,6 +22,8 @@
userconfig ~/.i8kmon
i8kfan /usr/bin/i8kfan
acpi "acpi"
+ font1 "fixed"
+ font2 "6x10"
geometry {}
use_conf 1
auto 1
@@ -340,9 +342,11 @@
set geometry 24x24
}
if {[lindex [split $geometry x] 1] >= 36} {
- set font fixed
+ set font $config(font1)
} else {
- set font 6x10
+ set font $config(font2)
}
wm geometry .i8kmon $geometry
@@ -492,6 +496,7 @@
-g|--geometry <geom> set applet geometry
-t|--timeout <secs> set poll timeout
-u|--unit C|F set temperature display unit
+ -f|--font <font> set font for applet
"
}
@@ -536,6 +541,10 @@
--unit - -u {
set config(unit) [lindex $argv [incr i]]
}
+ --font - -f {
+ set config(font1) [lindex $argv [incr i]]
+ set config(font2) $config(font1)
+ }
-- {
continue
}
Jakob Schürz
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_AT.utf8, LC_CTYPE=de_AT.utf8 (charmap=UTF-8) (ignored: LC_ALL
set to de_AT.utf8)
Shell: /bin/sh linked to /bin/dash
Versions of packages i8kutils depends on:
ii acpi 1.7-1
ii libc6 2.19-11
ii tcl 8.6.0+8
ii tclx8.4 [tclx] 8.4.1-1
ii tk 8.6.0+8
i8kutils recommends no packages.
i8kutils suggests no packages.
-- Configuration Files:
/etc/default/i8kbuttons changed:
ENABLED=1
I8KBUTTONS_SETKEYCODES=true
-- no debconf information
--- /home/jakob/i8kmon 2014-02-02 13:38:01.000000000 +0100
+++ /usr/local/bin/i8kmon 2014-10-24 14:24:39.206323123 +0200
@@ -22,6 +22,8 @@
userconfig ~/.i8kmon
i8kfan /usr/bin/i8kfan
acpi "acpi"
+ font1 "fixed"
+ font2 "6x10"
geometry {}
use_conf 1
auto 1
@@ -340,9 +342,11 @@
set geometry 24x24
}
if {[lindex [split $geometry x] 1] >= 36} {
- set font fixed
+ set font $config(font1)
} else {
- set font 6x10
+ set font $config(font2)
}
wm geometry .i8kmon $geometry
@@ -492,6 +496,7 @@
-g|--geometry <geom> set applet geometry
-t|--timeout <secs> set poll timeout
-u|--unit C|F set temperature display unit
+ -f|--font <font> set font for applet
"
}
@@ -536,6 +541,10 @@
--unit - -u {
set config(unit) [lindex $argv [incr i]]
}
+ --font - -f {
+ set config(font1) [lindex $argv [incr i]]
+ set config(font2) $config(font1)
+ }
-- {
continue
}