Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

Minimal Tools on Arch Linux

$
0
0

Minimal Tools on Arch Linux

Some people use old comupters so they can’t use KDE, Gnome and etc and they mostly use some windows Managers like OpenBox, I3wm and etc with some other Terminal Apps, in this post we are going to talk about I3wm, OpenBox, Xmonad, etc and how people can live in Terminal and using Terminal Music players, Terminal File Managers!


Minimal Tools on Arch Linux
I3wm on Arch linux:

For installing I3wm on Arch Linux use this command:

sudo pacman -S i3

In the command above i3 is a Group Package which will install “ i3-status “, “ i3-lock ” and “ i3-wm “, I3lock is customizable as an example “ i3-fancy Lock ” that also can be found in Terminal is a good look i3lock that you can use, here is the screenshot:


Minimal Tools on Arch Linux

If you wanna install this lock you can use following command in terminal:

yaourt -S i3lock-fancy-git

After installing it you should use this command to run it:

i3lock-fancy

Running a lock in Terminal for i3wm is a little foolish move so let’s make a shortcut for it, use “ nano ” to open i3wm config file:

nano ~/.config/i3/config

Now add following lines in your file config for i3lock-fancy shortcut to be started with $mod+l :

# lock bindsym $mod+l exec i3lock-fancy

Now restart your i3wm and enjoy your lock!

Xmonad on Arch Linux:

Xmonad is a lightweight Windows Manager which has been written with Haskell, for installing this Windows Manager use this command:

sudo pacman -S xmonad xmonad-contrib

Here you can see one of it’s screenshots:


Minimal Tools on Arch Linux
Minimal Tools on Arch Linux

(Xmonad Screenshots are from Anant Paatra)

you can see other Screenshots on the Internet!

OpenBox on Arch Linux:

OpenBox is also hightly customizable Windows Manager and it has lot of fans around the world, this Windows Manager can be installed by this command:

sudo pacman -S openbox

With following command you can install “tint2” which is a configurable menu and “obconf” which can Help you to customize OpenBox:

sudo pacman -S tint2 obconf

Here you can see screenshot:


Minimal Tools on Arch Linux

Use this command to make a directory for OpenBox file config:

mkdir -p ~/.config/openbox

Now copy OpenBox config files there:

cp /etc/xdg/openbox/{rc.xml,menu.xml,autostart.sh} ~/.config/openbox

Now by going in ~/.config/openbox you can make some changes in your OpenBox.

Terminal Music Players:

There are different Terminal Music Players but my favorite ones are Cmus and Mocp, these two Terminal Music Players can be customized and they both are in Official Arch Linux Repositories so install Cmus with this command:

sudo pacman -S cmus

Now let’s put a theme for it, Solarized is a good theme which you can see it’s screenshot here:


Minimal Tools on Arch Linux

For having this theme, first make Cmus config’s directory in /home/$USER, following code will help:

mkdir -p $HOME/.cmus

Now make a text file there:

touch $HOME/.cmus/solarized.theme

Open file with nano:

nano $HOME/.cmus/solarized

Copy following lines in that empty file:

# colors from solarized: http://ethanschoonover.com/solarized # default text color set color_win_fg=default # overall background color set color_win_bg=default # command-line colors set color_cmdline_bg=default set color_cmdline_fg=default set color_error=160 set color_info=136 set color_separator=240 # bottom status line set color_statusline_bg=0 set color_statusline_fg=37 # bottom title line set color_titleline_bg=0 set color_titleline_fg=136 # top title area set color_win_title_bg=0 set color_win_title_fg=64 ##### playing file colors ###################################################### # unselected currently playing track's text set color_win_cur=33 # active selection for currently playing track set color_win_cur_sel_bg=0 set color_win_cur_sel_fg=33 # inactive selection for currently playing track set color_win_inactive_cur_sel_bg=default set color_win_inactive_cur_sel_fg=125 ##### non-playing file colors ################################################## # active selection set color_win_sel_bg=0 set color_win_sel_fg=166 # inactive selection set color_win_inactive_sel_bg=default set color_win_inactive_sel_fg=125 ##### file browser view colors ################################################# # directory listing color set color_win_dir=33

Now run Cmus and use this command in that:

:colorscheme solarized

Another nice Terminal Music Player you may like can be “ Moc “, install it with this command:

sudo pacman -S moc

Here you can see a screenshot with a Darkdot Theme:


Minimal Tools on Arch Linux
For running Moc you should use mocp command in terminal but if you want it to be started with Darkdot Theme you should use following code: mocp -T darkdot_theme

Users can’t always use this long command to get Moc with Darkdot Theme so we can use alias, then each time we use mocp command we get our MOC with Darkdot Theme, so open .bashrc file:

nano $HOME/.bashrc

Now add this line to the file:

alias mocp='mocp -T darkdot_theme'

Save and close the Terminal, from now when ever you enter mocp command in terminal mocp -T darkdot_theme will be excuted!

Terminal File Managers:

In this part of tutorials we are going to cover some Terminal File Managers like Ranger, MC,Vifm, Among these three Terminal File Managers I personally prefer Ranger but they are all good file managers that you can easily make directory, rename, remove, copy and move your files and you also can enter some commands in them like vim!!

Ranger:

For installing Ranger use following command:

sudo pacman -S ranger

Here you can see some screenshots of Ranger:


Minimal Tools on Arch Linux
Minimal Tools on Arch Linux

Ranger is lightweight Terminal File Manager that you also can enter some command in it, for entering command just like vim and vi editor first put : and then enter your command for example:

:touch somefile.txt

You can use arrow keys to go in different directories in Ranger, and when you use Enter key on a file if it is music or video it will be played with Mplayer, if you Enter on a text file, Ranger aks you :open_with then you can write nano or vim or etc to open with!

MC:

Install MC with this code:

s

Viewing all articles
Browse latest Browse all 11063

Trending Articles