Linux - Reddit – Telegram
Linux - Reddit
771 subscribers
4.19K photos
207 videos
39.9K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
Keybindings with a ^ ..... what are they?

I'v been using Luke Smith's LARBS rice for I3, and I love it, but there is 1 thing I can not figure out ...

in some apps, there are keybindings with a \^

​

\^B \^t \^F and similar on newsboat, neomutt, etc, and I have tried every possible key and nothing works ... what is the \^ prefix on the keybinding? what key sequence am I supposed to push?

https://i.redd.it/dfguffzcgof31.png

https://redd.it/comuu9
@r_linux
A simple unified keyboard automation tool for Wayland, X11, and Console

Introducing Hawck ([GitHub](https://github.com/snyball/Hawck).)

Linux with all it's combinations of window managers, display servers and desktop environments needs a key-rebinding system that works everywhere, and is simple to use.

Hawck intercepts key presses and lets you write Lua noscripts to perform actions or modify keys depending on your needs (see the GitHub page if you're running Wayland and are concerned about security.)

Your keyboard bindings will work on Wayland, X11, and every WM/DE you throw at them, as well as console ttys.

The ultimate goal of the project is to serve as a user-friendly Linux alternative to AutoHotkey, but this time with a sane noscripting language.

Want to make the caps lock key more useful, by binding it to control or escape?

key "caps" => replace "escape"
-- , or
key "caps" => replace "control"

Want to rebind caps-lock, but conditionally?

-- Pressing F7 will activate the replacement, and pressing F7
-- again will disable it.
mode("Caps => Ctrl mode", down + key "f7") + -up => {
key "caps" => replace "control"
}

Want to paste into a console tty, or a program that doesn't support pasting?

function getClipboard()
-- get-clipboard should be replaced with whatever works with your setup.
local p = io.popen("get-clipboard")
local clip = p:read("*a")
p:close()
return clip
end

shift + alt + key "v" => function ()
local clip_contents = getClipboard()
write(clip_contents)() -- Note the extra parens, write() returns a closure
end

Want to write "Hello" 10 times followed by a notification saying "World"? For, uh, some reason?

-- Note: down means that this will only activate when a key is pressed down.
-- You can also say `up + key "F12"` to activate on key-release, or
-- `-up + key "F12"` to activate on key-press and key-repeat.
down + key "F12" => (write "Hello ") * 10 .. say "World"

The noscripting language tries not to stray away from regular Lua syntax, but the extra operator `=>` was added.

More examples can be found on the GitHub page.

# How stable is it?

I've been running the master branch for a year without any problems. Your mileage may of course vary, depending on what you end up using it for.

Note that the Hawck GTK3 UI is still in an alpha state, and has a few unfinished/placeholder features, including "Simple Rebind." I've kept the "Simple Rebind" UI to get feedback on it.

# How do I install it?

Download or clone the git repo, and run the \`install.sh\` program from the command line (IMPORTANT: Don't use the .desktop file, you currently need to do it from the terminal.) This noscript has been tested for Ubuntu 18.04.

You will need to reboot the computer after running the installer, because it needs to add your user to a new group (with Ubuntu it seems like logging out and back in isn't enough.)

When you've started the computer back up again, run the following commands:

$ sudo systemctl start hawck-inputd
$ hawck-macrod
$ hawck-ui

PS: There is a known bug that sometimes causes \`hawck-ui\` to hang on startup, in that case, try agin.

Important note for people using sway, i3, openbox and similar minimal WMs: You need to have a [Polkit Authentication Agent](https://wiki.archlinux.org/index.php/Polkit#Authentication_agents) running to use the UI.

Move over to the settings tab, and change your keymap (this will hopefully be done automatically soon.)

You can now move on to the "Edit noscripts" tab and attempt to edit/enable the default test noscript.

If you want to keep using Hawck, and want to have it start up automatically, move over to Settings and click the autostart toggle button, you will be prompted for your password.

# I don't like the UI, can I use Hawck without it?

Sure.

To enable a noscript, create a symlink like so: `~/.config/hawck/enabled-s
cripts/my-noscript.lua -> ~/.config/hawck/noscripts/my-noscript.lua`.

When you save a noscript in your editor, `hawck-macrod` will automatically reload it.

This currently means that you will not be able to use the `=>` operator. See the GitHub page for how the (very simple) translation is made.

# Why did you call it Hawck, don't you know how to spell?

The name Hawck is a portmanteau of "Hack" and "AWK." The noscripting language takes inspiration from AWK, and the whole project started out as a bit of a hack.

# Planned features

* Key-bindings made for a specific keyboard, so that users can turn their second keyboard into a macro-board.
* Sharing the keyboard between multiple machines (there are tools that do this, but AFAIK not on Wayland.)

https://redd.it/condg8
@r_linux
Best apps for college student

I am running the latest ubuntu. I have found open office as a solid replacement for office. What other applications do you recommend for a college student?

https://redd.it/coraee
@r_linux
Submit your first Linux kernel patch in 6 minutes

I've recently looked into getting more into kernel development and found a lot of the information and guides out there quite verbose and confusing. I *hopefully* made a developer friendly article on how to hit the ground running on sending a kernel patch.

[https://medium.com/@adamzerella/how-to-become-a-linux-kernel-developer-20774c72ab07](https://medium.com/@adamzerella/how-to-become-a-linux-kernel-developer-20774c72ab07)

Let me know if anybody finds this type of content useful!

https://redd.it/cosb0x
@r_linux
Is it bad that i use kali linux?

Like i wanted to learn cyber security and since i used debian in the past kali looked good but now eveybody calls me an idiot 12 year old try hard. Is kali linux bad or something???

https://redd.it/cosipu
@r_linux
Stuck on step 1

I am complete Linux noob but I decided to dual boot on Windows 7 laptop (msi cx500 - intel/ati radeon).

MX live USB gives me a fatal error: no block device found

Ubuntu, Mint and Manjaro Live freeze to a black screen after what initially seems a successful boot.

I used two different sticks, etcher and rufus (btw rufus could not download its additional files). However all those run fine on my Windows 8.1 laptop (intel/nvidia).

Finally Xubuntu booted correctly, I created ext4 partition, installed and... Grub doesn't appear, Windows starts right away.

WTF? What could I be doing wrong? Is this some hardware problem? Should I try yet another distro or what. I am stuck.

https://redd.it/cou5y3
@r_linux
Redhat was offering a proprietary office suite for linux in 1996 for $495

I had completely forgotten about this. I was telling someone the other day that none of the early office suites/word processors were free. I had to pay for Wordperfect in 1990 to get through college classes. It came with a keyboard overlay to help you learn the keybindings.

Microsoft Word and Wordstar were also paid programs. StarWriter/StarOffice was also a paid office suite which was later included as a proprietary part of Caldera Openlinux. It was later bought and became OpenOffice.

But, I complete forgot [about Redhat and Applixware](https://web.archive.org/web/19961226192012/http://www.redhat.com/news/infoworld-apx.html)

Of course, even the kernel contained the OSS/Free drivers and, if you wanted the full functionality/compatibility that was available, you [had to pay $20 to get the proprietary kernel modules](https://web.archive.org/web/19981205020952/http://www.opensound.com/linux.html)

So, things were very different in the early days of linux, but I thought I'd provide these links as a look back on the bygone days. (BTW, [you had to pay for SuSE Linux in the earliest days. You couldn't get the entire thing for free](https://web.archive.org/web/19970709042628/https://www.suse.com/)

https://redd.it/couekf
@r_linux
Where can I find info on the snap store? How is it different to ubuntu software store?

says wickr snap not found but the snap is on the snap list?

Can't install?

https://redd.it/cov6og
@r_linux
A Box From The Past..

While this wasn't my first Linux distro, - that award goes to Mandrake, SuSE was the first version I stuck with and took seriously. I still have the box on my shelf.

Firefox v1.0, OpenOffice 2.0, Gnome 2.10, KDE 3.4. The manual inside is a good couple of inches thick. I miss having physical reference manuals, but times have indeed changed. I thought you'd like to reminesce a little with me, enjoy!

​

[SuSE 9.3](https://i.redd.it/flw950c02tf31.jpg)

​

[Gnome 2.1 KDE 3.4 Kernel 2.6.11](https://i.redd.it/5jkp5kc52tf31.jpg)

https://redd.it/covogw
@r_linux
when you find abandoned page of program you use every day
https://redd.it/cowjbj
@r_linux
Twenty years ago, Cowsay was released by Tony Monroe. Today I released the Flatpak version

Get it from Flatpak while it’s still hot:

https://flathub.org/apps/details/org.gnome.gitlab.Cowsay

You’re not dreaming. Cowsay is still amongst us and it’s now ready for the 21st century. It features all the latest modern functionality: It’s an Electron app, it fully integrates with IMAP, and it has a monthly subnoscription so you can export your cows to all the formats you like; .docx, .swf and .ai

Not really of cause. It’s essentially everything you’ve already grown familiar with. It comes pre-packaged with all cows and you can just type in the textbox to have the cow dynamically say your inspirational words. It even has partial support for emojis, although I did discover that emojis don’t work very well with mono-space fonts.

There are some obvious omissions in the first version, like thoughts, but I do intend to publish updates over time to implement such precious features. Another thing I want to try eventually, is to start with a quote of the day from WikiQuote, but that’s still a bit tricky as of now.

**About the process**

In the beginning of this year, I got more and more interested in Linux software development, and the ecosystem behind it. As such, I picked a humble goal and I started to work towards that. I was inspired by Lollypop, an app for which I occasionally log bug reports. The collaborative nature pulled me in, and since then working on Cowsay has become a nice side project.

The app is written in Vala, on top of the GNOME framework. For all the heat that GNOME gets, I found that the system is surprisingly intuitive once set up, and I like the strong stylistic consistency. Vala is also a joy to work with. It harbours great power, but it’s easier then C. The way how you can use Flatpak, Glade, and Builder together, and how they create a complete package of build tools, is really nice.

Some hurdles I did encounter. Save the inevitable challenges of learning a new language, there were challenges unique to working in a larger ecosystem like github.gnome.org As a software developer, I’ve never worked in a company larger then 50 people, and even of the companies that size, none were as professionally organised at the GNOME project: AppData.xml, desktop files, meson build noscripts… those did give me a healthy challenge.

On the other hand, I did gladly look at the code of Geary, (email client in Vala) and that helped me more then once. The amount of high quality production code that is suddenly openly available, is a real source of value in the Linux ecosystem. This is in sharp contrast with enterprise development behind closed doors, where you can only look at your own code or that of your colleagues, which is not healthy in the long run.

In the grand scheme of things, I’ve been a user and supporter of Linux for few years now, and this does feel like a natural step forward for myself as a software developer. At this point, I feel confident in working on Cowsay. I won’t make any time commitment, but I’m optimistic.

https://redd.it/cox6jn
@r_linux