Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
What does your desktop look like?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
-
- Posts: 1454
- Joined: 2015-08-30 20:14
- None1975
- df -h | participant
- Posts: 1410
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 46 times
- Been thanked: 70 times
Re: What does your desktop look like?
Wmii in Debian 9.4. Faster than i3wm and much lighter on system than i3wm.
Clean:
Busy:
Only 402 Mb. of ram with open programs, among which the hardest is Firefox...
Clean:
Busy:
Only 402 Mb. of ram with open programs, among which the hardest is Firefox...
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
-
- Posts: 1454
- Joined: 2015-08-30 20:14
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: What does your desktop look like?
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.
deadbang
- None1975
- df -h | participant
- Posts: 1410
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 46 times
- Been thanked: 70 times
Re: What does your desktop look like?
Really nice resource usage and start up time.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.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: What does your desktop look like?
Yeah, it's almost as quick & light as rxvt-unicode in daemon-client mode (but not quite).None1975 wrote:Really nice resource usage and start up time.
Anyway, who needs terminal emulators when there's a getty available?
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.
deadbang
Re: What does your desktop look like?
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.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.
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
Code: Select all
set -g status-position top
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
Code: Select all
#!/bin/sh
tmux capture-pane -J -p -t $TMUX_PANE >/tmp/file.txt
vi /tmp/file.txt
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: What does your desktop look like?
^ 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:
This results in "unkillable" terminal sessions so my work isn't ruined when I accidentally close a window
Here's the family Debian laptop in the middle of a backup:
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
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
Here's the family Debian laptop in the middle of a backup:
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
deadbang
Re: What does your desktop look like?
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
ThinkPad X220: i5-2520M CPU 2.5GHz - 8GB RAM 1333 MHz - SSD 860 EVO 250GB - Debian - ME_cleaned
ThinkPad X230: i5-3320M CPU 3.3GHz - 8GB RAM 1600 MHz - SSD 860 EVO 500GB - Debian - ME_cleaned
ThinkPad X230: i5-3320M CPU 3.3GHz - 8GB RAM 1600 MHz - SSD 860 EVO 500GB - Debian - ME_cleaned
Re: What does your desktop look like?
Nice tip. (Up until now) I've just been using [ -z $TMUX ] && tmuxHead_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:This results in "unkillable" terminal sessions so my work isn't ruined when I accidentally close a windowCode: 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
- None1975
- df -h | participant
- Posts: 1410
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 46 times
- Been thanked: 70 times
Re: What does your desktop look like?
Forgive me for a stupid question. How do you close this session? Do you use the exit command?Head_on_a_Stick wrote:^ This results in "unkillable" terminal sessions so my work isn't ruined when I accidentally close a window
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: What does your desktop look like?
Yes, either `exit` or <Ctrl>-D will close tmux if it is the only session running or `pkill tmux` will kill everything.None1975 wrote:How do you close this session? Do you use the exit command?
I prefer to keep the session running though, mainly because I don't use a persistent history file with my shell.
deadbang
- None1975
- df -h | participant
- Posts: 1410
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 46 times
- Been thanked: 70 times
Re: What does your desktop look like?
I understood. Thanks for the explanation.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.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
Re: What does your desktop look like?
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).None1975 wrote:How do you close this session? Do you use the exit command?
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
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.