You are not logged in.
awesome window manager
You ovah here, mind sharing mpd widget?
Offline
I decided I didn't want to waste screen space on double borders and borders on screen edges, so I came up with a patch that makes them overlap (à la monsterwm) and removes them on the edges of my monitor.
Nice! How did you get the clock in the middle?
Last edited by kaptenen (2013-03-13 11:47:01)
Offline
Lordii wrote:awesome window manager
You ovah here, mind sharing mpd widget?
sure , here is the config
Offline
^ looks great Unia, good idea.
Thanks!
I really like the colors of everything.
Hey what's this sysinfo? is it a script or something? because it looks pretty. just thought I'd say that
If you want the colors and the script (which is basically just a slimmed down screenfetch):
!212Adwaita
URxvt*background: #283A3F
!URxvt.background: [80]#000000
URxvt.foreground: #8C8C8C
URxvt.cursorColor: #8C8C8C
!URxvt*fading: 20
!URxvt*fadeColor: #002b36
!black
*color0: #0F2328
*color8: #073642
!red
*color1: #DC322F
*color9: #F54844
!green
*color2: #93C724
*color10: #B7CE42
!yellow
*color3: #FFA905
*color11: #F2B643
!blue
*color4: #00335D
*color12: #16596A
!magenta
*color5: #ED2087
*color13: #DE6EA4
!cyan
!*color6: #404040
*color6: #605D5D
*color14: #834394
!white
*color7: #F2F1F0
*color15: #F9F9F9
#!/usr/bin/env bash
#
# screenFetch
#
# Script to fetch system and theme settings for screenshots in most mainstream
# Linux distributions.
#
# This script is released under the General Public License (GPL). Though it's open
# source and you are free to do with it as you please, I would appreciate if you would
# send any code modifications/additions upstream to me so that I can include them in
# the official release. Please do not claim this code as your own as I have worked
# very hard on this and am quite proud to call this script my own.
#
scriptVersion="1.0"
######################
# Settings for fetcher
######################
# This sets the information to be displayed.
# Available: user host, kernel, DE, WM, theme, font, uptime, pkgs, shell, theme, font.
display=(user host kernel de wm theme font uptime pkgs shell theme font)
#To get just the information, and not a text-art logo, use TEXT in the below variable.
display_type="ASCII"
# Colors to use for the information found. If you would like to set your OWN color scheme for these, uncomment the lines below and edit them to your heart's content.
textcolor="\e[0;37m" # Color of variable variables in TEXT, e.g. the output
labelcolor="\e[1;34m" # Color of static variables in TEXT, e.g. "User"/"Host"
c0="\033[0m" # Reset Text
c1="\e[1;34m" # Light color in ASCII
c2="\e[1;37m" # Dark color in ASCII
bold="\033[1m" # Bold Text
# WM & DE process names
wmnames="fluxbox openbox blackbox xfwm4 mutter metacity kwin icewm pekwm fvwm dwm awesome wmaker stumpwm musca i3 xmonad ratpoison scrotwm spectrwm wmfs wmii beryl subtle e16 enlightenment sawfish emerald monsterwm dminiwm compiz herbstluftwm"
denames="gnome-session xfce-mcs-manage xfce4-session xfconfd ksmserver lxsession gnome-settings-daemon mate-session mate-settings-daemon Finder"
function errorOut () {
echo -e "\033[1;37m[ \033[1;31m! \033[1;37m] \033[0m$1"
}
#####################
# Begin Flags Phase
#####################
while getopts ":hvn:" flags; do
case $flags in
h)
echo -e "${bold}Usage${c0}: screenFetch [OPTIONAL FLAGS]"
echo ""
echo "screenFetch - a CLI Bash script to show system/theme info in screenshots."
echo ""
echo -e "${bold}Supported Desktop Managers${c0}: KDE, GNOME, XFCE, and LXDE, and Not Present"
echo -e "${bold}Supported Window Managers${c0}: PekWM, OpenBox, FluxBox, BlackBox, Xfwm4,"
echo -e " Mutter, Metacity, StumpWM, KWin, IceWM, FVWM,"
echo -e " DWM, Awesome, XMonad, Musca, i3, WindowMaker,"
echo -e " Ratpoison, wmii, WMFS, ScrotWM, SpectrWM,"
echo -e " subtle, Emerald, E17 and Beryl."
echo ""
echo -e "${bold}Options${c0}:"
echo -e " ${bold}-n${c0} Do no display ASCII distribution logo."
echo -e " ${bold}-v${c0} Display current script version."
echo -e " ${bold}-h${c0} Display this help."
exit
;;
v)
echo -e "$bold ScreenFetch"$c0" - Version $scriptVersion"
echo "Created by and licensed to Brett Bohnenkamper (kittykatt@silverirc.com)"
echo ""
echo "This is free software; see the source for copying conditions. There is NO warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
exit
;;
n) display_type="TEXT";;
:) errorOut "Error: You're missing an argument somewhere. Exiting."; exit 1;;
?) errorOut "Error: Invalid flag somewhere. Exiting."; exit 1;;
*) errorOut "Error"; exit 1;;
esac
done
###################
# End Flags Phase
###################
#########################
# Begin Detection Phase
#########################
# User detection
detectuser () {
user=${USER}
}
# Host detection
detecthost () {
host=${HOSTNAME}
}
# Kernel detection
detectkernel () {
kernel=`echo $(uname -mr)`
}
# Uptime detection - begin
detectuptime () {
uptime=$(</proc/uptime)
uptime=${uptime//.*}
secs=$((${uptime}%60))
mins=$((${uptime}/60%60))
hours=$((${uptime}/3600%24))
days=$((${uptime}/86400))
uptime="${mins}m"
if [ "${hours}" -ne "0" ]; then
uptime="${hours}h ${uptime}"
fi
if [ "${days}" -ne "0" ]; then
uptime="${days}d ${uptime}"
fi
}
# Uptime detection - end
# Package count
detectpkgs () {
pkgs=$(pacman -Qq | wc -l)
}
# Shell detection
detectshell () {
shell=$(ps -p $(ps -p $PPID -o pid --no-heading) -o cmd --no-heading)
shell=${shell/-}
}
# DE detection - begin
detectde () {
DE="Not Present"
if [[ -n $( type -p xprop ) ]];then
xprop_root="$( xprop -root 2>/dev/null )"
fi
if [[ -n $xprop_root && -n $( grep -is '^_MUFFIN' <<< "$xprop_root" ) ]]; then
DE="Cinnamon"
elif [[ -n $xprop_root && -n $( grep -is '^_MARCO' <<< "$xprop_root" ) ]];then
DE="Mate"
elif [[ -n $GNOME_DESKTOP_SESSION_ID ]]; then
DE="Gnome"
elif [[ $KDE_SESSION_VERSION == '5' ]]; then
DE="KDE5"
elif [[ $KDE_SESSION_VERSION == '4' ]]; then
DE="KDE4"
elif [[ $KDE_FULL_SESSION == 'true' ]]; then
DE="KDE"
elif [[ -n $( grep -Eis '\"xfce4\"' <<< "$xprop_root" ) ]];then
DE="XFCE4"
elif [[ -n $( grep -is '\"xfce5\"' <<< "$xprop_root" ) ]];then
DE="XFCE5"
fi
}
# DE detection - end
# WM detection - begin
detectwm () {
WM="Not Found"
userID="$(id -u ${USER})"
for each in $wmnames; do
PID="$(pgrep -U ${userID} $each)"
if [ "$PID" ]; then
case $each in
'fluxbox') WM="FluxBox";;
'openbox') WM="OpenBox";;
'blackbox') WM="Blackbox";;
'xfwm4') WM="Xfwm4";;
'mutter') WM="Mutter";;
'metacity') WM="Metacity";;
'kwin') WM="KWin";;
'icewm') WM="IceWM";;
'pekwm') WM="PekWM";;
'fvwm') WM="FVWM";;
'dwm') WM="DWM";;
'awesome') WM="Awesome";;
'wmaker') WM="WindowMaker";;
'stumpwm') WM="StumpWM";;
'xmonad') WM="XMonad";;
'musca') WM="Musca";;
'i3') WM="i3";;
'ratpoison') WM="Ratpoison";;
'scrotwm') WM="ScrotWM";;
'spectrwm') WM="SpectrWM";;
'wmfs') WM="WMFS";;
'wmii') WM="wmii";;
'subtle') WM="subtle";;
'e16') WM="E16";;
'enlightenment') WM="E17";;
'emerald') WM="Emerald";;
'sawfish') WM="Sawfish";;
'beryl') WM="Beryl";;
'monsterwm') WM="monsterwm";;
'dminiwm') WM="dminiwm";;
'compiz') WM="Compiz";;
'Finder') WM="Quartz Compositor";;
'herbstluftwm') WM="herbstluftwm";;
'cinnamon') WM="Cinnamon";;
esac
fi
done
}
# WM detection - end
# GTK theme detection - begin
detecttheme () {
theme="Not Found"
case $DE in
*) # Lightweight or No DE Found
if which gsettings >/dev/null 2>&1; then # First try see if GTK3 is being used
#if [ $? -eq 0 ]; then theme=$(gsettings get org.gnome.desktop.interface gtk-theme | tr -d "'");
if [ -f $HOME/.config/gtk-3.0/settings.ini ]; then
if grep -q gtk-theme-name $HOME/.config/gtk-3.0/settings.ini; then
theme=$(awk -F'=' '/gtk-theme-name/ {print $2}' $HOME/.config/gtk-3.0/settings.ini)
fi
fi
else [ -f $HOME/.gtkrc-2.0 ];
if grep -q gtk-theme $HOME/.gtkrc-2.0; then
theme=$(awk -F'"' '/gtk-theme/ {print $2}' $HOME/.gtkrc-2.0)
fi
fi
# $HOME/.gtkrc.mine theme detect only
if [ -f $HOME/.gtkrc.mine ]; then
if grep -q "^include" $HOME/.gtkrc.mine; then
theme=$(grep '^include.*gtkrc' $HOME/.gtkrc.mine | awk -F "/" '{ print $5 }')
fi
fi
;;
'KDE') # Desktop Environment found as "KDE"
if [ -a $HOME/.kde/share/config/kdeglobals ]; then
if grep -q "widgetStyle=" $HOME/.kde/share/config/kdeglobals; then
theme=$(awk -F"=" '/widgetStyle=/ {print $2}' $HOME/.kde/share/config/kdeglobals)
elif grep -q "colorScheme=" $HOME/.kde/share/config/kdeglobals; then
theme=$(awk -F"=" '/colorScheme=/ {print $2}' $HOME/.kde/share/config/kdeglobals)
fi
fi
;;
'Cinnamon')
if which gsettings >/dev/null 2>&1; then
theme=$(gsettings get org.gnome.desktop.interface gtk-theme | tr -d "'")
fi
;;
'GNOME'|'MATE') # Desktop Environment found as "GNOME"
# (Gnome 3.0+)
if which gsettings >/dev/null 2>&1; then
theme=$(gsettings get org.gnome.desktop.interface gtk-theme | tr -d "'")
elif which gconftool-2 >/dev/null 2>&1; then
theme=$(gconftool-2 -g /desktop/gnome/interface/gtk_theme)
fi
;;
'XFCE') # Desktop Environment found as "XFCE"
if which xfconf-query >/dev/null 2>&1; then
theme=$(xfconf-query -c xsettings -p /Net/ThemeName)
fi
;;
'LXDE')
if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/lxde/config ]; then
lxdeconf="/lxde/config"
else
lxdeconf="/lxsession/LXDE/desktop.conf"
fi
# TODO: Clean me.
if grep -q "sNet\/ThemeName" ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf; then
theme=$(awk -F'=' '/sNet\/ThemeName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf)
fi
;;
esac
}
# GTK theme detection - end
# Font detection - begin
detectfont () {
font="Not Found"
case $DE in
*) # Lightweight or No DE Found
if which gsettings &>/dev/null 2>&1; then # First try see if GTK3 is being used
font=$(gsettings get org.gnome.desktop.interface font-name | tr -d "'");
elif [ -f $HOME/.config/gtk-3.0/settings.ini ]; then
if grep -q gtk-font-name $HOME/.config/gtk-3.0/settings.ini; then
font=$(awk -F'=' '/gtk-font-name/ {print $2}' $HOME/.config/gtk-3.0/settings.ini)
fi
else [ -f $HOME/.gtkrc-2.0 ];
if grep -q font $HOME/.gtkrc-2.0; then
gtkfont=$(awk -F'"' '/gtk-font-name/ {print $2}' $HOME/.gtkrc-2.0)
fi
fi
;;
'KDE') # Desktop Environment found as "KDE"
if [ -a $HOME/.kde/share/config/kdeglobals ]; then
if grep -q "Font=" $HOME/.kde/share/config/kdeglobals; then
font=$(awk -F"=" '/font=/ {print $2}' $HOME/.kde/share/config/kdeglobals)
fi
fi
;;
'GNOME'|'MATE') # Desktop Environment found as "GNOME"
# (Gnome 3.0+)
if which gsettings >/dev/null 2>&1; then
font=$(gsettings get org.gnome.desktop.interface font-name | tr -d "'")
elif which gconftool-2 >/dev/null 2>&1; then
font=$(gconftool-2 -g /desktop/gnome/interface/font_name)
fi
;;
'XFCE') # Desktop Environment found as "XFCE"
if which xfconf-query >/dev/null 2>&1; then
font=$(xfconf-query -c xsettings -p /Gtk/FontName)
fi
;;
'LXDE')
if [ -f ${XDG_CONFIG_HOME:-${HOME}/.config}/lxde/config ]; then
lxdeconf="/lxde/config"
else
lxdeconf="/lxsession/LXDE/desktop.conf"
fi
# TODO: Clean me.
if grep -q FontName ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf; then
font=$(awk -F'=' '/sGtk\/FontName/ {print $2}' ${XDG_CONFIG_HOME:-${HOME}/.config}$lxdeconf)
fi
;;
esac
}
# Font detection - end
##################
# Let's Do This! #
##################
asciiText () {
startline="0"
fulloutput=(
"${c1} _ _ _ "
"${c1} __ _ _ __ ___| |__ | (_)_ __ _ ___ __ "
"${c1} / _\` | '__/ __| '_ \| | | '_ \| | | \ \/ / "
"${c1} | (_| | | | (__| | | | | | | | | |_| |> < "
"${c1} \__,_|_| \___|_| |_|_|_|_| |_|\__,_/_/\_\ "
" "
"${c2} A simple, lightweight Linux distribution. ")
n=${#fulloutput[*]}
for ((i=0;i<n;i++)); do
printf "${fulloutput[i]}$c0\n"
done
}
infoDisplay () {
if [[ "${display[@]}" =~ "user" ]]; then myuser=$(echo -e "$labelcolor User: $textcolor ${user}"); fi
if [[ "${display[@]}" =~ "host" ]]; then myhost=$(echo -e "$labelcolor Host: $textcolor ${host}"); fi
if [[ "${display[@]}" =~ "kernel" ]]; then mykernel=$(echo -e "$labelcolor Kernel:$textcolor $kernel"); fi
if [[ "${display[@]}" =~ "uptime" ]]; then myuptime=$(echo -e "$labelcolor Uptime:$textcolor $uptime"); fi
if [[ "${display[@]}" =~ "pkgs" ]]; then mypkgs=$(echo -e "$labelcolor Packages:$textcolor $pkgs"); fi
if [[ "${display[@]}" =~ "shell" ]]; then myshell=$(echo -e "$labelcolor Shell:$textcolor $shell"); fi
if [ "$DE" != "Not Present" ]; then
if [[ "${display[@]}" =~ "de" ]]; then myde=$(echo -e "$labelcolor DE:$textcolor $DE"); fi
fi
if [[ "${display[@]}" =~ "wm" ]]; then mywm=$(echo -e "$labelcolor WM:$textcolor $WM"); fi
if [[ "${display[@]}" =~ "theme" ]]; then mytheme=$(echo -e "$labelcolor Theme:$textcolor $theme"); fi
if [[ "${display[@]}" =~ "font" ]]; then myfont=$(echo -e "$labelcolor Font:$textcolor $font"); fi
if [[ "$display_type" == "ASCII" ]]; then
asciiText
fi
echo -e "$myuser"
echo -e "$myhost"
echo -e "$mykernel"
echo -e "$myuptime"
echo -e "$myshell"
echo -e "$myde"
echo -e "$mywm"
echo -e "$mytheme"
echo -e "$myfont"
echo -e ""
}
for i in "${display[@]}"; do
[[ "${display[*]}" =~ "$i" ]] && detect${i}
done
infoDisplay
exit 0
Nice! How did you get the clock in the middle?
With a patch https://github.com/Unia/DWM/blob/master … clock.diff
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Offline
Trying Openbox after using DWM for a very long time. I haven't made a switch. A recent accident injured my hand and it is very difficult to use keyboard with a plaster on your right hand. . So for the sake of mouse friendliness :
[Clean]
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline
Trying Openbox after using DWM for a very long time. I haven't made a switch. A recent accident injured my hand and it is very difficult to use keyboard with a plaster on your right hand. . So for the sake of mouse friendliness :
http://i.imgur.com/dJ7Xljy.png
[Clean]
would you mind sharing your wallpaper?
panta rei
Offline
@ yoklar
Sure !
Here it is.
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline
Offline
@Lordii thanks :-)
Hey how where did you find those beautiful 3d letters? They're amazing :3
(you, people, are probably thinking that I'm obssesed with scripts, lol)
If you want the colors and the script (which is basically just a slimmed down screenfetch)
Thank you very much for everything )))
Last edited by flyingfree (2013-03-14 06:38:34)
Offline
Hey how where did you find those beautiful 3d letters?
I imagine those were generated using a tool like figlet or similar. There are fonts available for it that consist of 3D isometric letters like that.
Offline
Hey how where did you find those beautiful 3d letters?
I imagine those were generated using a tool like figlet or similar. There are fonts available for it that consist of 3D isometric letters like that.
You were right, that was it! Thank you, kindly.
Offline
Aye. The tool in question was envee.
Offline
@blackcodec
Oh that was a gif animation. Are you using that recorder.py for recording your desktop? There's also a tool called byzanz to record desktops as well.
Hey, that's looking beautiful..(though I still prefer your Monster II colourscheme
What's this Berry font of which you speak?
Thanks dude! I also grabbed some of your scripts from few pages back because they looked interesting. Berry is a font done by a person called spectrum and you can get it from here
Last edited by Shinryuu (2013-03-14 12:11:17)
Offline
@flyingfree: You can use this website too: http://www.network-science.de/ascii/
Offline
@flyingfree: You can use this website too: http://www.network-science.de/ascii/
Thanks, Ypnose.
If I can say so; people here on this forum are really friendly and helping. Thanks!
Offline
Offline
Offline
@blackcodec
Oh that was a gif animation. Are you using that recorder.py for recording your desktop? There's also a tool called byzanz to record desktops as well.
Yes, i use recorder.py that is only a simple gui that i have wrote for launch byzanz-recorder with parameters
@i_love_penguin
great work... i like your look of icewm, but is all icewm with its panel or with another?
Last edited by blackcodec (2013-03-14 15:10:11)
Offline
great work... i like your look of icewm, but is all icewm with its panel or with another?
That is the IceWM panel. You can configure it to a certain level - like nearly everyhing in IceWM can be configured
Offline
hi there, i have recent installed archlinux on my acer laptop this it s my screenshot whit kde 4.10 yakuake and pacman in action
-- mod edit: read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754 [jwr] --
Last edited by hectorlopez (2013-03-14 19:26:13)
Offline
Offline
Would you mind sharing configuration on how you get the lyrics and album art (is it tmux or similar?)
/Johan
PS Excellent taste in music by the way ;-)
Offline