One thing that drove me nuts is that there is a link to change default applications in the menu, but it
isn't actually used in the default config. For example, if I change my default x-terminal-emulator to stterm,
all the shortcut keys and menu items still launch terminator.
For example, instead of this snippet in rc.xml:
<keybind key="W-h"> <action name="Execute"> <startupnotify> <enabled>true</enabled> <name>htop</name> </startupnotify> <command>terminator --command="htop"</command> </action> </keybind>
we pointed it at
<keybind key="C-A-Delete"> <action name="Execute"> <startupnotify> <enabled>true</enabled> <name>htop</name> </startupnotify> <command>x-terminal-emulator -e htop</command> </action> </keybind>
This should be changed in rc.xml, menu.xml, and defaults.list. The apps I got working were terminal and editor, maybe there should be alternatives for file manager and media player too.
To be honest, I don't mind it so much in my own configuration files because I can easily change them. But there are also hardcoded calls to geany, terminator and nano (and undoubtedly others) in a whole lot of scripts in /usr/bin. That is really, really bad. The freedom of choice is my number 1 reason to use Linux, and now I'm having these applications forced upon me, and no way of getting around them.
Bad crunchbang. Bad, bad crunchbang.
alias comp_edit='text_editor_of_your_choice /usr/bin/cb-compositor'
We all 'hack the contents' of whatever we are using. Debian out of the box is ugly as sin (IMO) and requires as much work as any other distro to get it flowing the way we want it
It's about a solid base to work from, not subjective perfection that is going to suit every persons needs...
Having said that, I am sure corenominal will look at neal's suggestions and if they work for his plans/goals/objectives, he will use them
@VDP76, excellent suggestion and example of the power of aliases... well done
Terminator uses too much RAM. I think there is no problem to change in the openbox menus from terminator to the alterrnatives-system. Same for editors. I use vim or graphic based vims like vim-gtk.
Last edited by uname (2013-05-12 11:58:28)
The freedom in linux and openbox might require the ability to change a few entrys in the openbox-menu, or create a fully custom one. If a user isn`t able to edit menu.xml or not interested in learning to do so, then it`s the users own faulth that he/she doesn`t experience the freedom in linux.
- apt-mark hold account
I'd be happy to see Crunchbang's rc.xml make more use of the update-alternatives system, not necesssarily because it's more or less correct, but as a matter of consistency in relation to the Default Applications dialog. I personally do think it's more correct, but am too a guest in the Crunchbang house.
Last edited by ew (2013-05-13 00:12:08)
- apt-mark hold account
<item label="Edit Default Applications"> <action name="Execute"> <command> terminator --command="sudo update-alternatives --all" </command> </action> </item>
Last edited by ew (2013-05-13 01:48:22)
- apt-mark hold account
I agree! Whether you should use exo-open or x-terminal-emulator is raises another issue- multiple environmental variables for the same thing...
Why use the lightweight distribution the big terminal-emulator "terminator" and not "xterm" with perhaps a nice ~/.Xdefaults or ~/.Xresources. You can save perhaps 10 MB of RAM. Test it.
I use xterm personally but I'm not sure how well xterm supports japanese, chinese, arabic, farsi and such languages. so maybe that would hinder it being set as the default out of the box term emulator.
not to mention xterm by itself is one ugly terminal, i personally have 2 scripts in my ~/bin folder that run xterm for me in truetype and fixed, i've added 2 entries to my menu.xml pointing to each one of them
for anyone interested the scripts are
#!/bin/bash font="DejaVu Sans Mono" font_size=12 exec xterm -bg black -fg white \ -fa "$font" \ -fd "$font" \ -fs $font_size \ -j -s \ -sb -si -sk \ -sl 1024 -rightbar \ +sf +dc -cr green \ -u8 \ $@ & exit
#!/bin/sh exec xterm -bg black -fg white \ -j -s \ -sb -si -sk -sl 1024 -rightbar \ +sf +dc -cr green \ -u8 \ -xrm "xterm*font:-misc-*-*-*-*-*-20-*-*-*-*-*-iso10646-*" \ -xrm "xterm*wideFont:-misc-*-*-*-*-*-20-*-*-*-*-*-iso10646-*" \ $@ & exit
I didn't write these scripts, i found them on the net somewhere a long time ago
as for tmux, there seems to be a new one called byobu. i'm personally a screen user but for that too i had to heavily modified screenrc to run along with it
I converted the scripts i posted earlier into .Xresources format.
Hope this is helpful to someone
just append the following to your ~/.Xresources file and run
$ xrdb ~/.Xresources
$ xrdb -merge ~/.Xresources
or just restart you computer
For fixed font, uncomment the font and wideFont rescources and comment the faceSize, faceName and faceNameDoublesize resources
Lines starting by ! are comment lines and will be ignored
! Xterm --------------------------------------------------------------- !XTerm*font:-misc-*-*-*-*-*-20-*-*-*-*-*-iso10646-* !XTerm*wideFont:-misc-*-*-*-*-*-20-*-*-*-*-*-iso10646-* XTerm*faceSize:12 XTerm*faceName:DejaVu Sans Mono XTerm*faceNameDoublesize:DejaVu Sans Mono !XTerm*faceName:Terminus !XTerm*faceNameDoublesize:Terminus XTerm*VT100.geometry:80x24 XTerm*background:black XTerm*cursorColor:green XTerm*dynamicColors:true XTerm*eightBitInput:true XTerm*foreground:white XTerm*jumpScroll:true XTerm*keyboardType:default XTerm*multiScroll:true XTerm*rightScrollBar:true XTerm*saveLines:1024 XTerm*scrollBar:true XTerm*scrollKey:true XTerm*scrollTtyOutput:false XTerm*toolBar:false XTerm*utf8:2
Just wanted to pop in and mention that my patch for terminator has been merged on launchpad and available through the nightly ppa. I'm not sure how long it will take for it to propogate to the debian repos, but hopefully we can get this fixed for Janice.