Linux

From Traxel Wiki
Revision as of 17:57, 28 November 2024 by RobertBushman (talk | contribs)
Jump to navigation Jump to search

See Also: CLI_Fu

Control-D

set -o ignoreeof

XFCE4

  • Set the frequency to 30 hz
  • xrandr --output HDMI-0 --scale .75x.75

Cinnamon

Workspaces

Keybindings (from GPT)

In the Cinnamon desktop environment, the behavior you’re experiencing with the Alt key and mouse clicks is likely related to window management settings, particularly those concerning window dragging or resizing. Cinnamon uses the Alt key as a modifier for certain window actions by default. Here’s how you can investigate and adjust these settings:

System Settings

  1. Window Tiling and Edge Flip: Navigate to System Settings > Windows > Behavior. Here, you’ll find various options related to window actions. Although it may not directly mention the Alt key, it’s a good place to start.
  2. Window Snapping: While in the Windows section, also check settings related to window snapping or edge resistance. Sometimes, these features can interfere with normal mouse operations.

Keyboard Shortcuts

  1. Keyboard Shortcuts: Go to System Settings > Keyboard > Shortcuts. Look through the categories for any actions bound to Alt+Click. You’re most interested in shortcuts under the “Windows” or “System” categories, but it’s worth checking others in case of custom bindings.
  2. Extended ASCIIL:
    setxkbmap -option compose:rctrl


Dconf Editor

If the above steps don’t reveal any useful settings to change, you might need to delve into dconf settings. Cinnamon, like GNOME, stores many of its configurations in dconf. Use the Dconf Editor to explore these settings, but proceed with caution—incorrect changes can affect your desktop’s behavior.

  1. Install Dconf Editor: If you don’t have it installed, you can usually find it in your package manager. Install it via your package manager or by running a command like sudo apt-get install dconf-editor in the terminal.
  2. Explore Cinnamon Settings: Open Dconf Editor and navigate to the /org/cinnamon/ path. Look for settings related to mouse or window management, particularly anything that might involve modifier keys like Alt.
  3. Check GNOME Settings: Since Cinnamon is forked from GNOME, some underlying settings might still reside in GNOME’s namespace. Check /org/gnome/desktop/wm/ preferences for anything related to keybindings or mouse actions.

Looking Elsewhere

  • Cinnamon Version: Ensure your Cinnamon and Linux Mint (assuming you’re using Mint) are up to date. Sometimes, behavior changes or bugs are fixed in newer versions.
  • Community Forums and Support: If the settings within your control don’t seem to affect this behavior, consider asking for help on the Linux Mint forums, Cinnamon’s GitHub issues page, or other community support channels. It’s possible other users have encountered and solved this issue, or it might be an undocumented feature or bug.

By investigating these areas, you should be able to identify and adjust any settings causing the Alt key to capture mouse clicks differently than expected.

Blender Workaround

Alt is necessary for example to select a loop of edges. I use left button to select things in blender (not the default right button) so Alt + Left button in blender is to select an edge loop (you do this a lot of times) but this is also to grab a window in Linux so blender does nothing.

So I finally managed to find a workaround (better than going to the menu in blender and edges/ select edgeloop using the mouse that I was using (well, really I modified the w menu to have it as first entry as I have also the edge, faces, vertices menus in the w menu). So the way is to do this:

In Cinnamon Settings / Keyboard / Keyboard shortcuts: Select Cinnamon to the left and then to the right you see “Menu button” is mapped to Super_L (the key between ctr and alt). Click on it to change it and push backspace to delete so it is “unassigned”. Or perhaps you want map this showing of the menu to other key like Super_R but I just use the mouse to go to the menu. Now I have Super_L free to use in blender instead Alt.

So in Blender: User Preferences / Input and in 3DView/Mesh/ there are two Loop Select, first one using Alt + mouse select and the second Shift + Alt + mouse select. Change in both: uncheck Alt and check Cmd to the right of Alt. Now when selecting an edge loop I use Cmd + mouse select and Shift+Cmd+mouse select for adding an edge loop to the selection.

Documents

Pandoc

pandoc -f markdown -t mediawiki foo.md > foo.mw

PDF to Images

convert -density 300 -colorspace Gray input.pdf page-%d.png

Firefox

https://old.reddit.com/r/programming/comments/18v16ee/in_2024_please_switch_to_firefox/

Updates

Kill Updates With Fire: https://support.mozilla.org/en-US/questions/1327455

$ cat /usr/local/share/firefox/distribution/policies.json 
{
  "policies": {
    "DisableAppUpdate": true
  }
}

Containers

Secure Connection Failed

  1. In the Location bar, type about:config and press Enter. The about:config "This might void your warranty!" warning page may appear.
  2. Click I'll be careful, I promise! to continue to the about:config page.
  3. copy the next security.ssl.enable_ocsp_stapling and paste it in the search field
  4. double-click on it to make it false
  5. close the page, exit firefox and restart it.

Keybindings

C-M-<backspace> Kill X Server

Preferences > Keyboard > Layouts > Options > Key Sequence to kill the X Server

Checking

xev: Launches a window that logs key events.

Peripherals

Wacom Tablet

Storage

Mounting

$ udisksctl unmount -b /dev/sdb2
$ udisksctl mount -b /dev/sdb2

Listing

lsblk

to list the storage devices

ext4 on Windows

# Mount Disk:
wsl --mount <DiskPath>
# To list the available disks in Windows, run:
wmic diskdrive list brief
# To unmount and detach the disk from WSL 2, run
wsl --unmount <Diskpath>

Renaming

EXT[234]

sudo e2label /dev/sdXN new-label

FAT32

sudo dosfslabel /dev/sdXN new-label

NTFS

sudo ntfslabel /dev/sdXN new-label