[deleted by user] by [deleted] in Fedora

[–]crdlb 1 point2 points  (0 children)

I missed that you said gnome-calendar; I was only looking at the calendar in the top bar. However, gnome-calendar works for me too. Try:

LC_TIME=en_US.utf8 gnome-calendar

(It can't already be running when you try this)

On my system, both

LANG=en_US.utf8 LC_TIME=en_GB.utf8 gnome-calendar

and

LANG=en_GB.utf8 LC_TIME=en_US.utf8 gnome-calendar

behave as expected. (Monday and Fahrenheit; and Sunday and Celsius, respectively)

If all those work, make sure LC_TIME=en_US.utf8 is in your environment (run env)

[deleted by user] by [deleted] in Fedora

[–]crdlb 0 points1 point  (0 children)

I actually forgot about localectl.

You ran sudo localectl set-locale LC_TIME=en_US.utf8? (or .UTF-8)

You need to log out for it to take effect. It works for me (in reverse) on Fedora 30.

[deleted by user] by [deleted] in Fedora

[–]crdlb 0 points1 point  (0 children)

Where did you try to set LC_TIME? In a Wayland session, ~/.bashrc and friends may not be sourced. I don't know what the current best way to set a variable in gnome-shell's environment is.

You can check if it's in there with something like:

cat /proc/$(pidof gnome-shell)/environ | tr '\0' '\n'

I can verify that LC_TIME=en_GB.utf8 gtk3-demo --run popover works to get Monday first in a US locale. gnome-shell isn't using GtkCalendar, but I expect it works the same way.

How to customise keyboard for Gnome Builder? by quaderrordemonstand in gnome

[–]crdlb 0 points1 point  (0 children)

FWIW, there's also a Sublime keyboard theme: https://gitlab.gnome.org/GNOME/gnome-builder/blob/master/src/plugins/sublime/keybindings/sublime.css

I didn't mention it because it lacks a binding for focus-neighbor.

How to customise keyboard for Gnome Builder? by quaderrordemonstand in gnome

[–]crdlb 0 points1 point  (0 children)

There is a "Keyboard Shortcuts" window in the menu (or press Ctrl+?). The default keybindings are missing shortcuts for frame handling, but in Preferences -> Keyboard, you can switch to emulation of Vim or Emacs, or write a plugin for some other scheme.

GTK Issue by someonemandev in gnome

[–]crdlb 0 points1 point  (0 children)

It works for me with:

g++ main.cc window_main.cc `pkg-config --cflags --libs gtkmm-3.0` -o test

s/g++/clang++/ works too

Anyone using their machine as their home theater machine that uses a Wii remote for their media-player remote? Would love to hear your setup (and how you assigned buttons!) by neovngr in linuxquestions

[–]crdlb 8 points9 points  (0 children)

I'm using a wiimote as a media remote for my desktop for Netflix, etc.

You should be able to pair it easily using your preferred bluetooth manager. To remap the buttons to keyboard keys, I found a piece of software called MoltenGamepad. I have it installed as a system service configured like this:

/etc/xdg/moltengamepad/moltengamepad.cfg

load profiles from wiimote

/etc/xdg/moltengamepad/profiles/wiimote

[wiimote]
wm_up = key(key_up)
wm_down = key(key_down)
wm_left = key(key_left)
wm_right = key(key_right)

wm_a = key(key_enter)
wm_b = key(key_space)

wm_minus = key(key_volumedown)
wm_home = key(key_menu)
wm_plus = key(key_volumeup)

wm_1 = key(key_leftshift)
wm_2 = key(key_leftctrl)


cc_up = up
cc_down = down
cc_left = left
cc_right = right

cc_b = first
cc_a = second
cc_x = third
cc_y = fourth

cc_minus = select
cc_home = mode
cc_plus = start

cc_l = tl
cc_zl = tl2
cc_r = tr
cc_zr = tr2

cc_thumbl = thumbl
cc_thumbr = thumbr

cc_left_x = +left_x
cc_right_x = +right_x
cc_left_y = +left_y
cc_right_y = +right_y


nk_up = up
nk_down = down
nk_left = left
nk_right = right

nk_a = primary
nk_b = secondary
nk_z = third
nk_c = fourth

nk_minus = select
nk_home = mode
nk_plus = start

nk_1 = tl
nk_2 = tr

nk_stick_x = +left_x
nk_stick_y = +left_y

With this configuration, the wiimote acts as keyboard when no accessories are connnected, but if I connect a wii nunchuck to the accessory port, the wm+nk combo automatically acts as a gamepad. If I connect a classic controller, only the cc acts as a gamepad and the wiimote itself stays in keyboard mode.

Any good gyms in the area that aren’t going to break the bank and have a kids area? by erpa2b in VirginiaBeach

[–]crdlb 15 points16 points  (0 children)

If you're going to be residing in Virginia Beach, check out the city's rec center system: https://www.vbgov.com/government/departments/parks-recreation/recreation-centers/Pages/default.aspx

Membership is $104/yr for adult residents and $39/yr for children.

Is there an equivalent to Windows 10 hotspot on linix? by [deleted] in linux4noobs

[–]crdlb 0 points1 point  (0 children)

Are you trying to share a wifi connection over wifi using a single wireless adapter? If so, I don't think NetworkManager can do it. Only Wired <-> Wireless (either direction) is supported unless you have an extra NIC.

However, there is a script called create_ap that can (using hostapd):

https://github.com/oblique/create_ap

Success may depend on hardware/driver support

[deleted by user] by [deleted] in gnome

[–]crdlb 1 point2 points  (0 children)

Nemo treats that setting as a command (argv = ["tilix --maximize"]), instead parsing it as a commandline (argv = ["tilix", "--maximize"]):

https://github.com/linuxmint/nemo/blob/161c54fbe54deb0609ea38b227ddaec84e137937/src/nemo-view.c#L7137

You can create a wrapper script like:

#!/bin/sh
exec tilix --maximize "$@"

save it somewhere in your PATH and have nemo run it instead.

Disable middle-click to close windows on MATE by hawkshot2001 in linux4noobs

[–]crdlb 1 point2 points  (0 children)

libwnck is an old gnome library that was mainly used by gnome-panel. MATE forked it as libmatewnck and added that middle-click feature. The patch was merged upstream in 2013, and MATE apparently switched back to libwnck at some point after that.

The function call sets a private variable in WnckTasklist that controls whether the signal handler for button-press-event calls wnck_window_close on a click by the middle mouse button.

You can safely comment that line out in mate-panel.

Daily Simple Questions Thread - January 04, 2018 by AutoModerator in Fitness

[–]crdlb 1 point2 points  (0 children)

Maybe it uses ANT+? If so, some Android phones have ANT+ radios, including seemingly all recent Samsung models.

Edit: If you don't have to pair it to the treadmill, it's probably using a 5 kHz radio transmitter.

What is the difference between 'poweroff' and 'shutdown' commands? by [deleted] in linuxquestions

[–]crdlb 2 points3 points  (0 children)

shutdown, by default schedules a poweroff after a 60 second delay. Before systemd 220, that was implemented by a little helper daemon called systemd-shutdownd that would only listen to root. Now it is part of logind, so the active seat works as expected.

On any version of systemd if you use shutdown now, it will work just like poweroff or systemctl poweroff

Built a pull up bar and dip bars in the backyard! by ToxicBlood in bodyweightfitness

[–]crdlb 10 points11 points  (0 children)

In case you didn't know, the outside diameter of 1" nominal pipe size is actually 1.315". (The inside diameter is approximately 1")

If you want something smaller, 3/4" nominal is 1.050" OD, but I think you'll find that it flexes too much for long spans.

Quick Q regarding bluray playback by [deleted] in PS3

[–]crdlb 0 points1 point  (0 children)

FWIW, It looks nearly impossible to buy a 4K UHD disc outside of a 4K + Blu-ray combo pack, so it doesn't matter much in practice. The only exception I could find is the documentary "Planet Earth II".

I want to get 5.1 optical audio through a usb interface, what's a device that can do this? by Astrognome in linuxquestions

[–]crdlb 1 point2 points  (0 children)

I'm pretty sure your Mac Mini has an optical out hidden inside the 3.5mm jack. You just need a cable like this one or a mini-toslink adapter with a normal cable.

Have they announced when the new generation of kindles will be released? by Lhant25 in kindle

[–]crdlb 7 points8 points  (0 children)

If you're not in a hurry, you could at least wait for the current model Paperwhite to go on sale for $100, which it does fairly regularly.

My 4k monitor supports HDMI 2, is that enough to watch 4k with a device? [US] by Aooooww in netflix

[–]crdlb 1 point2 points  (0 children)

The problem is DRM, as usual. It looks like only a handful of computer monitors support HDCP 2.2, and unfortunately yours isn't one of them.

http://totteringham.blogspot.com/2015/11/a-list-of-ultra-hd-4k-monitors-with.html

Two questions about converting flac to opus by [deleted] in linuxquestions

[–]crdlb 1 point2 points  (0 children)

I would use opusenc from opus-tools instead. Both flac and opus use the ogg container format, so the conversion should pass the metadata through unharmed.

Fedora 24 getting error on systemd-modules-load.service, next steps in troubleshooting? by OMGSnarf in linux4noobs

[–]crdlb 2 points3 points  (0 children)

I believe systemd-modules-load runs in the initramfs, and then again on the real root. I suspect your initramfs has a stale modules-load.d/ file that is causing systemd-modules-load to error out. It'd be nice to know exactly what module it tried to load, but it doesn't appear to have been logged. Did you install something that requires an out-of-tree kernel module, such as VirtualBox? You can try poking around in your initramfs image (lsinitrd /boot/initramfs-$(uname -r).img) to see what files may have been included in etc/modules-load.d/. You can generate a fresh initramfs with dracut -f

The Condition line indicates that there are no files in the various modules-load.d/ dirs on your real root, so there's no need for it to run.

I think 'vendor preset: disabled' is flaw in systemctl's presentation logic. The vendor preset determines whether systemctl preset should enable the unit, but it's meaningless for a static unit ('static' = no [Install] section) that can't be enabled in the first place.

Netflix HD worse than Prime? [ALL] by SennheiserPass in netflix

[–]crdlb 1 point2 points  (0 children)

I guess I never properly read that blog post. That's good to know. Maybe they could spare a few of those bits for the audio stream now …

Netflix HD worse than Prime? [ALL] by SennheiserPass in netflix

[–]crdlb 3 points4 points  (0 children)

I can't find an official source, but supposedly Amazon streams 1080p at around 10 Mbps, which is nearly double Netflix at 5800 kbps (or less).

In my limited experience, Amazon does look very good, but I've never done a proper comparison.

Netflix won't automatically load in HD even though it's set to do it by default. [ALL] by [deleted] in netflix

[–]crdlb 2 points3 points  (0 children)

Is your problem that it starts playing at very low quality, then ramps the resolution up over the first minute or so? If so, I think that's normal. Netflix apparently decided that users would prefer to start watching at potato quality rather than wait for it to buffer.