Minimalism: My Musca desktop environment

Source: Internet
Author: User

Now I have a very simple and practical desktop environment: Musca + conky + trayer.

Of course, dmenu is required for Musca runtime, which is not a non-dmenu. It is said thatDzenYes. I am using dmenu.

Let's put one on my desktop first.



My Musca configurations

Musca is my favorite tiled Window Manager recently. I have introduced how to install and use it here. Today, we will mainly introduce its configuration, that is, in. Musca_startWhich commands are run after Musca is started:

# Tell Musca not to manage the Windows manage of conky and trayer off trayermanage off conky # Start conky and trayerexec conky # To facilitate display on the webpage, I split the trayer command into three lines, # copy and splice it into a row exec trayer -- edge top -- align right -- widthtype request -- height 20 -- setdocktype true -- transparent true -- Alpha 255 -- tint 0x00ff00 # Set the border color of the focused Frame orange, set border_focus Orange # if there is no frame, the newly started program will automatically open it in the empty frame, which is convenient for set window_open_frame empty # You do not need to click, when the mouse passes, the window will focus on set focus_follow_mouse 1 # Set the dmenu startup command, I am using self-compiled dmenuset dmenu/usr/local/bin/dmenu-I-B-fa Sans-12-p $ # Because I Don't Have xterm, so bind mod4 + T to start the default terminal bind off mod4 + tbind on mod4 + T exec X-terminal-emulator # Press mod4 + Q to exit Musca, I don't know why bind on mod4 + q quit # Press mod1 (here I am alt) + arrow keys move selected window bind on mod1 + left slide leftbind on mod1 + right slide rightbind on mod1 + up slide upbind on mod1 + down slide down # Press mod4 + number key to quickly switch to the Working Group bind on mod4 + 1 use 0 bind on mod4 + 2 use 1 bind on mod4 + 3 USE 2 bind on mod4 + 4 Use 3 bind on mod4 + 5 Use 4 # determine active range, set aside 20 pixels on the screen for conky and trayerpad 0 0 20 0 hook on ^ add Pad 0 0 20 0 # Add a working group called Web and load the window layout I exported, use add webload to access the Internet. mweb # Switch to the first working group use 0 load. mdefault

 

Use Musca conky Configuration

You can see that my conky shows the window list of the current Working Group. How can this be achieved? Conky can use$ {Exec cmd}Displays the CMD output. And we canMusca-C 'show windows'Output the window list of the current group, but the output format is one row for each window. This is not what we want. We can use awk to process this string. In combination:$ {Exec Musca-C 'show Windows' | awk '{printf "| % s", $0 }'}

For your reference, I have pasted my entire conky configuration file below.

# Jiqing's conky configuration # Set to yes if you want conky to be forked in the backgroundbackground no # Use xft fonts use_xft yes # default xft fonts xftfont sans: size = 10 # text Alpha when using xftxftalpha 1.0 # update_interval 8.0 # update times every 8 seconds. If it is set to 0, total_run_times is always updated. 0 # Use the desktop, do not use your own window own_window no # If own_window is yes, you may use Type Normal, desktop or overrideown_window_type desktop # use pseudo transparency wit H own_window? Own_window_transparent yes # If own_window_transparent is set to no, you can set the background color into black # If own_window is yes, these window manager hints may be used # own_window_hints undecorated, below, sticky, skip_taskbar, skip_pager # Use double buffering to avoid blinking double_buffer yes # minimum size of text areaminimum_size 500 18maximum_width 1340 # Draw shades? Draw_shades no # draw outlines? Draw_outline no # it's cool to make conky have borders. draw_borders yes # draw borders around graphsdraw_graph_borders no # use solid borders, no need to draw a line between no # border between 3 # border widthborder_width 1 # define some colors color0 whitecolor1 yellowdefault_color between Black # text alignment, other possible values are between top_left # gap between borders of Screen D text # Same thing as passing-X at command linegap_x 0gap_y 2 # subtract file system buffers from used memory? No_buffers yes # Set to yes if you want all text to be in uppercaseuppercase no # Number of CPU samples to average # set to 1 to disable averagingcpu_avg_samples 2 # Number of net samples to average # Set to 1 to disable averagingnet_avg_samples 2 # force utf8? Note that utf8 support required xftoverride_utf8_locale yes # Add spaces to keep things from moving about? This only affects certain objects. # use_spacer noneuse_spacer left # maximum size of buffer for user text, I. e. below text line. # max_user_text 16384 # allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) # min_port_monitors 16 # allow each port monitor to track at least this role connections (if 0 or not set, default is 256) # min_port_monitor_connections 256 # variable is given either in format $ variable or in $ {Variable }. latter # allows characters right after the variable and must be used in network # stuff because of an argument # stuff after 'text' will be formatted on screen # To facilitate display on webpages, I divide the conky output content into multiple lines. # If you want to display the content in one line as I do, splice the text content into a line of text $ {font bistream Vera sans Mono: size = 10: bold }$ {color green }$ {time % Y % m month % d % H: % m} $ font $ color | $ color0 boot time: $ color1 $ uptime_short $ color | $ color0 CPU: $ color1 $ CPU % $ color | $ color0 memory: $ color1 $ MEM/$ memmax $ {font sans: size = 9 }$ {color pink }$ {exec Musca-C 'show Windows' | awk '{printf "| % s", $0 }'}

 


Finally, it is not very difficult to use the manual tiled window manager. In most cases, you do not need to use the floating window mode, as long as you reasonably arrange the window layout,GimpYou can use it comfortably.

 

Minimalism: My Musca desktop environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.