You are not logged in.
Added icons to statusbar and systray... Changed things around a bit and made a new WP...
What patch do you use to get right click menu in dwm?
Offline
n1x4 wrote:Added icons to statusbar and systray... Changed things around a bit and made a new WP...
What patch do you use to get right click menu in dwm?
Wasn't a patch, it's mygtkmenu bound with xbindkeys to the mouse (3rd button/wheel)..
.xbindkeysrc
"mygtkmenu ~/.menu"
m:0x8 + c:64
b:2
xvkbd -text "mygtkmenu ~/.menu"
m:0x0 + b:2 | b:3
Last edited by n1x4 (2012-07-19 21:39:25)
||github||
Offline
i3wm and dzen
The fonts are boxxy and a modified version of M+ 1m.
Registered specially for ask. Amazing!
What the fontname? Can you share ~/.Xdefaults plz (with terminal font-settings and colors)?
Offline
caffeinebasedlifeform wrote:i3wm and dzen
The fonts are boxxy and a modified version of M+ 1m.Registered specially for ask. Amazing!
What the fontname? Can you share ~/.Xdefaults plz (with terminal font-settings and colors)?
The font is based off of mplus-1m-medium which is available in the AUR. I had no idea what I was doing while editing it. But here is a copy of it: http://www.filefactory.com/file/6y2wvj9l0u5h/n/mped_ttf. The licence for Mplus grants modifications. The font name is mped.
Offline
Can you please upload your wallpaper somewhere so i can download it ? It's very nice . Thanks a lot !
Offline
Offline
Plain Spectrwm.
Made baraction.sh print the workspace indicator to the left and everything else to the right.
Nice to see a spectrwm shot in here. Would you mind sharing the entirety of your baraction.sh?
Thanks!
Offline
https://github.com/caikua/config/raw/master/thumb-scrot.png
Plain Spectrwm.
Made baraction.sh print the workspace indicator to the left and everything else to the right.
Holy shit !
You have to tell us how you did that black magic thing...
Offline
monsterwm + bar + mygtkmenu with my laptop!
Clean
http://dl.dropbox.com/u/32164608/Screenshots/03_cleanthumb.pngBusy
http://dl.dropbox.com/u/32164608/Screenshots/03_busythumb.png
where did the bar come from? and how to you place it in monsterwm?
brilliant, btw
Offline
bar is done by TheLemonMan, click here to see.
Here's my script to launch monsterwm etc. (copied and modified):
#!/usr/bin/env bash
wm=monsterwm
ff="/tmp/$RANDOM.monsterwm.fifo"
tags=('null' 'web' 'foo' 'Ø')
layouts=('T' 'M' 'B' 'G' 'F')
[[ -p $ff ]] || mkfifo -m 600 "$ff"
function statusbar {
# mpd status
music=$(mpc current)
[ -z "$music" ] && music="Stopped"
echo "\r\f4$music\fr \f8| \f9$(date +"%H:%M") "
}
while read -t 1 -r wmout || true; do
if [[ $wmout =~ ^(([[:digit:]]+:)+[[:digit:]]+ ?)+$ ]]; then
read -ra desktops <<< "$wmout"
tmp=
for desktop in "${desktops[@]}"; do
IFS=':' read -r d w m c u <<< "$desktop"
# Tags labels
label=${tags[$d]}
# Current desktop color and enclosing char (yes/no)
((c)) && fg="0" bg="1" lc="\u6 " rc=" \ur" && layout="\f8"["\f5"${layouts[$m]}"\f8"] || fg="9" bg="0" lc=" " rc=" "
# Has windows ?
((w)) && ((! c)) && fg="9" lc="\u5 " rc=" \ur"
# Urgent windows ?
((u)) && fg="0" bg="3" lc="\u4 " rc=" \ur"
tmp+="\f$fg\b$bg$lc$label$rc\fr\br"
done
tmp+=" $layout"
fi
echo "$tmp $(statusbar)"
done < "$ff" | bar &
$wm > "$ff"
rm $ff
config.def.h for bar
#define BAR_HEIGHT 15
#define BAR_FONT "-*-ohsnap.icons-medium-r-*-*-12-*-*-*-*-*-*-*"
#define BAR_UNDERLINE_HEIGHT 2
#define COLOR0 0x101112 /* background */
#define COLOR1 0xebebeb /* foreground */
#define COLOR2 0x262729
#define COLOR3 0xf92671
#define COLOR4 0xa6e22e
#define COLOR5 0xfd971f
#define COLOR6 0x34bdef
#define COLOR7 0x9e6ffe
#define COLOR8 0x5e7175
#define COLOR9 0xccccc6
Last edited by Shinryuu (2012-07-21 22:17:08)
Offline
That does look nice Shinryuu. I started playing with monster again. Here's what I have so far. The bar is splitter_bar from moetunes and conky.
edit: I changed things up a bit
Last edited by stlarch (2012-07-22 14:22:34)
Offline
monsterwm + bar + mygtkmenu with my laptop!
Clean
http://dl.dropbox.com/u/32164608/Screenshots/03_cleanthumb.pngBusy
http://dl.dropbox.com/u/32164608/Screenshots/03_busythumb.png
Most impressive shot ^^
Wallpaper also good.
Offline
monsterwm + bar + mygtkmenu with my laptop!
Clean
http://dl.dropbox.com/u/32164608/Screenshots/03_cleanthumb.pngBusy
http://dl.dropbox.com/u/32164608/Screenshots/03_busythumb.png
I love it. Would you post your configs by any chance? Also I'm assuming you have a good collection of wallpapers like the one you're using? I want some.
Edit: Derp. You are using Konachan.
Last edited by cirnOS (2012-07-22 07:13:41)
Offline
Oh, okay!
.Xresources colors/fonts (Cloudef's colors, just modified them a bit):
...
*foreground: #ebebeb
*background: #121212
!black
*color0: #1C1C1C
*color8: #4d4d4d
!red
*color1: #D81860
*color9: #F00060
!green
*color2: #B7CE42
*color10: #BDE077
!yellow
*color3: #FEA63C
*color11: #FFE863
!blue
*color4: #66AABB
*color12: #AACCBB
!magenta
*color5: #B7416E
*color13: #BB4466
!cyan
*color6: #5E7175
*color14: #A3BABF
!white
*color7: #DDEEDD
*color15: #6C887A
...
URxvt.font: -*-terminusmodx-medium-r-*-*-12-*-*-*-*-*-*-*
mygtkmenu entries:
item = Dwb
cmd = dwb
icon = null
item = Terminal
cmd = urxvtc
icon = null
SEPARATOR
submenu = Accessories
icon = null
item = Thunar
cmd = thunar
icon = null
item = Ranger
cmd = urxvtc -e ranger
icon = null
item = Xcalc
cmd = xcalc
icon = null
item = file-roller
cmd = file-roller
icon = null
item = 7zip
cmd = 7zFM
icon = null
submenu = Graphics
icon = null
item = GIMP
cmd = gimp
icon = null
submenu = Internet
icon = null
item = Dwb
cmd = dwb
icon = null
item = Firefox
cmd = firefox
icon = null
item = WeeChat
cmd = urxvtc -e weechat-curses
icon = null
submenu = Multimedia
icon = null
item = DeaDBeeF
cmd = deadbeef
icon = null
item = ncmpcpp
cmd = urxvtc -e ncmpcpp
icon = null
SEPARATOR
submenu = MPD
icon = null
item = MPD (On)
cmd = mpd
icon = null
item = MPD (Off)
cmd = sudo mpd -kill
icon = null
submenu = Tools
icon = null
submenu = Screenshot
icon = null
item = In .png format
cmd = scrot /home/shn/shot.png
icon = null
item = In .jpg format
cmd = scrot -q 99 /home/shn/shot.jpg
icon = null
item = Select area
cmd = import /home/shn/area.png
icon = null
item = Color Selection
cmd = zenity --color-selection
icon = null
SEPARATOR
item=Edit menu
cmd=urxvtc -e vim /home/shn/.menu
icon=null
SEPARATOR
item = Shutdown
cmd = sudo poweroff
icon = null
item = Reboot
cmd = sudo reboot
icon = null
Last edited by Shinryuu (2012-07-22 08:01:41)
Offline
That does look nice Shinryuu. I started playing with monster again. Here's what I have so far. The bar is splitter_bar from moetunes and conky.
http://ompldr.org/tZXRvMA
Nice, I was reading about the splitter_bar a day or two ago. If I remember correctly it was made because there was some problems with Some_sorta_bar and monsterwm. I'm pretty sure I'm going to give it a shot anytime soon
Offline
@zcal @CEPfister
spectrwm.conf:
...
bar_font = -*-tamsynmod-medium-r-*-*-14-*-*-*-*-*-*-*
bar_justify = left
bar_format = +2I +S +85<+83A | %a,%d.%b. | %H:%M # Total space left on my screen by the clock etc.: 83+85 characters
...
baraction.sh:
#!/bin/bash
# baraction.sh script for spectrwm status bar
print_battery() {
bat="$(acpi -b | awk 'sub(/,/,"") {print $4}'| sed 's/\,//')"
cable=`acpi -b | awk '{print $3}'`
if [ $cable == "Discharging," ]
then
stat="ð"
else
stat="Â"
fi
echo -ne "$stat $bat"
}
print_volume() {
volume="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
mute=`amixer get Master | grep "Mono:" | awk '{print $6}'`
if [ $mute == "[on]" ]
then
status="í"
else
status="ë"
fi
echo -ne "${status} ${volume}%"
}
print_song_info() {
song_info="$(ncmpcpp --now-playing '{{{{%a: }%t}}|{%f}}' | head -c 50)"
if [[ ! $song_info ]]
then
song_info="Not playing"
fi
echo -ne "ê ${song_info}"
}
SLEEP_SEC=1 # set bar_delay = 1 in /etc/spectrwm.conf
COUNT=0
#loops forever outputting a line every SLEEP_SEC secs
while :; do
bar="$(print_song_info) | $(print_volume) | $(print_battery)"
len="`echo $bar | wc -m`"
fill="`for i in $(seq $[80 - $len]); do echo -n ' '; done`"
echo -e "$fill $bar"
sleep $SLEEP_SEC
done
The main idea behind this script is that I know how many characters wide the entire bar is using a given font and how much space each command output uses.
The workspace number + tiling layout get adjusted to the left automatically, the clock has a fixed width, so the main thing I need to care about is the output width from print_volume() + print_battery() [8 chars each] and print_song_info(), which varies with every song played. So this required scripting intervention:
I noticed that for an overall baraction output lenght of 80 characters, the clock aligns with the right edge of the screen. So I calculate the current output lenght using wc -m and fill the bar with spaces until t reaches 80.
Since I adjustet the numbers to my laptop screen [1366x768] this is very likely not to work elsewhere without manual intervention.
Not an elegant solution at all, but it works. I'd be glad to hear any improvement suggestions.
Offline