Skip to content

Instantly share code, notes, and snippets.

@er2
Last active July 7, 2024 20:34
Show Gist options
  • Save er2/ba4b8909270660f26d2e2549a164045d to your computer and use it in GitHub Desktop.
Save er2/ba4b8909270660f26d2e2549a164045d to your computer and use it in GitHub Desktop.
Linux setup

grub-btrfs + snapper or timeshift

  • fonts-noto unifont # fonts with lots of international and obscure unicode characters
  • ttf-inconsolata
  • fish
  • guake
    • gnome settings shortcut
  • bitwarden
  • yay
  • set scaling ratio in Gnome Tweaks, not display settings

~/.config/fish/config.fish

set magenta (set_color magenta)
set yellow (set_color yellow)
set green (set_color green)
set red (set_color red)
set gray (set_color -o black)

# Fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'yes'
set __fish_git_prompt_showuntrackedfiles 'yes'
set __fish_git_prompt_showupstream 'yes'
set __fish_git_prompt_color_branch yellow
set __fish_git_prompt_color_upstream_ahead green
set __fish_git_prompt_color_upstream_behind red

# Status Chars
set __fish_git_prompt_char_dirtystate '⚡'
set __fish_git_prompt_char_stagedstate '→'
set __fish_git_prompt_char_untrackedfiles '☡'
set __fish_git_prompt_char_stashstate '↩'
set __fish_git_prompt_char_upstream_ahead '+'
set __fish_git_prompt_char_upstream_behind '-'

function fish_greeting
end

function fish_prompt
  set last_status $status

  set_color $fish_color_cwd
  printf '%s' (prompt_pwd)
  set_color normal

  printf '%s ' (__fish_git_prompt)

  set_color normal

  printf '§ '

end
~/.config/fish/conf.d
❯ cat find-the-command.fish 
source /usr/share/doc/find-the-command/ftc.fish
~/.config/fish/functions
❯ cat start_docker.fish 
function start_docker --wraps='podman system service -t 0 tcp://localhost:2376 && export DOCKER_HOST="tcp://localhost:2376"' --wraps='podman system service -t 0 tcp://localhost:2376 && export DOCKER_HOST="tcp://localhost:2376" &' --description 'alias start_docker=podman system service -t 0 tcp://localhost:2376 && export DOCKER_HOST="tcp://localhost:2376" &'
  podman system service -t 0 tcp://localhost:2376 && export DOCKER_HOST="tcp://localhost:2376" & $argv
        
end
  • podman
  • podman desktop
  • jetbrains toolbox
  • firefox
    • privacy badger
    • bitwarden
  • grub-btrfs or equivalent
  • nushell
  • micro text editor
  • containers/toolbx
  • gnome boxes
  • bottles
  • calibre

Put Windows

Gnome Shell extension for window arrangement keyboard shortcuts https://extensions.gnome.org/extension/39/put-windows/

git config --global status.showStash true

~/.config/micro/bindings.json

{
    "Alt-/": "lua:comment.comment",
    "CtrlUnderscore": "lua:comment.comment",
    "Ctrl-d": "DeleteLine",
    "Ctrl-s": "Save",
    "Ctrl-w": "DeleteWordLeft"
}

Firefox default zoom 120% text only

Set shortcut in GNOME settings:

  • Take screenshot interactively → super + shift + s

Firefox theme: https://addons.mozilla.org/en-US/firefox/addon/abstract-balanced/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment