Skip to content

Latest commit

 

History

History
165 lines (124 loc) · 4.28 KB

File metadata and controls

165 lines (124 loc) · 4.28 KB

Fedora

I used v42 (Adams) of the Fedora i3 spin when I initially wrote this. That version of this repo is tagged fedora42.

I have since upgraded to Fedora 43 and switched to Sway. There is a Fedora Sway Spin.

Hardware

  • Lenovo ThinkPad X1 Carbon Gen 12, model 21KDS27P00
  • Intel(R) Core(TM) Ultra 7 165U (14 CPUs)
  • 32 GB RAM

Sway

I usually use just three workspaces in the following order:

My muscle memory just goes to one of the above with mod-{1,2,3}. Then inside any of them I use an additonal abstraction (tab groups, tmux or buffers) to manage multiple instances.

xremap

I use xremap on Wayland to implement the following key bindings in Chrome.

GNU      CUA
--------------------------------
ctrl+a   home
ctrl+e   end
alt+f    ctrl-right
alt+b    ctrl-left
ctrl+k   select-all in front of cursor and cut
ctrl+u   select-all and delete
ctrl+d   delete
ctrl+p   up
ctrl+n   down
ctrl+y   paste

See my xremap config for details.

Terminal

I am now using foot terminal with this foot.ini.

ssh-agent

I start ssh-agent with a systemd user service.

Brightness

I use brightnessctl to control the screen brightness.

For example, dim the screen 10% as many times as needed.

brightnessctl set 10%-

Network

I connect to my company VPN and other networks wtih nmtui

sudo dnf install nmtui

Nerd Fonts

These are fonts that have been patched with extra glyphs and symbols. catppuccin/tmux requires these so that its extra status symbols do not show up as squares.

mkdir -p ~/.local/share/fonts/NerdFonts && cd ~/.local/share/fonts/NerdFonts
curl -L -o JetBrainsMono.zip \
  https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip
unzip -o JetBrainsMono.zip
fc-cache -f

tmux

See tmux.md.

Emacs

sudo dnf install emacs

I have the following in my .emacs to control the colors and font.

;; Appearance — faces are the canonical place for colors and fonts
(set-face-attribute 'default nil :font "JetBrainsMono Nerd Font-14" :foreground "#00FF00" :background "#000000")
(set-face-attribute 'cursor  nil :background "lime")
(set-face-attribute 'mouse   nil :foreground "red")
(set-face-attribute 'region  nil :foreground "black" :background "grey")

I am not including my ~/elisp/ and .emacs here for now.

Monitors

I used to use three external monitors. Now I just use one. I use wlr-randr to make it easy to switch between my laptop screen and an external monitor.

sudo dnf install wlr-randr

I confiure two scripts which I symlink from ~/bin:

IronKey

I unlock and lock my IronKey with ~/bin/iron which requires:

sudo dnf install libgcc.i686 glibc.i686
sudo mkdir /mnt/iron{,-iso}

The above works with my Imation Basic D250 Flash Drive (D2-D250-B08-3FIPS).

OpenShift

See openshift.md

Screenshots

sudo dnf install grim slurp feh

I have the following in my ~/.config/sway/config

bindsym Print exec grim ~/screenshot.png
bindsym $mod+Print exec grim -g "$(slurp)" ~/screenshot.png

So I can then do this:

  • PrtSc catpure full screen
  • mod+PrtSc turn mouse into cross-hairs so I can highlight what I want to capture

Rename ~/screenshot.png and use feh to view the image.

Packages

Other packages

sudo dnf install mupdf htop iftop rpm-build