Your Latest Workflow Improvement - Desktop Customization & Workflow

Users browsing this thread: 2 Guest(s)
freem
Nixers
I think my latest workflow improvements have been:

1) have "buttons" in my status bar to control mpd. I could already do it with keyboard, sure, but they require both hands (no super key on keyboard's right side, which is the $mod key for my "desktop") and sometimes I have my right hand side on the mouse, thus it's easier to have buttons:

Code:
#!/bin/sh

## this script allows to show status and control user-land runit daemons in i3blocks
btn_type="${1:-"error unknown option $1"}"

which mpc 2>/dev/null >/dev/null || btn_type="error mpc not found"

#may be better icons, but requires better font
#btn_prev="\0342\0217\0256"
#btn_next="\0342\0217\0255"
#btn_play="\0342\0217\0265"
#btn_pause="\0342\0217\0270"
#btn_stop="\0342\0217\0271"

btn_prev="[<<]"
btn_next="[>>]"
btn_play="[|>]"
btn_pause="[||]"
btn_stop="[S]"

case "$btn_type" in
    "prev")
        ACT="prev"
        TXT="$btn_prev\n$btn_prev\n#ffff00\n"
        ;;
    "next")
        ACT="next"
        TXT="$btn_next\n$btn_next\n#ffff00\n"
        ;;
    "play")
        ACT="toggle"
        if mpc | grep '^\[playing\]' -q >/dev/null 2>/dev/null
        then
            TXT="$btn_pause\n$btn_pause\n#0000ff\n"
        else
            TXT="$btn_play\n$btn_play\n#00ff00\n"
        fi
        ;;
    "stop")
        ACT="stop"
        TXT="$btn_stop\n$btn_stop\n#ff0000\n"
        ;;
    *)
        TXT="rtfm $btn_type\n$btn_type\n#ff0000\n"
        ;;
esac

test -n "$BLOCK_BUTTON" && mpc $ACT >/dev/null 2>/dev/null

printf "$TXT"

2) the use of keepassxc. For long, I was not using that kind of tool, but now that I use it I understand why they're nice. TBH, I'm annoyed that current version (not yet in debian stable) have redone their graphics for that shitty fashion of flat design and low contrast colours, but old won't break magically soon, and I can probably live with the lacking features until I find a better alternative.

3) still WIP, but I've been running all my "desktop daemons" (keepassxc, quasselc, claws-mail, mpd, unclutter) under a user's instance of runsvdir, so that they are restarted when they are closed (either because of crash or because of accidental action). This also provides me with an easier way to control them, since I can use
Code:
sv [start|stop|restart|alarm|...] $daemon
to control them. When I'll have a more resilient environment (WM, taskbar, command-launcher) I intend to integrate this into the taskbar, somehow, and to have there "poweroff", "stop session", "pm-suspend", etc buttons, too. For some of them, I don't know yet how to do that, since they require admin rights and I would prefer to avoid the use of sudo or elogind. I also intend to integrate the WM in runsvdir, which is the final reason which got me tired of i3, but I can't find anything else that seems to fit how I work, so I'm probably going to write my own (already did some research, currently preparing a test environment, which got me back at some tasks I stopped months ago)


Messages In This Thread
Your Latest Workflow Improvement - by z3bra - 17-08-2015, 07:50 AM
RE: You latest workflow improvement - by venam - 17-08-2015, 09:58 AM
RE: You latest workflow improvement - by z3bra - 17-08-2015, 11:50 AM
RE: Your latest workflow improvement - by venam - 17-08-2015, 01:56 PM
RE: Your latest workflow improvement - by dkeg - 17-08-2015, 10:56 PM
RE: Your latest workflow improvement - by swathe - 17-08-2015, 11:14 PM
RE: Your latest workflow improvement - by z3bra - 18-08-2015, 04:51 AM
RE: Your latest workflow improvement - by dkeg - 18-08-2015, 07:18 AM
RE: Your latest workflow improvement - by z3bra - 19-08-2015, 12:00 PM
RE: Your latest workflow improvement - by October - 24-08-2015, 07:04 PM
RE: Your latest workflow improvement - by jvarg - 25-08-2015, 04:06 AM
RE: Your latest workflow improvement - by vedard - 29-08-2015, 01:50 PM
RE: Your latest workflow improvement - by swathe - 31-08-2015, 02:17 AM
RE: Your latest workflow improvement - by greduan - 06-09-2015, 10:12 PM
RE: Your latest workflow improvement - by z3bra - 07-09-2015, 04:55 AM
RE: Your latest workflow improvement - by jury - 07-09-2015, 03:15 PM
RE: Your latest workflow improvement - by greduan - 09-09-2015, 11:46 AM
RE: Your latest workflow improvement - by z3bra - 09-09-2015, 01:45 PM
RE: Your latest workflow improvement - by dkeg - 13-09-2015, 06:24 PM
RE: Your latest workflow improvement - by venam - 14-09-2015, 02:06 PM
RE: Your latest workflow improvement - by dkeg - 14-09-2015, 09:23 PM
RE: Your latest workflow improvement - by ashen - 15-09-2015, 02:14 PM
RE: Your latest workflow improvement - by fraun - 21-10-2015, 10:54 AM
RE: Your latest workflow improvement - by fraun - 26-10-2015, 12:46 PM
RE: Your latest workflow improvement - by xero - 28-10-2015, 02:36 PM
RE: Your latest workflow improvement - by z3bra - 28-10-2015, 03:01 PM
RE: Your latest workflow improvement - by xero - 28-10-2015, 03:28 PM
RE: Your latest workflow improvement - by movq - 28-10-2015, 05:36 PM
RE: Your latest workflow improvement - by venam - 29-10-2015, 01:45 AM
RE: Your latest workflow improvement - by z3bra - 29-10-2015, 07:28 AM
RE: Your latest workflow improvement - by movq - 29-10-2015, 12:32 PM
RE: Your latest workflow improvement - by z3bra - 29-10-2015, 03:43 PM
RE: Your latest workflow improvement - by xero - 27-11-2015, 12:01 PM
RE: Your latest workflow improvement - by xero - 30-11-2015, 12:05 PM
RE: Your latest workflow improvement - by apk - 30-11-2015, 02:26 PM
RE: Your latest workflow improvement - by z3bra - 14-12-2015, 07:26 AM
RE: Your latest workflow improvement - by xero - 27-12-2015, 07:48 PM
RE: Your latest workflow improvement - by apk - 27-12-2015, 10:51 PM
RE: Your latest workflow improvement - by venam - 28-12-2015, 01:38 AM
RE: Your latest workflow improvement - by z3bra - 28-12-2015, 04:27 AM
RE: Your latest workflow improvement - by kirby - 28-12-2015, 09:28 AM
RE: Your latest workflow improvement - by z3bra - 25-01-2016, 01:17 PM
RE: Your latest workflow improvement - by josuah - 28-07-2016, 09:32 PM
RE: Your latest workflow improvement - by Tmplt - 29-07-2016, 02:38 AM
RE: Your latest workflow improvement - by venam - 29-07-2016, 02:55 AM
RE: Your latest workflow improvement - by z3bra - 29-07-2016, 04:16 AM
RE: Your latest workflow improvement - by josuah - 29-07-2016, 06:44 AM
RE: Your latest workflow improvement - by z3bra - 29-07-2016, 06:46 AM
RE: Your latest workflow improvement - by Tmplt - 30-07-2016, 06:51 PM
RE: Your latest workflow improvement - by b3atr - 03-08-2016, 05:10 PM
RE: Your latest workflow improvement - by Adrift - 20-02-2017, 08:51 PM
RE: Your Latest Workflow Improvement - by josuah - 19-04-2017, 08:14 PM
RE: Your Latest Workflow Improvement - by josuah - 20-04-2017, 06:41 AM
RE: Your Latest Workflow Improvement - by Mafia - 21-04-2017, 02:08 PM
RE: Your Latest Workflow Improvement - by josuah - 21-04-2017, 02:41 PM
RE: Your Latest Workflow Improvement - by Mafia - 21-04-2017, 04:26 PM
RE: Your Latest Workflow Improvement - by z3bra - 21-04-2017, 06:53 PM
RE: Your Latest Workflow Improvement - by r4ndom - 25-04-2017, 05:59 AM
RE: Your Latest Workflow Improvement - by drkhsh - 28-04-2017, 07:44 PM
RE: Your Latest Workflow Improvement - by jvarg - 03-05-2017, 06:21 PM
RE: Your Latest Workflow Improvement - by z3bra - 04-05-2017, 05:39 PM
RE: Your Latest Workflow Improvement - by venam - 05-05-2017, 12:42 AM
RE: Your Latest Workflow Improvement - by jvarg - 05-05-2017, 03:52 AM
RE: Your Latest Workflow Improvement - by z3bra - 11-06-2017, 07:31 AM
RE: Your Latest Workflow Improvement - by xcko - 12-06-2017, 10:38 PM
RE: Your Latest Workflow Improvement - by z3bra - 13-06-2017, 09:33 AM
RE: Your Latest Workflow Improvement - by gaak - 31-12-2018, 02:06 AM
RE: Your Latest Workflow Improvement - by prx* - 02-01-2019, 02:14 PM
RE: Your Latest Workflow Improvement - by gaak - 02-01-2019, 09:33 PM
RE: Your Latest Workflow Improvement - by anthk - 09-01-2019, 07:24 PM
RE: Your Latest Workflow Improvement - by prx* - 22-02-2019, 07:58 AM
RE: Your Latest Workflow Improvement - by venam - 27-02-2019, 06:20 AM
RE: Your Latest Workflow Improvement - by z3bra - 27-02-2019, 11:40 AM
RE: Your Latest Workflow Improvement - by grah - 16-03-2019, 06:22 PM
RE: Your Latest Workflow Improvement - by Igrom - 18-03-2019, 11:52 AM
RE: Your Latest Workflow Improvement - by wolf - 28-03-2019, 02:36 PM
RE: Your Latest Workflow Improvement - by prx* - 30-03-2019, 09:49 AM
RE: Your Latest Workflow Improvement - by wolf - 31-03-2019, 06:01 PM
RE: Your Latest Workflow Improvement - by z3bra - 31-03-2019, 07:05 PM
RE: Your Latest Workflow Improvement - by pkal - 01-04-2019, 09:55 AM
RE: Your Latest Workflow Improvement - by fraun - 05-04-2019, 11:37 AM
RE: Your Latest Workflow Improvement - by z3bra - 05-04-2019, 02:24 PM
RE: Your Latest Workflow Improvement - by pkal - 12-04-2019, 02:08 AM
RE: Your Latest Workflow Improvement - by z3bra - 12-04-2019, 10:57 AM
RE: Your Latest Workflow Improvement - by acg - 12-04-2019, 01:40 PM
RE: Your Latest Workflow Improvement - by z3bra - 12-04-2019, 02:03 PM
RE: Your Latest Workflow Improvement - by prx* - 16-04-2019, 05:29 AM
RE: Your Latest Workflow Improvement - by z3bra - 16-04-2019, 05:57 AM
RE: Your Latest Workflow Improvement - by venam - 16-04-2019, 06:16 AM
RE: Your Latest Workflow Improvement - by prx* - 16-04-2019, 11:00 AM
RE: Your Latest Workflow Improvement - by prx* - 16-04-2019, 11:00 AM
RE: Your Latest Workflow Improvement - by z3bra - 16-04-2019, 07:03 PM
RE: Your Latest Workflow Improvement - by prx* - 19-04-2019, 04:26 AM
RE: Your Latest Workflow Improvement - by z3bra - 19-04-2019, 07:26 AM
RE: Your Latest Workflow Improvement - by mrtn - 25-04-2019, 04:32 AM
RE: Your Latest Workflow Improvement - by z3bra - 25-04-2019, 08:45 AM
RE: Your Latest Workflow Improvement - by mrtn - 25-04-2019, 10:11 AM
RE: Your Latest Workflow Improvement - by wolf - 22-05-2019, 10:13 PM
RE: Your Latest Workflow Improvement - by z3bra - 23-05-2019, 03:48 AM
RE: Your Latest Workflow Improvement - by Doom - 24-05-2019, 06:56 PM
RE: Your Latest Workflow Improvement - by prx* - 25-05-2019, 02:10 AM
RE: Your Latest Workflow Improvement - by tudurom - 25-05-2019, 05:35 PM
RE: Your Latest Workflow Improvement - by budRich - 26-05-2019, 06:59 AM
RE: Your Latest Workflow Improvement - by Doom - 28-05-2019, 05:27 PM
RE: Your Latest Workflow Improvement - by z3bra - 29-05-2019, 10:46 AM
RE: Your Latest Workflow Improvement - by piotr - 28-06-2019, 02:02 PM
RE: Your Latest Workflow Improvement - by Saos - 29-06-2019, 01:43 PM
RE: Your Latest Workflow Improvement - by wolf - 16-07-2019, 06:53 PM
RE: Your Latest Workflow Improvement - by jkl - 18-07-2019, 04:35 PM
RE: Your Latest Workflow Improvement - by wolf - 22-07-2019, 05:48 PM
RE: Your Latest Workflow Improvement - by jkl - 22-07-2019, 06:00 PM
RE: Your Latest Workflow Improvement - by z3bra - 22-07-2019, 07:14 PM
RE: Your Latest Workflow Improvement - by jkl - 22-07-2019, 10:06 PM
RE: Your Latest Workflow Improvement - by pkal - 23-07-2019, 10:01 AM
RE: Your Latest Workflow Improvement - by jkl - 23-07-2019, 11:30 AM
RE: Your Latest Workflow Improvement - by Halfwit - 24-07-2019, 11:49 PM
RE: Your Latest Workflow Improvement - by anthk - 18-11-2019, 08:51 PM
RE: Your Latest Workflow Improvement - by venam - 10-05-2021, 02:13 AM
RE: Your Latest Workflow Improvement - by s0kx - 10-05-2021, 02:27 AM
RE: Your Latest Workflow Improvement - by seninha - 10-05-2021, 09:24 AM
RE: Your Latest Workflow Improvement - by freem - 11-05-2021, 08:56 AM
RE: Your Latest Workflow Improvement - by dany74q - 23-06-2021, 05:42 PM
RE: Your Latest Workflow Improvement - by jkl - 30-06-2021, 10:30 AM
RE: Your Latest Workflow Improvement - by dany74q - 30-06-2021, 05:46 PM
RE: Your Latest Workflow Improvement - by jkl - 30-06-2021, 06:31 PM
RE: Your Latest Workflow Improvement - by freem - 26-08-2021, 07:48 PM
RE: Your Latest Workflow Improvement - by seninha - 18-02-2022, 09:51 AM
RE: Your Latest Workflow Improvement - by pfr - 25-02-2022, 12:30 AM