Your Latest Workflow Improvement - Desktop Customization & Workflow
Users browsing this thread: 6 Guest(s)
|
|||
(05-05-2017, 12:42 AM)venam Wrote:(04-05-2017, 05:39 PM)z3bra Wrote: Then you'll probably love piping your selection into random programsMy favorite one: I think vim call fmt internally when pressing 'gq'. But yeah, I use that a lot! EDIT: mine can be replaced with pressing 'gU' also |
|||
|
|||
I also like using :'a,'bw !lua to check certain code snippits through the interpreter, or :!gcc && ./a.out though my favorite lately has been :!! to rerun the last shell command used in the command prompt
|
|||
|
|||
I prefer using ^Z to run external commands though. It is more flexible IMO. Also, I never use gcc by itself, and rather a makefile, be it as simple as:
Code: pgm: pgm.c |
|||
|
|||
jvarg's remap capslock to escape is quite good.
tmux + vim + some REPL -- i.e. use vim+tmux to control a shell or interpreter. That way, you live in your editor and think about ssh'ing into a router or whatnot more programmatically. inbox zero is a good hack for ppl who use email as their default message bus -- notifications that interrupt attention need to be pretty damn important. |
|||
|
|||
(07-09-2015, 03:15 PM)jury Wrote: ^ That's why I'm rarely on IRC; I can never get anything else done when it's open =PFor this under CWM, I use this attached to a keystroke : Code: #!/bin/sh |
|||
|
|||
Yeah, put all the status bits in one place and tie one keystroke to it
Code: quiet() { $* 2>/dev/null ; } |
|||
|
|||
Well, I have several for irssi (I use it mainly with Bitlbee).
You'll need to autoload fnotify.pl from Irssi's script database. Code: drwho:~>cat bin/irc |
|||
|
|||
I wanted to know how many monitors are active at the moment so i came up with this one liner:
Code: xrandr -d :0 -q | grep '*+' | wc -l You can also check how many monitors are connected (on or off): Code: xrandr -d :0 -q | grep '+' | wc -l |
|||
|
|||
I wanted to add magnet link in rtorrent from the hash found in omgtorrent (no torrent hosted, so not illegal) :
Code: #!/bin/sh |
|||
|
|||
I made a script to toggle mpc when pulseaudio brings other things on board:
https://github.com/neeasade/dotfiles/blo...lsewatcher |
|||
|
|||
My latest, not so new, workflow improvement is to use `at` as a notification timer.
When I have to do something after X time or at X time I just fire up `at` with notify-send and/or some sound. It's pretty neat, light, and simple. |
|||
|
|||
I recently switched from tmux to dvtm.
It doesnt sound like much, but the fact it auto arrange stuff is great to force you tidy your things, istead of spending time making mosaics. |
|||
|
|||
My latest workflow improvement is a simple one and is probably something that everyone is already aware of: using Ctrl-Backspace or Ctrl-Del to delete a whole word instead of just using Backspace or Delete. Works in most graphical applications.
(27-02-2019, 11:40 AM)z3bra Wrote: I recently switched from tmux to dvtm. Wow thanks for posting this, dvtm is perfect! I've now dropped tmux and screen and use it along with dtach. |
|||
|
|||
Today's workflow improvement is a result of automating a recent piece of work outlined in https://nixers.net/showthread.php?tid=2253.
Code: # trim video The code records my screen. Once the recording is stopped, the video plays back with a rectangular overlay with the frame timestamp. Once I scroll to the beginning of the video's actual content, I memorize the timestamp, ^C and subsequently enter the seconds and microseconds in the terminal to trim the video. I confirm visually that it was done okay, otherwise I ^C to tweak the trim. |
|||
|
|||
MPD + Youtube-dl : Listen Youtube at mpd
Not exactly a work stuff, but work related since I like to listen some music while working : Code: #!/usr/local/bin/bash I used to use the stream URI directly to mpd, but had issues with mp4 and song name ( sometimes I want to see the lyrics ). Note : You'll need configure your mpd to use Unix Socket as address to bind. |
|||
|
|||
@wolf : omg that's great !
I guess there is a little mistake in variable. I modified it a bit to add the "continue" option to youtube-dl if the file is already retrieved: Code: #!/bin/sh |
|||
|
|||
(30-03-2019, 09:49 AM)thuban Wrote: @wolf : omg that's great ! Hey, thanks for the fix and improvement. thuban++ |
|||
|
|||
This week I made a simple script to track my time (ask by my management recently). It lets you create/close tasks (one task is a single line description).
There is only one task elected as "current" at a given time, which is a symlink to the actuall task. When you create a different time, the timestamp is recorded in the file, and a keyword "now" is added to define when you finished it. When you close a task "now" is replaced by the timestamp, and "[CLOSED]" is prepended to the subject. You can list you tasks, or export them in csv form if you want to post-process them. I'm not quite sure if it will help, but it does a good job at tracking time :) If anyone is interested, I can post the script tomorrow. |
|||
|
|||
(16-03-2019, 06:22 PM)grah Wrote: My latest workflow improvement is a simple one and is probably something that everyone is already aware of: using Ctrl-Backspace or Ctrl-Del to delete a whole word instead of just using Backspace or Delete. Works in most graphical applications. Learning Emacs keybindings is generally quite useful when you use bash. I regularly use C-x ( to record macros, C-a/C-e to jump around the current line, C-l to clear the screen, C-y/M-y to use the kill ring, and M-u/M-c/M-l to toggle cases. And I guess it's just my preference, but C-f/C-b/C-p/C-n are nicer than the arrow keys, especially on laptops. |
|||
|
|||
(31-03-2019, 07:05 PM)z3bra Wrote: This week I made a simple script to track my time (ask by my management recently). It lets you create/close tasks (one task is a single line description). That sounds kind of like org-mode in emacs... In fact it is doable in org-mode |
|||
|
|||
Maybe but I run a linux machine, not an emacs one ;)
|
|||
|
|||
(27-02-2019, 06:20 AM)venam Wrote: When I have to do something after X time or at X time I just fire up `at` with notify-send and/or some sound. I have started using this as well, it's very useful. I have stopped keeping tabs open in the browser and started storing links in buku or making notes on my wiki. I found that I would rarely go back to that article I wanted to read, or need that stackoverflow answer again so decided to keep my browser clear. If I do need a link I can find it in buku. |
|||
|
|||
|
|||
hahaha nice quote! I'll steal it ^^
For my organisation issue, I changed the concept a bit, and decided to consider my work as a stack of tasks. When a new task arrive, I push it on top, and it becomes my current task. When the top task is done, I "pop" it out, and the one below becomes the main one. At any given time, I can move a lower task to the top and work on it, but I force myself to only work on the top task. Of course, that doesn't take multitasking into account. If smI get a request that can be cleared in less than a minute, I don't even stack it. I wrote a first PoC named "stak" (I like that it's an anagram for task). I'll clean it a bit and post it if you're interested |
|||
|
|||
(12-04-2019, 10:57 AM)z3bra Wrote: For my organisation issue, I changed the concept a bit, and decided to consider my work as a stack of tasks. I'm wondering what do you do with a "current" task when another one arrives if you still have one in progress. This is one of my main issues, I'm working on something and get approached with a new non-trivial task. What I've been doing lately is delaying those task until I finish the current one and reorganize. |
|||
|
|||
Depends. For now every new task goes to the top by design, and becomes the current.
If it's not urgent, I just put back the last task on top |
|||
|
|||
I recently added to my ~/.xsession calls to xdotools in order to start some stuff when the mouse is on screen border.
Code: xdotool behave_screen_edge --delay 900 bottom-left exec tkmenu & Code: command " - Min win " "xdotool selectwindow windowminimize" |
|||
|
|||
I don't get it. You added this because you wanted the ability to do it without the keyboard?
|
|||
|
|||
(16-04-2019, 05:29 AM)thuban Wrote: I recently added to my ~/.xsession calls to xdotools in order to start some stuff when the mouse is on screen border. I might actually use that to show a popup with the current time and date or todos when hitting a corner of the screen. |
|||
|
|||
Yep, for inspiration, I have this to handle windows
Code: #!/bin/sh And to call the pager (and destroy it after a short time) Code: #!/bin/sh |
|||