[solved]Openbox margins and Conky
I have a 1 line conky that i want to remain at the top of my screen at all times. I set up a margin in openbox to leave enough pixels at the top to comfortably fit the conky. The problem is that when i first boot to my desktop conky is placed below the margin. If i restart X however conky is right where i want it in the margin. Does anyone know how to put conky in the right place the first time?
.conkyrc is setup for top_left placement and theres only a few pixels on the y axis from the top.
I call conky from .xinitrc before openbox
I can't think of any other relevant info but let me know!
Last edited by czar (2008-06-04 01:18:09)
B wrote:
The function created with the brackets, combined with the ampersand, puts the whole sequence in the background, so .xinitrc will not stop being parsed for that whole time.
Don't worry, the guy knows what he's talking about...
thanks for clearing that up. I read the parenthesis as English not as code. sorry for doubting you redroar!
And moljac, i'll check that out when i get home, thanks.
Last edited by czar (2008-06-02 17:54:29)
Similar Messages
-
[Openbox] Margins and Screenlets, Settings Manager
Hi everyone!
I have a few openbox questions. I installed screenlets to use the Launcher for starting programms. Everything works fine and I added
/usr/share/screenlets/Launcher/LauncherScreenlet.py &
to my autostart. Then I defined a margin and moved the launchers inside the margin. But on next start they were moved outside the margin. I found that someone asked that question for conky and so I tried changing my autostart to
(sleep 5 && /usr/share/screenlets/Launcher/LauncherScreenlet.py) &
But that doesn't work either. Has anyone an idea how to get this done?
Next qustion, I couldn't find out how to change things like brightness and energy options, for example when the screen should turn off. Could I change everything with xfce-mcs-manager or gnome-settings-deamon or is there a better solution for it?
Cheers, MarioIn regards to the energy options I use laptop-mode-tools, pm-utils, cpufrequtils to controls screen brightness and other low-energy settings on my netbook. Nice lightweight options if you don't have have Gnome installed.
Check out the power management section of the laptop wiki article
http://wiki.archlinux.org/index.php/Laptop
Last edited by bearman51 (2010-07-21 19:29:49) -
[SOLVED] openbox margins with dual monitors
Hi community,
I have stumbled to a nasty problem on my first incursion to dual monitors in openbox.
I'm using xrandr with this command (which works just fine BTW):
xrandr --output LVDS --mode 1280x800 --primary --output VGA-0 --mode 1280x1024_60.00 --gamma 1.0:1.4:0.85 --right-of LVDS
and have set a Virtual screen in xorg.conf of 2560 x 1024 pixels.
But, my laptop monitor only handles 1280x800, while my external LCD monitor has 1280x1024, so there is a virtual area under my laptop screen which i'm not using, but i dont really care about that.
The problem is that when I'm setting screen margins, so that maximized windows will respect the panels in the bottom (tint2), in rc.xml (or by obconf) the margins are applied to the virtual screen and only are practical on the external monitor wich has more pixel height.
I'm really missing some kind of per monitor margin settings in openbox, maybe there is and i haven't found it? It makes me wonder because openbox can maximize windows to a single monitor, even if the whole layout it's treated like a virtual screen, so it has some way of distinguishing between them.
I would appreciate any suggestions, thanks.
Last edited by andreamer (2010-07-26 18:32:15)TL;DR - I'm not aware of any acceptable solution at the moment.
Basically, what you're having problems with, is the "dead area." It can really be quite a pain in the butt if window managers or other screen aware applications don't anticipate it properly. To my knowledge, Openbox doesn't support margins on a monitor-by-monitor basis. In reality, you shouldn't need to be setting margins anyway. Tint2 should be reporting itself as a taskbar, and Openbox should be respecting that.
I have dead area too, with multiple monitors, and Openbox respects both of the KDE taskbars I have running (one on each monitor). (I use KDE and simply replaced Kwin with Openbox.) This tells me that tint2 should be able to cooperate with Openbox. I remember trying tint2 a while ago, and didn't fine it adequate in a dual monitor environment (it was probably a year ago or so). tint2 would need to be setting the _NET_WM_STRUT_PARTIAL hint, and I'm not sure if it is (or if it's doing it properly). See http://standards.freedesktop.org/wm-spe … #id2507618
Also, I do know that the developer for Openbox recently got a dual monitor setup, and she's been adding additional support for dual monitors a little at a time. Hopefully with 3.5, there will be a lot more support. (Margin support for multiple monitors would be great, because it could be a good utility knife for applications that don't care about multi-monitors setups and don't set the proper hints.)
If you're capable of modifying tint2, my course of action would be to try something that works (like the KDE taskbars) and record the hints being set there. Then compare them with tint2 and try to mirror KDE's setup. (If you're a programming lacking experience with X and related nonsense, I'd be more than willing to offer what guidance I have.)
Also, I developed a panel myself (and got pretty far along) using the PyGTK toolkit... But I can't remember if I solved this problem or not. I'll try to check it out and get back to you. (I got as far as implementing a widget system that includes a task list, system tray, clock, menus... It just isn't polished very well. My original intention was for it to be a more robust PyPanel with dual monitor support.)
Last edited by BurntSushi (2010-07-24 22:46:23) -
[solved] WMFS statusbar and conky - conky appears on desktop as well.
Hello guys. I recently got into WMFS. I was able to use conky in the status bar. However, some text shows up on the desktop. I could not find any fix for this issue by searching. Here is a screenshot- http://imageshack.us/photo/my-images/69 … x768s.png/
and this is my conkyrc- http://pastebin.com/gAJgnu9k
Would using double buffer or user_space none help?
EDIT: I just tried out_to_x no and it appears to fix the issue for me.
Last edited by cirnOS (2011-12-23 01:42:53)Mr Green wrote:Please make thread as Solved
rc.xml
<keybind key="F1">
<action name="DesktopLeft">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="F2">
<action name="DesktopRight">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="F1">
<action name="Execute">
<command>feh --bg-scale /root/img.png</command>
</action>
</keybind>
<keybind key="F2">
<action name="Execute">
<command>feh --bg-scale /root/img.jpg</command>
</action>
</keybind>
This lines in rc.xml make set different wallpapers on 2 desktops -
[SOLVED]openbox-xdgmenu and setting up
hey guys
ive installed openbox-xdgmenu. ( yes i read the wiki, im still confused ), ive added as suggested after installation
<menu id="xdg-apps" label="Applications" execute="openbox-xdgmenu /etc/xdg/menus/applications.menu" />
To the top area of my menu.xml
Then i reset openbox
And it wont show up in the menu. so im just abit confused in where to go from here
Last edited by nankura (2012-07-18 14:50:41)i figured it out, i apologise for the rash post x.x, i forgot to add the link under the openbox rootmenu in the menu.xml
-
[SOLVED] OpenBox - Transparency and Virtual Desktop Switcher
Hi All
I've just recently, in the last 2 days, switched from Gnome 3.2 to Openbox. I've never really used it before except for a short period on #! as I recall. I've a couple of problems I don't seem to be able to find any answers to and hopefully someone on here already knows how:
1) I'm using Guake dropdown terminal - I don't mind switching to any other terminal if necessary. I can't get transparency to work correctly with it though. I've installed the following to try to resolve the issue:
Cairo Composite Manager
transset-df
If I issue the command:
transset-df -n 'Guake!' &
the Guake terminal sets to transparent which is great. However, as soon as the window retracts and I call it back again the transparency has switched off.
2) I've installed tint2 and it's pretty good. Problem is I can't find a way to get a virtual desktop switcher. Again, this choice isn't cast in stone, I'm quite happy to change to any other application, or set of applications, to achieve the following:
Virtual Desktop Switcher - i like the way pypanel does this actually. I'm happy enough with the mouse wheel switching desktops but I'd like some indication of which desktop I'm on.
Date and Time with a calendar - I've got Orca working quite well on a click on the clock for the calendar.
I would have thought this was pretty simple to resolve really, it's just that i don't know Openbox that well yet and I could use some advice on the best way to resolve the issues.
Thanks in advance
Rich
Last edited by RichAustin (2011-10-23 09:20:13)I've actually managed to resolve the transparency issue as well.
sudo pacman -S devilspie xcompmgr transset-df
Then in .config/openbox/autostart:
# Start Composite Manager
xcompmgr &
# Start Devilspie to alter windows
devilspie -a &
# Start Main Panel
tint2 &
Finally, create a file in .devilspie called guake.ds with the following content:
(if
(is (window_name) "guake.py" )
(begin
(spawn_sync (str "transset-df -i " (window_xid) " 0.5") ) -
[SOLVED] - Openbox thunar and icons
Hi,
How do I change the icons in thunar? running openbox!
Last edited by ftornell (2009-11-09 20:53:42)http://wiki.archlinux.org/index.php/Openbox#GTK_Icons
-
[ SOLVED ] [ Openbox ] autostart.sh is being ignored ..
~/.config/openbox/autostart.sh
# Turn On numlock
numlockx &
# Desktop background
nitrogen --restore &
# Panel
tint2 &
# Conky
conky -c ~/.conkyrc
.xinitrc
exec ck-launch-session openbox
start-pulseaudio-x11
When Openbox starts, nothing happens ( none of the entries gets executed ).
** Works perfectly when I execute the given file from the command line ..
How to fix it ?
[ SOLVED ] Changed .xinitrc line from openbox to openbox-session and everything seems to be working now ..
Last edited by Minimal Scope (2010-10-29 18:17:06)Sorry I'm new with linux. Thanks you for your time
Last edited by Jeager (2010-05-16 20:40:26) -
Question about Noise Margin and Line Attenuation a...
1. For several years I have had a BT telephone line. From the utilities provided by http://www.kitz.co.uk/adsl I find that I am connected to the Exchange at Merton Park (BT Code: LSMEPK) Distance:- Direct: 960 metres (appx)* By Road: 1.29 km. Exchange Status ADSL enabled: March 30, 2000 DSL Max enabled: March 30, 2006 SDSL enabled : Enabled 21CN due : (PSTN) N/A 21CN WBC (Broadband) Enabled 15.02.09
2. I previously had broadband from UKOnline and used a Speedtouch 570 adsl modem. I was paying £9.99 for a speed of 1MBit/s – in practice 700K – which was fine for most purposes but BBC iplayer did struggle a bit. UkOnline has been taken over by SKY so I switched to BT Total Broadband Option 3 in mid December, and initially used the Speedtouch 570 as there were delivery delays on BT Home Hub 2.0 due to weather conditions. Speed was initially very good but did not measure it.
3. After Xmas I set up the BT Home Hub and ran a speed test - the profile was 2.5MBit/s. I was disappointed to get less than 3Mbit/s which is needed for BBC iplayer HD.
ADSL line status
Connection information
Line state Connected
Connection time 0 days, 2:26:57 ------> 6th January 2011
Downstream 2,268 Kbps
Upstream 440 Kbps
ADSL settings
VPI/VCI 0/38
Type PPPoA
Modulation ITU-T G.992.5 ---à this apparently means ADSL2+
Latency type Interleaved
Noise margin (Down/Up) 15.7 dB / 31.9 dB
Line attenuation (Down/Up) 27.0 dB / 9.7 dB
Output power (Down/Up) 0.0 dBm / 12.7 dBm
Loss of Framing (Local) 22
Loss of Signal (Local) 3
Loss of Power (Local) 0
FEC Errors (Down/Up) 6512 / 0
CRC Errors (Down/Up) 0 / 2147480000
HEC Errors (Down/Up) nil / 0
Error Seconds (Local) 2
4. As part of the “slow speed wizard” I looked into getting the accelerator plate for my NTE5 split face master socket available for postage only (£1.20) but the web form advised me that if I proceeded with this order the broadband contract would automatically be extended by 12 months. I checked my BT internet account and was surprised to find an email (23rd Dec 2010) advising me that as an Option *1* customer I was in danger of exceeding my usage allowance – which surprised me as I am definitely Option 3. I wondered if I had had the speed throttled. Therefore phoned BT accounts who said the email was a mistake - I am Option 3, also said that accelerator plate was unlikely to make a difference.
5. I contacted the BT call centre who talked me through various options. Plugging the hub direct into the master socket made no difference. They also ran a line test and said the line was fine.
6. I therefore browsed the community care forum and find that disappointing speeds are not uncommon. One of the threads mentioned disconnecting the bell wire on the extensions. I follow this advice and removed line 3 on all extensions and then checked the ADSL status on the hub.
ADSL line status
Connection information
Line state Connected
Connection time 0 days, 6:33:45 10th January 2011
Downstream 2,272 Kbps
Upstream 888 Kbps
ADSL settings
VPI/VCI 0/38
Type PPPoA
Modulation ITU-T G.992.5
Latency type Interleaved
Noise margin (Down/Up) 31.8 dB / 14.4 dB
Line attenuation (Down/Up) 27.0 dB / 9.7 dB
Output power (Down/Up) 0.0 dBm / 12.3 dBm
Loss of Framing (Local) 0
Loss of Signal (Local) 0
Loss of Power (Local) 0
FEC Errors (Down/Up) 0 / 0
CRC Errors (Down/Up) 0 / 2147480000
HEC Errors (Down/Up) nil / 0
Error Seconds (Local) 0
7. This had a dramatic improvement on Upstream speed – and a big change to the noise margin Noise margin which had been (Down/Up) 15.7 dB / 31.9 dB and is now Noise margin (Down/Up) 31.8 dB / 14.4 dB. It did not improve the download speed.
8. In the following days the BT hub has not been particularly stable with some intermittent loss of wireless connectivity every few hours. Examining the event log I was a bit disconcerted to see alterations to firewall settings had happened (which I hadn’t made) and resets which I am pretty certain I hadn’t made – and a userid login with a name like TR69. Perhaps these are occasioned by the BT speedtester? To be fair I had reset and powered off the hub a number of times in attempt to sort out this problems.
9. I have switched to a Netgear DG83GT (V1.03.23) for the time being until I have what I can regard as a reasonably fast stabile connection. At the time of writing this has been stable for 20 hours DownStream Connection Speed 2268 kbps UpStream Connection Speed 888 kbps.As stated earlier I would like downstream to be faster.
The perceived wisdom on the forum seems to be that several days of complete stability are required if there is to be any improvement on speed.
10. If a moderator or anyone with the relevant experience reads this I would be very grateful for answers to the follow questions:
A. Is the change in the Noise Margin parameter a good thing or a bad thing?
B. Are the line attenuation figures acceptable for a distance of under 1.5kilometres to the exchange?
C. Should I be able in theory to get a faster speed i.e. downstream 3Mbit/s?
D. From the forum it seems to take several days for speed adjustments to be effected or to take effect – is this a technical issue or a policy issue?
Many thanks.
Robert
Solved!
Go to Solution.Good Morning - it is now 6 days since this posting. During this time there have been 2 resets of the adsl line
Fri, 2011-01-14 03:28:43 - LCP down.
Fri, 2011-01-14 03:28:54 - Initialize LCP.
Fri, 2011-01-14 03:28:54 - LCP is allowed to come up.
Fri, 2011-01-14 03:28:54 - CHAP authentication success
and
Sun, 2011-01-16 16:37:26 - LCP down.
Sun, 2011-01-16 16:37:36 - Initialize LCP.
Sun, 2011-01-16 16:37:36 - LCP is allowed to come up.
Sun, 2011-01-16 16:37:36 - CHAP authentication success
These were not initiated by me - and since noise margins and sync speeds changed as a consequence can I assume that this is evidence of the adaptive process working?
Secondly, as you can see, the noise ratio has vastly improved as have the upstream and downstream sync speeds
System Up Time 157:54:52
ADSL Link Downstream Upstream
Connection Speed 11199 kbps 1091 kbps
Line Attenuation 27.0 db 9.9 db
Noise Margin 14.8 db 9.2 db
BUT from the BT speedtester, as shown below I seem to be stuck in a banded IP profile of 1750/1091 which is very different from the downstream sync speeds of 11199 Kbps(DOWN-STREAM)
Can BT staff take action to alter this? If they can how do I contact them?
Regards,
Robert
18th Jan 2010
Download Speed 1288 Kbps
0 Kbps 2000 Kbps
Max Achievable Speed
Download speedachieved during the test was - 1288 Kbps
For your connection, the acceptable range of speedsis 800-2000 Kbps.
Additional Information:
Your DSL Connection Rate :11199 Kbps(DOWN-STREAM), 1091 Kbps(UP-STREAM)
IP Profile for your line is - 1750 Kbps
The throughput of Best Efforts (BE) classes achieved during the test is - 2.28:10.77:87.0 (SBE:NBEBE)
These figures represent the ratio while sententiously passing Sub BE, Normal BE and Priority BE marked traffic.
The results of this test will vary depending on the way your ISP has decided to use these traffic classes.
2. Upstream Test: -provides background information.
Upload Speed 896 Kbps
0 Kbps 1091 Kbps
Max Achievable Speed
>Upload speed achieved during the test was - 896 Kbps
Additional Information:
Upstream Rate IP profile on your line is - 1091 Kbps -
[SOLVED] Openbox autostart no longer working since upgrade
After the upgrade on May 14 2013 my autostart file no longer works. I tried renaming my autostart.sh to just autostart no luck. There is nothing wrong with the autostart file as I can run it manually and it will load all my apps. Also, if I cd to /usr/lib/openbox/ and run openbox-autostart directly it works. Here are the updated packages:
[2013-05-14 21:34] [PACMAN] upgraded ethtool (1:3.8-1 -> 1:3.9-1)
[2013-05-14 21:34] [PACMAN] upgraded firefox (20.0.1-5 -> 21.0-1)
[2013-05-14 21:34] [PACMAN] upgraded gsettings-desktop-schemas (3.8.0-1 -> 3.8.2-1)
[2013-05-14 21:34] [PACMAN] upgraded glib-networking (2.36.1-1 -> 2.36.2-1)
[2013-05-14 21:34] [PACMAN] upgraded gnome-icon-theme-symbolic (3.8.0.1-2 -> 3.8.2.2-1)
[2013-05-14 21:34] [PACMAN] upgraded gnome-icon-theme (3.8.0-1 -> 3.8.2-1)
[2013-05-14 21:34] [PACMAN] upgraded gnupg (2.0.19-7 -> 2.0.20-1)
[2013-05-14 21:34] [PACMAN] upgraded gtkmm (2.24.2-2 -> 2.24.3-1)
[2013-05-14 21:34] [PACMAN] upgraded gvfs (1.16.1-2 -> 1.16.2-1)
[2013-05-14 21:34] [PACMAN] upgraded libical (0.48-1 -> 1.0-2)
[2013-05-14 21:34] [PACMAN] upgraded mplayer (35920-2 -> 35920-3)
[2013-05-14 21:34] [PACMAN] upgraded orage (4.8.4-1 -> 4.8.4-2)
[2013-05-14 21:34] [PACMAN] upgraded pango (1.34.0-1 -> 1.34.1-1)
[2013-05-14 21:34] [PACMAN] upgraded pdnsd (1.2.9.a-1 -> 1.2.9.a-2)
[2013-05-14 21:34] [PACMAN] upgraded python2-distribute (0.6.38-1 -> 0.6.39-1)
[2013-05-14 21:34] [PACMAN] upgraded python2-zope-interface (4.0.3-1 -> 4.0.5-1)
[2013-05-14 21:34] [PACMAN] upgraded sudo (1.8.6.p8-1 -> 1.8.6.p8-2)
[2013-05-14 21:34] [PACMAN] upgraded thunderbird (17.0.5-2 -> 17.0.6-1)
[2013-05-14 21:34] [PACMAN] upgraded virtualbox (4.2.12-2 -> 4.2.12-3)
[2013-05-14 21:34] [PACMAN] upgraded vte-common (0.34.4-1 -> 0.34.5-1)
[2013-05-14 21:35] [PACMAN] upgraded python3-threaded_servers (2013.5.12.3-1 -> 2013.5.14.1-1)
Not sure what's going on or what could have caused it. My .xinitrc looks like this:
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
export BROWSER="chromium"
# Start GNOME Keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
# You probably need to do this too:
export SSH_AUTH_SOCK
export GPG_AGENT_INFO
export GNOME_KEYRING_CONTROL
export GNOME_KEYRING_PID
exec openbox-session
My .zprofile
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx &> ~/.xlog
My systemd startup service:
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service
# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes
# On systems without virtual consoles, don't start any getty. (Note
# that serial gettys are covered by [email protected], not this
# unit
ConditionPathExists=/dev/tty0
[Service]
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty -a dodo3773 %I 38400
Type=simple
#Restart=always
#RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=no
TTYVHangup=no
TTYVTDisallocate=no
KillMode=process
IgnoreSIGPIPE=no
# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP
[Install]
WantedBy=getty.target
Edit: I tried switching to bash in a tty and then just startx but that doesn't help either.
Edit2: To be clear openbox does load a desktop. The autostart scripts at ~/.config/openbox/ just don't run. Thanks.
Edit3: I decided to run the command issued in openbox-session and added --debug to it. Here is the output of "xinit /usr/bin/openbox --debug --startup "/usr/lib/openbox/openbox-autostart OPENBOX" "$@" -- :1 -nolisten tcp" :
X.Org X Server 1.14.1
Release Date: 2013-04-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.8.7-1-ARCH x86_64
Current Operating System: Linux dodo713 3.9.2-2-ck #1 SMP PREEMPT Sun May 12 18:19:49 EDT 2013 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux-ck root=UUID=06874255-7a5d-4968-8f09-1e53cb761f44 ro quiet init=/usr/lib/systemd/systemd
Build Date: 17 April 2013 02:37:06PM
Current version of pixman: 0.30.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Fri May 17 08:14:11 2013
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
setversion 1.4 failed
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
Loading extension NV-GLX
Loading extension NV-CONTROL
Loading extension XINERAMA
setversion 1.4 failed
Openbox-Debug: --startup /usr/lib/openbox/openbox-autostart OPENBOX
Openbox-Debug: Moving to desktop 1
Openbox-Debug: not managing override redirect window 0x4000bb
which: no hsetroot in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/usr/bin/core_perl:/home/dodo3773/Documents/Scripts:/home/dodo3773/Documents/Scripts)
which: no esetroot in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/usr/bin/core_perl:/home/dodo3773/Documents/Scripts:/home/dodo3773/Documents/Scripts)
which: no xsetroot in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/usr/bin/core_perl:/home/dodo3773/Documents/Scripts:/home/dodo3773/Documents/Scripts)
kupfer: Reading from stdin
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Compat map for group 2 redefined
> Using new definition
> Warning: Compat map for group 3 redefined
> Using new definition
> Warning: Compat map for group 4 redefined
> Using new definition
Errors from xkbcomp are not fatal to the X server
Openbox-Debug: Caught signal 22. Ignoring.
Openbox-Debug: UPDATE DESKTOP NAMES
Openbox-Debug: Keyboard map changed. Reloading keyboard bindings.
Edit4: Removed everything from /etc/xdg/autostart and ~/.config/autostart/ directories. That didn't work.
Edit5: Tried installing xorg-xsetroot to let openbox set the color of the wallpaper. That didn't work.
Edit6: Checked the output of "loginctl show-session $XDG_SESSION_ID" to make sure that wasn't the issue. Looks okay to me:
Id=1
Timestamp=Fri 2013-05-17 10:25:53 PDT
TimestampMonotonic=13650783
DefaultControlGroup=systemd:/user/1000.user/1.session
VTNr=1
TTY=tty1
Remote=no
Service=login
Leader=405
Audit=1
Type=tty
Class=user
Active=yes
State=active
KillProcesses=no
IdleHint=no
IdleSinceHint=1368811547544203
IdleSinceHintMonotonic=7545641
Name=dodo3773
Edit7: Tried installing xorg-xrdb thinking maybe that would help and did todays updates. No luck yet.
Edit8: Kupfer still loads even though nothing else does. So I uninstalled kupfer. Same thing though. No autostart.
Edit9: Tried booting into repo kernel instead of ck kernel. Didn't work.
Last edited by dodo3773 (2013-05-19 06:34:44)WonderWoofy wrote:Interestingly, of all those things you included in your post, you forgot to include the autostart script itself. What does that look like?
Well, since it worked fine even when called indirectly through openbox-autostart and since it's worked fine for months I figured it was fine. I am happy to post it though. Here you go:
feh --bg-scale /home/dodo3773/Pictures/blacksolid.png &
xfce4-panel &
numlockx &
keepassx -lock &
kupfer --no-splash &
~/Documents/Scripts/startupopen.sh &
sleep 30 && sudo /usr/bin/ntpd -qg &
sudo /usr/sbin/ethtool -K eth0 rx off &
~/Documents/Scripts/conky.sh &
sudo /home/dodo3773/Documents/Scripts/temp_throttlenew > /dev/null 2>&1 &
Here are the external scripts that are called (startupopen.sh and temp_throttlenew):
startupopen.sh
#! /bin/bash
sleep 13
chromium &
thunderbird &
sleep 20
devilspie -a &
sleep 7
pkill devilspie &
exit
temp_throttlenew
#!/bin/bash
# temp_throttle.sh max_temp
# USE CELSIUS TEMPERATURES.
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
#if [ $# -ne 1 ]; then
# If temperature wasn't given, then print a message and exit.
# echo "Please supply a maximum desired temperature in Celsius." 1>&2
# echo "For example: ${0} 60" 1>&2
# exit 2
#else
#Set the first argument as the maximum desired temperature.
MAX_TEMP=85
#fi
# The frequency will increase when low temperature is reached.
let LOW_TEMP=$MAX_TEMP-5
CORES=$(nproc) # Get number of CPU cores.
echo -e "Number of CPU cores detected: $CORES\n"
# Temperatures internally are calculated to the thousandth.
MAX_TEMP=${MAX_TEMP}000
LOW_TEMP=${LOW_TEMP}000
# FREQ_LIST is a list (array) of all available cpu frequencies the system allows.
declare -a FREQ_LIST=($(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies))
# CURRENT_FREQ relates to the FREQ_LIST by keeping record of the currently set frequency.
let CURRENT_FREQ=1
function set_freq {
echo ${FREQ_LIST[$1]}
cpupower frequency-set -g "ondemand" -d "800MHz" -u ${FREQ_LIST[$1]}
function throttle {
if [ $CURRENT_FREQ -ne $((${#FREQ_LIST[@]}-1)) ]; then
let CURRENT_FREQ+=1
echo -n "throttle "
set_freq $CURRENT_FREQ
fi
function unthrottle {
if [ $CURRENT_FREQ -ne 0 ]; then
let CURRENT_FREQ-=1
echo -n "unthrottle "
set_freq $CURRENT_FREQ
fi
function get_temp {
# Get the system temperature.
# If one of these doesn't work, the try uncommenting another.
TEMP=$(cat /sys/class/thermal/thermal_zone0/temp)
#TEMP=$(cat /sys/class/hwmon/hwmon0/temp1_input)
#TEMP=$(cat /sys/class/hwmon/hwmon1/device/temp1_input)
while true; do
get_temp
if [ $TEMP -gt $MAX_TEMP ]; then # Throttle if too hot.
throttle
elif [ $TEMP -le $LOW_TEMP ]; then # Unthrottle if cool.
unthrottle
fi
sleep 3
done
Stuff that needs sudo is in my sudoers as "username hostname NOPASSWD: item1,item2,etc,etc". Nothing too exciting. Seems like if there was suddenly something wrong with my autostart file at least some of the stuff would run either way though cause of "&". Pretty puzzling this issue is. -
[SOLVED] Openbox+Thunar, how to show usb devices in thunar?
Hi. I've been running a pretty standard Xfce environment for a while. When I plug in a usb drive, I get a new item pop up in the "DEVICES" section of the left panel in thunar (note, it doesn't automount the device, it just shows that it's there and only mounts it when I click on it...I like this behaviour).
Now, I'm setting up an even lighter-weight environment, just openbox and tint2 with thunar as the file manager. But when I'm logged into the openbox environment, I don't get the item in the "DEVICES" section in thunar (but it still works fine in xfce).
If it run thunar from the command line and plug in a usb drive I get this message in the terminal
(thunar:21205): thunar-WARNING **: Failed to launch the volume manager (Failed to execute child process "thunar-volman" (No such file or directory)), make sure you have the "thunar-volman" package installed.
I don't see why I would need thunar-volman if it works fine in xfce. If I install thunar-volman and do the same, I get this message
thunar-volman: Unsupported USB device type.
thunar-volman: Unsupported USB device type.
thunar-volman: Unknown block device type.
So I'm wondering if maybe there is a daemon that is autostarted during an xfce session that makes thunar probe for devices to be plugged in or something like that. Why does it work in an xfce session, but not in an openbox session?
Last edited by Pacopag (2013-03-14 15:52:32)Thanks for your replies.
henk: I tried installing polkit-gnome and creating the rule as per the wiki, but it didn't work. Volume detection seems to work fine in xfce without this package.
jv2112: I added udiskie to .config/openbox/autostart and it seems to work. I've had problems with udiskie in the past; it seemed to have some trouble unmounting the drives properly after a write as I would find that the newly written files were corrupt. But it seems to be working fine.
I'll mark this as solved, but I'm still curious as to how xfce-thunar is mounting the usb devices.
One clue is that with udiskie, devices get mounted to /media, whereas in xfce they get mounted to /var/run/media/username/ (or something like that). -
[Solved] Trying to get conky to display hebrew right...
ok,
So i've been using ${mpd_status} to display my songs on conky. However, some of my song's names are in hebrew, and hebrew has this problem that the terminal (and conky) display it the other way around. For exaple, hebrew word abc (a,b,c are hebrew letters) are displaed cba. So, I wrote 2 scripts: One to reverse the hebrew so on the terminal it looks "ok" (If it sounds rediculus to you, that's the way we get around the hebrew problem on computers, we've been doing it since computers were invented), and another to get the song's name and feed it to the first script.
So, after all this work, I managed to make the scripts display hebrew song names on the terminal perfectly. However, conky refuses to show my song names. English eongs work fine, hebrew songs are just not displayed. This leads me to believe there's a problem. I was wondering if the kind people of the forum can help?
PS I realize this is in the gray area between programming and help. That's why I put it in here. If the admins think there's a better place for it, please move this tread, thank you.
revHebrew.py
#!/usr/bin/python
# This script takes a sentence as an argument and reverses all hebrew so it's
# displayed right in the terminal and in conky.
# USAGE: revHebrew.py [word1] [word2] [...]
import sys
ENGLISH_LETTERS = []
UPPER_CASE_START_INDEX = 65
LOWER_CASE_START_INDEX = 97
NUMBER_OF_LETTERS_IN_ENGLISH = 26
ENCODING = "utf-8"
args = sys.argv[1:]
def inEnglish(word):
letters = list(word)
for letter in letters:
if letter in ENGLISH_LETTERS:
return True
return False
def generateEnglishLetters():
global ENGLISH_LETTERS
ENGLISH_LETTERS = map(chr, range(UPPER_CASE_START_INDEX,
UPPER_CASE_START_INDEX + NUMBER_OF_LETTERS_IN_ENGLISH) +
range(LOWER_CASE_START_INDEX,LOWER_CASE_START_INDEX +
NUMBER_OF_LETTERS_IN_ENGLISH))
def reverseWord(word):
return word[::-1]
def reverseSentence(sentence):
ltrSubsentence = []
orderedSentence = []
for word in sentence:
if not inEnglish(word):
ltrSubsentence.insert(0,word)
else:
ltrSubsentence.append(word)
orderedSentence += ltrSubsentence
ltrSubsentence = []
orderedSentence += ltrSubsentence
return orderedSentence
def main():
generateEnglishLetters()
sentence = []
for word in args:
word = unicode(word, ENCODING)
if not inEnglish(word):
word = reverseWord(word)
sentence.append(word)
print u' '.join(reverseSentence(sentence))
if __name__ == "__main__":
main()
hebrewMPDstatus.sh
#!/bin/bash
# A script to display hebrew and english songs from MPD in the right way
# USAGE: hebrewMPDstatis.sh
Title=`sonata info | grep Title: | cut -c8-`
Artist=`sonata info | grep Artist: | cut -c9-`
Song="$Title - $Artist"
Command="python revHebrew.py ${Song}"
eval $Command
my .conkyrc
#override_utf8_locale no
format_human_readable yes
double_buffer yes
alignment top_middle
background yes
border_width 0
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
#xftfont Miriam Mono CLM:size=10
xftfont Sans:size=10
gap_x 0
gap_y 0
minimum_size 1672 0
maximum_width 1672 0
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type desktop
own_window_transparent no
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer yes
show_graph_scale no
show_graph_range no
text_buffer_size 2048
TEXT
$nodename - $sysname $kernel on $machine :: ${color grey}Uptime:$color $uptime :: ${color grey}Frequency:$color $freq_g GHz :: ${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes :: Net: Up:$color ${upspeed wlan0} ${color grey} Down:$color ${downspeed wlan0} :: ${color gray} Heat$color: Core0: ${font mpd:style=Bold:color=white:size=10}${execi 8 sensors | grep -A 1 'Core 0' | cut -c15-16 | sed '/^$/d'}C${font} Core1: ${font mpd:style=Bold:color=white:size=10}${execi 8 sensors | grep -A 1 'Core 1' | cut -c15-16 | sed '/^$/d'}C${font} temp: ${font mpd:style=Bold:color=white:size=10}${execi 8 sensors | grep -A 1 'temp1' | cut -c15-16 | sed '/^$/d'}C${font} :: ${font Miriam Mono CLM:style=Bold:size=10}${color lightblue}${execi 1 ~/hebrewMPDstatus.sh} - $mpd_status ${mpd_elapsed} ${color grey} ${mpd_bar 10}${color}
#RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} ${color grey}CPU Usage:$color $cpu% ${cpubar 4}
Additional info: Unless I made a mistike, the script's output should be utf8. I looked around and apperantly sometimes the font's at fault so I decided to try a hebrew font, but no luck.
SOLVED: Ok, solved my own problem. I saw this error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128)
and decided to invastigate it. It lead me to the following page: http://stackoverflow.com/questions/4924 … -in-python
Basiclly turns out python's print command outputs in ASCII. I modified my main as instructed in the page, to change the default encoding to utf-8 and it did the trick!
Another thing I had to do in my .conkyrc was to set "override_utf8_locale yes" in the config. I now have working hebrew in my conky! I hope others will find this post in the future and be saved the trouble.
Last edited by Greenstuff (2010-05-29 00:06:20)Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.22
Closing -
[solved] openbox: "ghost" window with bbpager
I don't really know where to report this bug as it was working fine a few days ago, so I'm just going to check if I'm the only one having problems with bbpager.
Basically, when I'm using bbpager outside of the dock/slit, everything's fine.
But when using bbpager -w, if I close everything, the last window still appears in the pager:
impossible to move it, but it's still there.
Once I open a new window, everything's working again, the "ghost" window dissapear.
Strange thing is, if I run a 2nd instance of bbpager without the "withdrawn" option, the one in the dock behaves correctly: the docked bbpager stop drawing the remaining window.
I tried with the default config files for both openbox and bbpager with no luck.
Problem is I have no idea how to check what's wrong with it, and unable to find another pager with autohiding feature (which is why I put bbpager in the dock).
Does someone has the same issue, or any idea of what I could do to solve this problem?
Thanks!
This is unrelated and solved:
Edit:
Just realised something else:
I'm using "windows" + Tab as a "Super alt-Tab", ie switching between tasks on all desktops, and not just the current one.
If I'm on a desktop with no window open, no problem, I just choose the window I want and I'm transfered to the correct desktop.
Problem is once the window gets focus, windows tab isn't working anymore: I can choose another window (I see the icons, can move between them, see the border...), but I'm not transfered to it.
It doesn't do a thing.
But if I do "show desktop" first, no problem, it's working again...
Edit2: AAAAaaaAAARRGGH! downgraded to openbox 3.4.7 fixed the "windows + Tab" issue, but not the bbpager one!!!
I'm completely clueless.
Edit3:
Just reinstalled openbox 4.3.8.
Did it with Pacman -Rns openbox + rm -r ~/.config/openbox, then pacman -S + cp /etc/xdg/openbox ~/.config , just to be sure.
Same issue with "windows tab", but... It's working with firefox, I don't know why!
I can switch between different firefox windows, even if they're on different desktops!
Last edited by Tekrotzen (2009-12-12 12:07:24)Solved the openbox issues: installing openbox-git and modifying the new default rc.xml manually (don't use obkey as it's not working well with openbox 4.3.8), everything is working as expected.
Still, I still have the bbpager issue...
Edit:hmmm.
No idea why, but after a pacman -Scc and a new install of bbpager, no ghost window anymore...
Solved.
Last edited by Tekrotzen (2009-12-12 12:07:05) -
I have a annual plan, it supposed must be used in two terminals, but i haven´t been able to install any app in a second computer, it always says that the app is only available as a trial download. What can I do to solve this issue, and be able to use my paid plan in two computers?
Hi Susan,
Please refer to the help document to fix this issue:
Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM
You may also refer to the thread as below:
creative cloud software says my free trial has expired, but I have a paid subscription
Regards,
Sheena -
How to print deposit number in top margin and reset pagination eavh change
I am using Report Builder 6.0.8.27.0 against a version 10 database
I have a built a report that works properly. It consists of about 1800 mineral deposits with one main frame cycling on the mineral deposit number and the frame contains a whole bunch of repeating frames containing detail information. Each mineral deposit may be one and 20+ pages long. The report works properly but I need to make the following additions..
1) At present, the mineral deposit number is only displayed on the first page of the report 'segment'. What I would like to do is have the deposit number displayed in the top margin on each page, next to the title but I am not sure how to do this.
I began by creating a field in the top margin, but when I change the Source of the Field (in the property palette) to the deposit number (a database field) I get the following error:
REP-1213: Field 'F-1' references column MDD_NO at a frequency below its group. This is obviously because this is in the margin and the deposit number occurs within the main repeating frame.
Any suggestions how I might do this - I'm afraid I'm not terribly familiar with reports - and don't have any good reference material at my fingertips. (Only the help files and digging through them is painful - especially when one is not sure what one is looking for.)
Any help woule be appreciated.
2) I would also like to create a special page number/sequence where each deposit would have it's own set of pagination
ie.: Deposit-001 page 1
Deposit-001 page 2
etc
and then reset when the deposit number changes
Deposit-002 page 1
Deposit-002 page 2
Basically, the idea is to restart pagination at each change in deposit number and change the deposit number to the current one. Again, I don't know how to do this.
The report will appear as a large pdf - which I know has it's own pagination. The reason I want the Deposit number and it's page sequence to appear in the top margin is to make it easier for the client to identify which pages belong to which deposit when they print out and work with 4 or 5 different deposits sets at the same time.
I realize I can achieve this by printing one pdf for each deposit, but 1800 individual pdf's is a bit much. to handle.
Thanks for whatever help you can give me
GlennHi,
just populate ur eventcat like this , may be this can help u
form zf_eventcat using p_it_eventcat type slis_t_event.
data l_eventcat type slis_alv_event.
clear l_eventcat.
*Get all the events.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = p_it_eventcat
exceptions
list_type_wrong = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
TOP-OF-PAGE FORM
clear l_eventcat.
read table p_it_eventcat into l_eventcat with key
name = slis_ev_top_of_page.
if sy-subrc = 0.
move 'ZF_TOP_OF_PAGE' to l_eventcat-form.
modify p_it_eventcat from l_eventcat index sy-tabix
transporting form.
endif.
PF_STATUS_SET FORM
clear l_eventcat.
read table p_it_eventcat into l_eventcat with key
name = slis_ev_pf_status_set.
if sy-subrc = 0.
move 'ZF_PF_STATUS_SET' to l_eventcat-form.
modify p_it_eventcat from l_eventcat index sy-tabix
transporting form.
endif.
USER_COMMAND FORM
clear l_eventcat.
read table p_it_eventcat into l_eventcat with key
name = slis_ev_user_command.
if sy-subrc = 0.
move 'ZF_USER_COMMAND' to l_eventcat-form.
modify p_it_eventcat from l_eventcat index sy-tabix
transporting form.
endif.
endform. " zf_eventcat
reward if helpful
Maybe you are looking for
-
Shared Excel spreadsheet "missing data"
We are currently working in a mixed enviornment Excel 2003 and 2007. Files are saved as XLS so all can use the files. The workbooks are shared. Multiple people can be accessing these files at the same time. We will be in this mixed enviornment fo
-
One of my app's has changed it's icon
Mac DVD Ripper Pro (MDRP): Usually when the transfer is finished, it will appear using a "dvd" icon. Recently it changed to plain paper with a corner turned. I brought this up with MDRP, and they said there was nothing wrong with the app & I was 't
-
Usually i use DTS or SSIS (microsoft) to import data to my Staging area. Now all my data is in Oracle 11g DB and I would like to replace my data transformation step to Streams Replication. I would like to ask, do you thing it is a good chose ? I'm Ne
-
Hi, I've installed LabVIEW 2011 on my computer, and everytime I go to open the software the Crash Reporter pops up and tells me there is an unexpected error. (I attached a print screen of the error message.) I'm working with an Itronix "toughbook"
-
About the GetHostTCPSocketHandle() function
Hello, I'd like to know if the 2nd parameter of the function is corresponding to the "SOCKET" type in the Windows SDK? Can you tell me the usage of this function? Thanks. David