Commit graph

32 commits

Author SHA1 Message Date
14f33460df
tmux: Improve vim-style yanking
Finally updated tmux scroll-mode yanking to use more vim-style bindings:
Use `v` to select text normally, `V` to select line-wise and `C-v` to
enable rectangle select. `y` yanks to the clipboard (and the internal
tmux register as previously).

Lastly, removed some left-over deprecated code concerning neovim cursor
shape behavior. Was already commented out but now removed completely.

HACK - the yanking to clipboard only works on wayland currently since it
uses `wl-copy` directly instead of the `clip` script. The `clip` script
is not invoked correctly with data being piped since it apparently does
not recognize that it is in a piped call?
2022-11-04 15:26:16 +01:00
485730ba83
tmux: Change todo.session burndown display
Changed to display overall accumulation of tasks again.
Would overall probably be best to display a combination of accomplished
and still to be done tasks.
2022-10-08 18:05:39 +02:00
a1cfff389d
tmux: Update social session
Made mail more prominent since it's my primary use-case of the social
session, so it deserves primary spotlight in the tmux tabs.

Added a mastodon view to the news tab to complement the rss feed.
2022-06-12 16:05:50 +02:00
96439a5c9b
tmux: Change todo.session setup
Replaced old, never used, graphical taskwarrior task accomplishment
overview with a more free-form calendar/journal page.

It displays an overview of my upcoming appointments using calcurse on
the one hand, and my personal snippet journal with the help of jrnl on
the other.
The last thing is a tiny empty pane allowing me just enough room to
interact with jrnl, e.g. quickly writing new entries.
2022-04-30 20:50:25 +02:00
b8fae73940
tmux: Add gitea issue tracking to dotfile session
When no changes are detected, neither uncommitted nor changed, one of
the git-window panes will instead of a diff display a list of issues
from gitea.
2022-03-10 23:10:59 +01:00
f23f0bd740
tmux: Add music session to defaults
Opens a mopidy server (in the foreground), a commandline player
(ncmpcpp), a sound mixer window, and bluetooth connectivity.
2021-11-30 22:37:36 +01:00
da9b171da4
tmux: Update social session with signal, email
Added signal chat window and neomutt window to social session.
2021-10-20 23:04:47 +02:00
7fdbe97c7e
tmux: Limit taskwarrrior session burndown display
Set burndown chart to only display last 3 months of tasks. I have found
this (for now) to be the best balance between getting a general sense of
overview and still having a meaningful output.
The problem with just basic `burndown` command is that, after using
taskwarrior for a while, your completed tasks *will* pile up (I think I
am at around 1000 now) and the burndown chart, showing relative balance
of completed, pending, working on, will become meaningless. It will only
ever display a large portion of green --- completed --- tasks and not
give a lot of insight.
Setting it to only 1 month back, or even just a week, can work but for
me does not present enough of a tracking overview. I want to see,
relatively, how well I am doing over the last couple of weeks instead of
just today against the days before.
This setting might still change as my needs change.
2021-07-28 09:58:17 +02:00
0b2c6c9b4b
bibtex: Fix default pandoc compilation target
Moved previous default (paper) compilation target for pandoc to its own
file (paper.latex) and saved the current default as a backup file.

This should fix some issues with compilation to PDF, especially with
vertical spacing and quotes which would fail intermittently otherwise.
2021-06-02 23:23:16 +02:00
bf547417ce
tmux: Fix tmuxline statusbar coloring
In tmux 3.2, the way status-style and status-bg interact has been
changed, simply removed my default bg coloring to fix it.

This should be fine since 99% of the time my tmux statuline coloring
is taken care of by the vim plugin anyway.
2021-04-18 12:57:04 +02:00
60b825183d
tmux: Add social session
Added very simple social dashboard session,
simply running newsboat and matrix in separate windows.
2021-04-12 20:48:52 +02:00
d3b2e30052
tmux: Add todo session
Added session for taskwarrior todo dashboard. Includes a relatively free
space containing a tasksh session on window 1, an overall dashboard on
window 2, and recent history visualization on window 3.

Additionally, fixed sport session to open the correct files.
2021-04-12 19:26:42 +02:00
b0b1d0b64a
tmux: Fix dotfiles session
Hopefully fix dotfiles entr session watching a little,
should now not quit git status overview when switching between branches,
since it runs entr in an endless loop.
Feels like little bit of a hack, but is the advised way by the creator
on his webpage.
2021-04-04 21:10:17 +02:00
f4400da743
repo: Update linting for 4-spaced shell scripts 2021-04-04 20:52:52 +02:00
a85519e1cb
tmux: Use entr for dot session monitoring
Since I always have entr installed, I can use it to monitor for file
changes and reload the respective git overview panes.

This has the advantage that I can use any interactive displays (e.g.
less) in the respective panes, while still reloading when files actually
change.

I still have to find a way to replicate the switch between git log
and staged changes view whenever files become staged, have not been able
to fix this with entr and it still makes use of the watch command.
2021-03-14 17:35:39 +01:00
696953d3f7
shell: Switch to xterm TERM variable
Move any and all display to xterm-256color color variable, to enable
always the same color display.
2021-02-19 16:12:06 +01:00
a24cf7f241
tmux: Remove statusline time and date
Removed display of time and date from tmux, since I have the polybar
time up always.

Shuffled around the rest of the display: removed left-sided display of
active (tmux) user, moved it to the right side.
2020-12-03 12:30:17 +01:00
92016761f5
tmux: Change fzf session switcher hotkey
Changed key to switch sessions from `<leader><c-j>` to `<leader><c-s>`,
mimicking the normal `s` tmux session switcher.
2020-11-13 10:10:51 +01:00
8b223673fd
tmux: Fix display bug in session chooser
Session names would be cut off by the preview window.
Now, the preview window is generally *close* to the session names but
not overlapping them, which looked weird.
2020-11-13 08:04:32 +01:00
d91adbfc13
tmux: Fix session chooser without fzf
If no fzf is installed, session chooser will now be the old manual
session name input. `tm session-name` will attach or create a session of
the same name, whether fzf is installed or not.

If invoked without argument, and fzf is installed will show a list of
sessions to choose from. If fzf is missing, will create new session
based on current directory.

`tl` has been changed to display the old non-interactive list if no fzf
exists. If fzf has been found however, it points to `tm` instead, since
invoking it without arguments fulfills the same function.
2020-07-23 15:29:05 +02:00
0487042d7e
tmux: Add simple workout tracking session
Hard-codes paths to open, used for quick opening of training tracking.
To be run with `tm sport.session`
2020-07-23 12:29:27 +02:00
7895b1c052
[tmux] Add git diff switching staged to dot session
The git log display will now depend on current staged status.

If no files have been staged, the panel will display recent git logs
with branches and short titles, as before.

If files have been staged however, the panel will switch to display
staged changes however. This is to facilitate a better overview of
changes during the staging and committing process; since often one wants
to see the staged changes next to the commit that is being written.
2020-05-28 11:05:49 +02:00
64236ada0a
[tmux] Fix notes session directory
Fixed opening correct directory for tmux notes session, vim working
window.

Update xinit comments to be more reflective of programs intention.
Remove wal autostart xresources setup, it has been replaced by styler
(and at some point goxbam).
2020-05-05 09:21:38 +02:00
167744e8c8
[tmux] Fix true color support, especially in nvim
Tmux needs Tc set to enable truecolor support. At the same time, the
file was setting the same variable multiple times and in illogical ways.
So it now gets the term env var from the actual variable and simply adds
truecolor support.

Also removed cursor switching support for nvim, since tmux seems to
support it natively now. If it does not, this needs to be reinstituted.

Following discussions here:
https://www.reddit.com/r/neovim/comments/825dj7/the_endless_litany_of_tmux_and_nvim_color_problems/
and here:
https://stackoverflow.com/questions/41783367/tmux-tmux-true-color-is-not-working-properly
2020-02-20 20:46:41 +01:00
d5b7646611
Add make recursive dir alias, fix tmux alias
Fixes tmux session function alias and renames function to be a bit more
descriptive.

Added basic `md` alias to recursively `mkdir` directories.
2020-02-16 14:21:42 +01:00
348a167390 Fix tmux vim navigator movement
Fixes tmux xdg-compliance (and, more importantly, Tmux Plugin Manager's)
by setting the environment variable TMUX_PLUGIN_MANAGER_PATH to follow
xdg specifications. Tmux, due to not being xdg-compliant, needs to be
aliased to start with the `-f` option pointing into the configuration
directory.

Fixes tmux vim nagigator's controls being overwritten by other control
schemes in tmux.
2020-02-06 20:49:15 +01:00
f5eddfdab2 Fix tmux_attach_start unit tests 2020-02-04 15:23:47 +01:00
65ad7f77ee Add tmux_attach_start script zsh completions
Will autocomplete with currently open tmux sessions.
2020-02-04 10:00:05 +01:00
92376839a4 Add tmux fzf session chooser
Added tmux session chooser. Aliased to `tm`, calling `tmux_attach_start`
(the original tm script).

When called without arguments displays a fzf list of currently running
tmux sessions, with a preview to their respective open panes. A session
can be chosen in fzf which tmux will attach itself to. When creating a
query in fzf which does not have a valid target and confirming, tmux
will automatically create that session and attach itself to it.

When called with an argument, tmux will attach itself or create a
session of the same name. If called with the name of a session file, as
before, tmux will automatically execute that session file and attach
itself to it.
2020-02-02 23:44:23 +01:00
7ebcce8e82 Add global gitconfig, improve glog display
Added global git config file, following XDG specifications (putting it
under `XDG_CONFIG_HOME/git/config`).

Adding a small improvement to default dot session for tmux, so that its
log watcher now shows all refs and remote refs.
2020-02-01 11:15:22 +01:00
7b3b41ea97 Fix tmux dot session to work with stow dotfiles 2020-01-03 10:10:58 +01:00
d34cecb27e Switch to GNU stow 2019-12-29 23:12:13 +01:00