Page 271 of 293

Re: What does your desktop look like?

Posted: 2018-06-17 14:21
by Head_on_a_Stick
Image

That's the "upgraded" [sic] 256-colour version of Ultima IV, I much prefer the original version :evil:

Re: What does your desktop look like?

Posted: 2018-06-17 16:46
by Wheelerof4te
Guess what?
It's Slackware's KDE4! I got to the desktop, yay :D
Image

Re: What does your desktop look like?

Posted: 2018-06-30 12:52
by None1975
Wmii in Debian 9.4. Faster than i3wm and much lighter on system than i3wm.
Image
Clean:
Image
Busy:
Image
Only 402 Mb. of ram with open programs, among which the hardest is Firefox...
Image

Re: What does your desktop look like?

Posted: 2018-07-01 15:29
by aldorgan
My Debian 9.4 desktop with MATE :)
Image

Re: What does your desktop look like?

Posted: 2018-07-11 12:56
by bester69
Image

Re: What does your desktop look like?

Posted: 2018-07-11 13:22
by debiman
^ it looks just like a Windows desktop!
:mrgreen:

Re: What does your desktop look like?

Posted: 2018-07-11 13:48
by Wheelerof4te

Re: What does your desktop look like?

Posted: 2018-07-11 14:04
by bester69
debiman wrote:^ it looks just like a Windows desktop!
:mrgreen:
And you love it.. :mrgreen:

Re: What does your desktop look like?

Posted: 2018-08-03 19:35
by Head_on_a_Stick
Image

Changed x-terminal-emulator to suckless' sublime st (with the scrollback patches applied), it's not much lighter than xterm but the code base is an order of magnitude smaller.

Re: What does your desktop look like?

Posted: 2018-08-04 13:14
by None1975
Head_on_a_Stick wrote:Changed x-terminal-emulator to suckless' sublime st (with the scrollback patches applied), it's not much lighter than xterm but the code base is an order of magnitude smaller.
Really nice resource usage and start up time.

Re: What does your desktop look like?

Posted: 2018-08-04 18:52
by Head_on_a_Stick
None1975 wrote:Really nice resource usage and start up time.
Yeah, it's almost as quick & light as rxvt-unicode in daemon-client mode (but not quite).

Anyway, who needs terminal emulators when there's a getty available?

Image

:mrgreen:

EDIT: that's a TTY (agetty) screen (no X) running tmux split into four windows (clockwise from top left): htop, lynx, an mksh shell session & crawl.

Re: What does your desktop look like?

Posted: 2018-08-05 00:09
by ruffwoof
Anyway, who needs terminal emulators when there's a getty available?
.
.
that's a TTY (agetty) screen (no X) running tmux split into four windows (clockwise from top left): htop, lynx, an mksh shell session & crawl.
Personally I prefer multiple tmux windows (each windows maximised and flip between them (I've set F12 for that)) over that of tmux with a window split into panes, zooming/restoring panes as desired.

A neat (IMO) alternative to the ctrl-b tmux command key sequence is to map the back-tick/execute key to that, but set it so two presses actually prints the backtick.

.tmux.conf entry of

unbind C-b
set-option -g prefix `
bind ` send-prefix

mc is a nice addition to tmux (editor and file manager).

I use a script to start tmux and launch multiple windows ...

Code: Select all

#!/bin/sh
# If tmux session called "work" isn't already running then
if (! tmux has-session -t "work" 2> /dev/null); then

    # Create a tmux session called work, and deattach so we can send keys to it
    tmux new -s work -d
    tmux rename-window -t work shell

    # Add another tmux window, rename it to mc and load mc
    tmux new-window -t work
    tmux rename-window -t work mc
    tmux send-keys -t work 'mc' C-m

    # and finally select which window to attach to (:0) and attach
    tmux select-window -t work:0
    tmux attach -t work

fi
and in .tmux.conf set the status bar to be at the top of screen

Code: Select all

set -g status-position top
Mostly on the X (user) side I run a browser with the tabs at the top, so having multiple tmux windows also with their 'tabs' at the top keeps things more consistent. Ctrl-Alt-Fn between console (root running tmux with multiple windows) and browser (multiple tabs). Storing data/docs under root (isolated from internet facing X programs).

This is my full .tmux.conf, console colours fit well with the mc gotar theme IMO.

Code: Select all

# set control key to backtick but also send it i.e. if hit twice then prints the backtick
unbind C-b
set-option -g prefix `
bind ` send-prefix

bind -T copy-mode-vi PageDown          send-keys -X page-down
bind -T copy-mode-vi PageUp            send-keys -X page-up

# mc uses F1 to F10, so moved up to F11 and F12
bind-key -n F12 next-window
bind-key -n F11 new-window
#bind-key -n F3 kill-window

# Console tmux and this has - and | instead of ? for borders
# UTF-8 must be off
set-option -g terminal-overrides ',*vt*:enacs@:smacs@:rmacs@:acsc@' 

# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

## switch panes using Alt-arrow without prefix
#bind -n M-Left select-pane -L
#bind -n M-Right select-pane -R
#bind -n M-Up select-pane -U
#bind -n M-Down select-pane -D

######################
### DESIGN CHANGES ###
######################

## loud or quiet?
#set-option -g visual-activity off
#set-option -g visual-bell off
#set-option -g visual-silence off
#set-window-option -g monitor-activity off
#set-option -g bell-action none

#  modes
#setw -g clock-mode-colour colour2
setw -g clock-mode-colour yellow
setw -g mode-attr bold
setw -g mode-fg colour1
setw -g mode-bg colour18

# panes
set -g pane-border-bg colour0
set -g pane-border-fg colour19
set -g pane-active-border-bg colour0
set -g pane-active-border-fg colour9

# statusbar
set -g status-position top
set -g status-justify left
set -g status-bg colour18
#set -g status-fg colour137
set -g status-fg white
#set -g status-attr dim
set -g status-left ''
#set -g status-right '#[fg=colour233,bg=colour19,bold] %d/%m #[fg=colour233,bg=colour8,bold] %H:%M:%S '
#set -g status-right '#[fg=colour137,bg=colour19,bold] %D/%M/%Y #[fg=colour137,bg=colour8,bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20

setw -g window-status-current-fg colour1
setw -g window-status-current-bg colour19
setw -g window-status-current-attr bold
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '

setw -g window-status-fg colour9
setw -g window-status-bg colour18
setw -g window-status-attr none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '

setw -g window-status-bell-attr bold
setw -g window-status-bell-fg colour255
setw -g window-status-bell-bg colour1

# messages
set -g message-attr bold
set -g message-fg colour232
set -g message-bg colour16

#hilite current window
set-window-option -g window-status-current-bg red
set-window-option -g window-status-current-fg yellow
Can't show a snapshot as I can't take one of the console. I do have a script that snaps the current tmux window text and loads that into vi

Code: Select all

#!/bin/sh
tmux capture-pane -J -p -t $TMUX_PANE >/tmp/file.txt
vi /tmp/file.txt
The other good thing about tmux is being able to scroll, cut/paste etc. Along with being able to attach/detatch ... and later attach again from a different device (or have two or more of you ssh into the same userid and attach to the same tmux session - collaboration where you each can see/type)

Re: What does your desktop look like?

Posted: 2018-08-06 11:11
by Head_on_a_Stick
^ Nice tips, thanks!

I use this stanza in my shell configuration to autostart tmux if it is not already running and to attach to the first available session if it is running:

Code: Select all

if [ -z "$TMUX" ]; then
	ID="$(tmux ls 2>/dev/null | awk -F':' '!/attached/{print $1}' | sed q)"
	if [ -z "$ID" ]; then
		tmux new-session
	else
		tmux attach-session -t "$ID"
	fi
fi
This results in "unkillable" terminal sessions so my work isn't ruined when I accidentally close a window :mrgreen:

Here's the family Debian laptop in the middle of a backup:

Image

My desktop is running openbox (with my own theme) & tint2 (tint2rc here: https://gist.githubusercontent.com/Head ... 5f/tint2rc), the Vertex icons have had Faenza added as first in the "Inherits" list in index.theme to get that #!-systray look :)

Re: What does your desktop look like?

Posted: 2018-08-06 23:04
by esp7
Image

I am a boring guy running Debian stable with xfce, no time to tweak for days eye candy, but from a technical point of view my machine is running like a champ :mrgreen:

Re: What does your desktop look like?

Posted: 2018-08-07 04:15
by obaino
Debian 9 xfce

Image

Re: What does your desktop look like?

Posted: 2018-08-08 10:44
by ruffwoof
Head_on_a_Stick wrote:^ Nice tips, thanks!

I use this stanza in my shell configuration to autostart tmux if it is not already running and to attach to the first available session if it is running:

Code: Select all

if [ -z "$TMUX" ]; then
	ID="$(tmux ls 2>/dev/null | awk -F':' '!/attached/{print $1}' | sed q)"
	if [ -z "$ID" ]; then
		tmux new-session
	else
		tmux attach-session -t "$ID"
	fi
fi
This results in "unkillable" terminal sessions so my work isn't ruined when I accidentally close a window :mrgreen:
Nice tip. (Up until now) I've just been using [ -z $TMUX ] && tmux

Re: What does your desktop look like?

Posted: 2018-08-08 13:21
by None1975
Head_on_a_Stick wrote:^ This results in "unkillable" terminal sessions so my work isn't ruined when I accidentally close a window :mrgreen:
Forgive me for a stupid question. How do you close this session? Do you use the exit command?

Re: What does your desktop look like?

Posted: 2018-08-08 13:57
by Head_on_a_Stick
None1975 wrote:How do you close this session? Do you use the exit command?
Yes, either `exit` or <Ctrl>-D will close tmux if it is the only session running or `pkill tmux` will kill everything.

I prefer to keep the session running though, mainly because I don't use a persistent history file with my shell.

Re: What does your desktop look like?

Posted: 2018-08-08 18:08
by None1975
Head_on_a_Stick wrote:Yes, either `exit` or <Ctrl>-D will close tmux if it is the only session running or `pkill tmux` will kill everything.
I prefer to keep the session running though, mainly because I don't use a persistent history file with my shell.
I understood. Thanks for the explanation.

Re: What does your desktop look like?

Posted: 2018-08-08 23:02
by ruffwoof
None1975 wrote:How do you close this session? Do you use the exit command?
The standard tmux control key is ctrl-b if you press that combination, release the keys and then press d that will detatch you from the session, but it keeps running in the background. You can then log back in again later to the same server and run tmux attach ... to get back into that original session, even from a different device (such as a smartphone with ssh that you login to the server with).

Other tmux commands are ctrl-b c to create a new tmux window. ctrl-b n to step between the windows, ctrl-b " and ctrl-b % to split a current window (horizontally/vertically), ctrl-b arrow keys to step between them, ctrl-b z to zoom/unzoom a pane

You can set tmux to start and load a number of windows via a script such as

Code: Select all

#!/bin/sh
# create a tmux session called work, and detach so we can send keys to it
# send keys to rename the first window to diary and load diary
# (as root, as my diary is owned by root)
tmux new -s work -d
tmux rename-window -t work diary
tmux send-keys -t work 'su - root -c "vi /home/user/bin/diary"' C-m

# Add another tmux window, rename it to mc and load mc
tmux new-window -t work
tmux rename-window -t work mc
tmux send-keys -t work 'mc' C-m

# and finally select which window to show first and attach to the tmux work session
tmux select-window -t work:0
tmux attach -t work 
Another 'trick' is that two of you can ssh into the same box using the same userid and create/attach to the same tmux session, a simple collaboration method where either of you can type things and both of you see the same display outputs.

Set the console up appropriately and it can be quite colourful (PS1 prompt) and run tmux (so multiple windows, scrolling, cut/paste ...etc.) and if you run mc in one window that has a nice inbuilt editor as well as being a reasonable file manager (I set my left pane to show a tree, right pane to show files and set lynx type navigation so up and down arrows steps you through a directory, left and right arrows takes you up or down through directories). Nice for when working on remote systems.

Personally I don't like the ctrl-b control key sequence so I map that to the backtick (execute) key instead. When I want to type a execute/backtick in a file such as a shell script I have to press it twice ... i.e. my .tmux.conf contains ...

unbind C-b
set-option -g prefix `
bind ` send-prefix

I also set F11 and F12 to create a new tmux window and step through the windows

# mc uses F1 to F10, so moved up to F11 and F12
bind-key -n F12 next-window
bind-key -n F11 new-window

" and % for splitting a window into panes isn't nice IMO either so I map them to the | and - keys ...

# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

So for me for instance, I can split a window by pressing the backtick (exec) key (instead of having to key in ctrl-b) and then | for a vertical splitting of the window. F12 to step onto the next tmux window ...etc. Generally I avoid splitting tmux window myself and prefer to run each program full screen i.e. I most create new tmux windows using F11 and step between them using F12.

So you might have one tmux window that you've used to ssh into another box, another tmux window running mc, another running perhaps calcurse (calendar), another running htop (system monitor), irc, email ....etc. and you can detatch, from that ... and return later and reattach back in again. Ctrl-Alt-Fn and you can flip between that console and your X session (browser with tabs ...etc.).

Sorry for the wall of words, hope it was more helpful than annoying.