Skip to content

dmyTRUEk/.dotfiles

Repository files navigation

dmyTRUEk's dotfiles

It works on Arch, Manjaro, and any other GNU/Linux distro, where you can install all required programs.

Table of Contents:

Configs:

Text editors:

Sway related:

Sway: config + scripts

File managers and viewers:

Terminal Emulators:

Other:

Setup Script:

  • setup-file-links.sh - creates symbolic links in desired locations to real dotfiles (real dotfiles located in ~/.dotfiles/).

Screenshot:

Screenshot

Useful Links:

Other Sway dotfiles:

Problems and Troubleshooting:

Run JetBrains (or maybe other Java based apps)

Solution: add env _JAVA_AWT_WM_NONREPARENTING=1 to app's .desktop file.

Or just run _JAVA_AWT_WM_NONREPARENTING=1 <your_app_name>.

Wallpaper (Background) doesn't change

Solution: install swaybg package.

Skype don't remember login

Install gnome-keyring package.

Some symbols isn't displayed correctly (eg in waybar)

Solution: install corresponding package:

  • App icons in Sway (eg Wifi, Sound, Brightness, Keyboard layout, Firefox, Telegram, Discord, etc) -> ttf-nerd-fonts-symbols-2048-em-mono (or try ttf-font-awesome?).
  • Japanese -> adobe-source-han-sans-jp-fonts.

Setup default file opener

Solution: run xdg-mime default <program>.desktop <filetype>. You can find your program's desktop file at ~/.local/share/applications/ or /usr/share/applications/.

For example:

  • xdg-mime default org.pwmt.zathura.desktop application/pdf
  • xdg-mime default ranger-by-kitty.desktop inode/directory
  • xdg-mime default nvim-in-alacritty.desktop text/plain

Other useful commands to find out the issue:

  • xdg-mime query filetype myfile.txt => text/plain
  • xdg-mime query default text/plain => nvim-in-alacritty.desktop
  • xdg-open myfile.txt => opens a file by first possible application
  • XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default text/plain => shows files that it searches in (source)

If none of the above helps, try updating desktop database by this command: (source)

update-desktop-database ~/.local/share/applications/

source

Screenshare doesn't work

  • in Firefox:
    Solution: google webrtc?
  • in Discord, Telegram:
    Solution:
    1. Launch OBS
    2. Translate your screen to virtual camera.
      If it is not available, install v4l2loopback-dkms (or follow this tutorial).
    3. Select virtual camera and then enable it in discord/telegram.

Screenrecording

Solution: use OBS or wf-recorder.

Mouse Cursor in some app is wrong

Solution: set XCURSOR_THEME=your_cursor_theme before launching app.

Enviroment variables of two (or more) DE/WM conflicts

Solution: in /usr/share/wayland-sessions/sway.desktop write Exec=env XDG_CURRENT_DESKTOP=sway sway.

Kdenlive error:

  • mlt_repository_init: failed to dlopen: install libsdl (on arch: sdl_image).

Ranger crashes whole Sway session:

Steps to reproduce: scroll in folder with many files with preview.

Explanation: some process takes up all memory, in my case identify process (looks like) had memory leak when trying to identify .djvu file, and identify binary belongs to imagemagick (which can be verified by man identify).

Workaround: uninstall imagemagick.

TODO:

  • ! meta: remove screenshots from .git/, so they don't take up space
  • neovim: better autocompletitions:
    • set first option as default selected (sometimes it is, sometimes not)
    • sort (keywords (true/false), vars, funcs (local, global, external lib's, rust's), text(aka buffer))
  • neovim: find/make binds for var_name <-> VarName <-> VAR_NAME
  • neovim: change default rust snippets for macros (println!(), todo!(), dbg!()(also fix cursor position)) to have ; at the end
  • sddm: enable "tap to click"
  • sway: bind for cut text and paste it in upper/lower case
  • ranger: refactor maps (add two/three spaces after map x)
  • sway: do smt with sddm.service, so that it dont freeze shutdown and reboot for 10 seconds
  • zathura: make better color for f(follow link/ref)
  • sway: in window resizing mode add binds for move window till edge, especially discord pop-up, etc
  • ranger: binds for compressing/extracting archives (zip, 7z, tar.gz, tar?)
  • lock screen: fix bind: Win+Esc(physically Esc, but caps in os) presses caps, so password then is capsed
  • sway: black screen while startup -> is it possible to set some image while it's loading, so there is no black screen
  • waybar,current layout: if caps is enabled: en->EN, ua->UA (for caps try use this or just read /sys/class/leds/input3::capslock/brightness)
  • zoom: fix crashes when join by link (how?)
  • sway-relative-keyboard-rs, systemd: even though it is systemd service, it sometimes stops when reloading sway config
  • sway?: make Meta+Shift+Enter terminal be in scratchpad by default
  • kdeconnect: fix mouse movement (impossible?)