The officially official Devuan Forum!

You are not logged in.

#51 2023-03-05 01:49:18

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

welp, here some interesting things i've cobbled together with what little i know.

shed: a user services daemon independient from any init, still work in progress. https://github.com/eylles/shed

afreq.sh: a proof of concept to imitate autocpu-freq without python and bloat. https://github.com/eylles/afreq.sh

awkat: like the popular bat program but made with posix shell and awk. https://github.com/eylles/awkat

sct-daemon: my own version of a daemon for sct, nice if you like the redshift function but don't like the bloat of the program. https://github.com/eylles/sct-daemon

fzf-copypasta: shitpost with style!. https://github.com/eylles/fzf-copypasta

fzf-menu: replace dmenu with fzf and your fave terminal, i intend to make this a proper repo and a proper dmenu replacement. https://gist.github.com/MahouShoujoMivu … id=4331478

Offline

#52 2023-03-15 13:31:06

zapper
Member
Registered: 2017-05-29
Posts: 1,112  

Re: A Survey of User-made Content

@EDX-0 welp, here some interesting things i've cobbled together with what little i know.

sct-daemon: my own version of a daemon for sct, nice if you like the redshift function but don't like the bloat of the program. https://github.com/eylles/sct-daemon

How well does sct-daemon work?

If it works well enough, a stable tarball release would be appreciated for people who need that before it can be added. wink


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#53 2023-03-15 18:49:33

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

well, it works okay but i need to add checks that the values from the config file are valid before applying them, also perhaps adding a logging functionality, other than that it is okay enough.

Offline

#54 2023-03-19 20:05:02

zapper
Member
Registered: 2017-05-29
Posts: 1,112  

Re: A Survey of User-made Content

EDX-0 wrote:

well, it works okay but i need to add checks that the values from the config file are valid before applying them, also perhaps adding a logging functionality, other than that it is okay enough.

Either way, whenever you get a chance, stable release would be nice.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#55 2023-03-26 06:49:40

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

welp, took some time to do some checks on the config file, still need to do some others but as an initial release this should be okay.

https://github.com/eylles/sct-daemon/re … tag/v0.0.0

i will probably stick with the 0ver scheme for this and similar projects.

Offline

#56 2023-03-29 19:48:00

zapper
Member
Registered: 2017-05-29
Posts: 1,112  

Re: A Survey of User-made Content

@EDX-0

Cool, I might just test it out now! 

smile


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#57 2023-07-19 21:17:06

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

does maintenance of software count? if so then i'm hating myself for ever deciding to help maintain this but i use it so not much i can complain about...

https://github.com/ueber-devel/ueberzug

Offline

#58 2023-10-17 09:12:32

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

two almost useless scripts that at best only other 3 guys may use.

https://github.com/eylles/mega-wrap

https://github.com/eylles/dld-downloader-wrapper

Offline

#59 2023-10-17 20:49:09

zapper
Member
Registered: 2017-05-29
Posts: 1,112  

Re: A Survey of User-made Content

EDX-0 wrote:

two almost useless scripts that at best only other 3 guys may use.

https://github.com/eylles/mega-wrap

https://github.com/eylles/dld-downloader-wrapper

The second is being updated more and is therefore more useful.

As for if I think there is a purpose, depends...

I would say, if people know of something that is on a megatools link, if they want it badly enough, then yes its useful

If not, yeah your right.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#60 2024-07-14 23:53:30

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

https://github.com/eylles/devuan-scripts these are scripts i use on devuan, mostly installlers for stuff like brave or lazygit and firmware blobs, some may find them useful or that there is just the right snippet of shell script they want.

Offline

#61 2024-07-31 04:35:37

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

ah finally at long last i put out a 0.0.0 version of this daemon.

https://github.com/eylles/afreq.sh/releases/tag/0.0.0

Offline

#62 2024-11-01 20:01:57

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

another one of my dumb utilities written in shell, may this one be more useful, may try to promote it to the bunsenlabs guys as it already fits their style.

https://github.com/eylles/systemact

Offline

#63 2024-11-09 16:14:58

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

okay this is now released software

https://github.com/eylles/zram-service

now i just have to see if i can get it packaged on debian...

Offline

#64 2025-08-31 01:25:31

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

well, more shell slop crudely typed by my hands, this time a handful of scripts that aim to wrap neovim and a terminal emulator into a makeshift gnvim program to better integrate with GUI programs and desktop environments

https://github.com/eylles/xterm-nvim

will try to create a .deb package for it tho.

Offline

#65 2025-08-31 01:39:51

zapper
Member
Registered: 2017-05-29
Posts: 1,112  

Re: A Survey of User-made Content

@EDX-0 It would be nice to have something that works  like sakura but with way less bloated dependencies.

It would have to have copy paste and show scrollbar as requirements. All terminals that do this require vte3 or vte2.


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#66 2025-08-31 07:25:17

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

eh, well tmux does have a copy mode to copy any arbitrary text from the terminal buffer with just the keyboard alone and can use vim keys for movement, hence why i wrote the script to use tmux and optionally work without tmux.

as far as the terminal goes, that is up to preference for the user, personally i like ancient old xterm against all nice modern terminals that sport the bells and whistles out front, xterm does have the option to enable scrollbar but i do not use that one, however being able to copy text with the keyboard alone is a nice thing to have, for which i cobbled this script to extend the functionality of xterm so that i can get a new xterm (xterm with xterm) running an fzf instance that shows a dump of the whole xterm history buffer, thanks to fzf the lines are searchable by content and multiple lines can be selected, upon pressing enter every selected line is copied into the clipboard, so eh it may not be the fancier thing but the functionality is nice https://github.com/eylles/xterm-copyout

Offline

#67 2025-08-31 18:25:40

fanderal
Member
Registered: 2017-01-14
Posts: 99  

Re: A Survey of User-made Content

FWIW, using xterm without vte2/3 or clipboard app:

copy/paste:
highlight text to copy, middle-click to paste in terminal/gui editor

without scrollbar:
Hold Shift + Tap PgUp/PgDn to scroll up/down one page

Temporary options in xterm window:
Main: hold Ctrl + hold left-click and scroll to select
VT: hold Ctrl + hold middle-click and scroll to select
Fonts: hold Ctrl + hold right-click and scroll to select

Permanent option for scrollbar
Open /etc/X11/app-defaults/XTerm as root, add line at bottom:
*scrollBar: true

In my fluxbox menu:
[exec] (Terminal) {xterm -bg black -fg green -fa 'Monospace' -fs 14} <> 
Note: adding -sb to the above line will open xterm with a scrollbar

Offline

#68 Today 01:42:37

zapper
Member
Registered: 2017-05-29
Posts: 1,112  

Re: A Survey of User-made Content

@fanderal huh didnt know that about xterm

Last edited by zapper (Today 01:42:50)


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#69 Today 04:46:24

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

ah, that is configuring xterm through command line, i configure xterm through xresources.

i got this file structure for my x11 related configs

  [$HOME/.config/x11/]
 ├──  dynamset*
 ├──  xinitrc*
 ├──  xprofile*
 ├──  xresources
 └──  Xresources.d/
    ├──  colors
    ├──  nsxiv
    ├──  nsxiv-colors
    └──  xterm

the file .Xdefaults is just a symlink to the xresources file inside .config/x11

[ ed  Pro  ~ ] namei  .Xdefaults
f: .Xdefaults
 l .Xdefaults -> .config/x11/xresources

with these contents:

 
  File │  .Xdefaults
───────────────────────────────────────────────────────────────────────────
     1 │ !*dpmsEnabled:         False
     2 │ Xcursor.theme: breeze-pywal
     3 │ Xft.antialias: 1
     4 │ !Xft.dpi:      96.1025390625
     5 │ Xft.dpi:  86
     6 │ Xft.hinting:   1
     7 │ Xft.hintstyle: hintslight
     8 │ Xft.lcdfilter: lcddefault
     9 │ Xft.rgba:      rgb
    10 │
    11 │ #include "Xresources.d/xterm"
    12 │ #include "Xresources.d/colors"
    13 │ #include "Xresources.d/nsxiv"
    14 │ #include "Xresources.d/nsxiv-colors" 

that is because my color definitions are generated by a script

my actual xterm config is this:

 
  File │  .config/x11/Xresources.d/xterm  
─────────────────────────────────────────────────────────────────────
     1 │ ! text font
     2 │ UXTerm*faceName: BlexMono Nerd Font Mono:size=9
     3 │ UXTerm.vt100.scaleHeight: 1.0
     4 │ ! Unreadable
     5 │ UXTerm*faceSize1: 3
     6 │ ! Tiny:
     7 │ UXTerm*faceSize2: 6
     8 │ ! Small:
     9 │ UXTerm*faceSize3: 10
    10 │ ! Medium:
    11 │ UXTerm*faceSize4: 12
    12 │ ! Large:
    13 │ UXTerm*faceSize5: 15
    14 │ ! Huge:
    15 │ UXTerm*faceSize6: 18
    16 │ ! Enormous:
    17 │ UXTerm*faceSize7: 24
    18 │ ! do not compare bold to normal font
    19 │ UXTerm*freeBoldBox: true
    20 │ ! set term name
    21 │ UXTerm.termName:xterm-256color
    22 │ ! set saved lines
    23 │ UXTerm*saveLines: 999999
    24 │ ! double-click to select whole URLs :D
    25 │ UXTerm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
    26 │ ! Allow sixel graphics. (Try: "convert -colors 16 foo.jpg sixel:-").
    27 │ UXTerm*decTerminalID : vt340
    28 │ UXTerm*eightBitInput: false
    29 │ UXTerm.vt100.internalBorder: 2
    30 │ UXTerm*jumpScroll:      true
    31 │ UXTerm*multiScroll:     true
    32 │ UXTerm*alternateScroll: true
    33 │ ! ops
    34 │ UXTerm*.vt100.allowTitleOps: true
    35 │ UXTerm*.vt100.allowFontOpts: true
    36 │ UXTerm*.vt100.allowWindowOps: true
    37 │ ! cursor
    38 │ UXTerm*selectToClipboard: true
    39 │ ! select without mouse
    40 │ UXTerm*printerCommand: sh -c 'xterm-copyout <&3' 3<&0
    41 │ ! print with ansi colors
    42 │ UXTerm*printAttributes: 2
    43 │ ! keybind overrides
    44 │ UXTerm*VT100.Translations: #override \
    45 │     Ctrl <Key>slash: print-everything() \
    46 │     Ctrl <Key> -: smaller-vt-font() \
    47 │     Ctrl <Key> +: larger-vt-font() \
    48 │     Ctrl <Key> 0: set-vt-font(d) \
    49 │     Shift Ctrl <Key>T: spawn-new-terminal() \
    50 │     <BtnUp>:select-end(SELECT, CUT_BUFFER0, PRIMARY) \
    51 │     Ctrl Shift <Key>H: set-altscreen(toggle) \
    52 │     Shift <KeyPress> Home : scroll-to(begin) \
    53 │     Shift <KeyPress> End  : scroll-to(end) \
    54 │     Shift <KeyPress> Insert: insert-selection(CLIPBOARD) \
    55 │     Ctrl Shift <Key>V:    insert-selection(CLIPBOARD) \
    56 │     Ctrl Shift <Key>C:    copy-selection(CLIPBOARD) \

yes, i do use uxterm rather than xterm, tho that is because the command i actually use to start a terminal is x-terminal-emulator, which is symlinked to the xterm lxterm (locale xterm) which detects the locale charmap, in my case UTF-8, and calls the uxterm wrapper script

Last edited by EDX-0 (Today 04:47:07)

Offline

#70 Today 10:22:20

zapper
Member
Registered: 2017-05-29
Posts: 1,112  

Re: A Survey of User-made Content

@EDX-0 Is there a way to make it so that I only need to press up and down to scroll? Without shift I mean. for xterm


Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term  If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!

Offline

#71 Today 13:26:30

EDX-0
Member
Registered: 2020-12-12
Posts: 141  

Re: A Survey of User-made Content

well, technically in the keybinds overrides you could do something like this:

     │ ! keybind overrides
     │ UXTerm*VT100.Translations: #override \
     │     Prior <KeyPress>:scroll-back(1,halfpage) \n\
     │     Next <KeyPress>:scroll-forw(1,halfpage) \n\
     │     Shift <KeyPress> Insert: insert-selection(CLIPBOARD) \
     │     Ctrl Shift <Key>V:    insert-selection(CLIPBOARD) \
     │     Ctrl Shift <Key>C:    copy-selection(CLIPBOARD) \

which would work and make the xterm buffer scroll up and down with just the next and prior key, but that is going to cause problems with the tui programs like vim that map functions to the next and prior keys, say in vim instead of scrolling in the vim buffer you'll scroll the xterm buffer which will also show terminal history... and that is without mentioning that you have to unmap the default xterm keybinds that add the half page scroll function cuz otherwise you just duplicated the same function without a keychord for a worse user experience...

    ! xterm default keybinds, see full list with man xterm
        Shift <KeyPress> Prior:scroll-back(1,halfpage) \n\
        Shift <KeyPress> Next:scroll-forw(1,halfpage) \n\

Offline

#72 Today 18:44:46

fanderal
Member
Registered: 2017-01-14
Posts: 99  

Re: A Survey of User-made Content

@zapper, can say "didnt know that" about plenty of stuff I read here. smile  Does EDX-0's suggestion work for you?

@EDX-0, tried xresources a while back and for me, it was easier to tweak cmds in the fluxbox menu. Eg: got another xterm in the menu for aptitude, man pages, lsmod, etc. I added a geometry flag to the above posted menu entry so xterm opens to the screen height.

I've read that configuring tmux or xbindkeys can enable mouse wheel scrolling in xterm but haven't tried either. Also read gnome-terminal has built-in mouse wheel scrolling but the less gnome the better. How xterm is configured here works for me.

Offline

Board footer