Skip to content

Bruno-366/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Desktop Enviroment

  1. login bash shell with .bash_profile

  2. startx (wrapper around xinit) with file .xinitrc

    1. i3wm with file ???

  3. vim with vimrc

Sound

Use ALSA instead of pulse-audio

export ALSA_CARD="Generic"

sets the default sound output device to the inbuilt speakers

using surf:

ALSA_CARD=Generic surf # this becomes redundant, its the implied default
ALSA_CARD=Headset surf # if you want to use the headset

Unfortunately, you can’t change the enviroment variables of an already running process. This means that if you want to change sound output from the inbuilt speakers to headsets, you would have to start a new process.

Surf

The file default.css will be default make everywebpage have inverted colors. This is a crude form of dark/night mode that works really well. If a page already has a dark theme, then turn off the inversion with CTRL+Shift+m.

.bashrc aliases surf so that if the command is run with empty args, it will use duckduckgo.com by default.

APL

Add an additional keyboard layout for APL in .xinitrc

Keyboard Ergonomics

In xorg, use capslock as CTRL, defined in .xinitrc

setxkbmap -option caps:ctrl_modifier

In vim, use fd instead of CTRL+C or ESC, defined in vimrc

noremap fd <C-c>
noremap! fd <C-c>

Shutdown, Poweroff, Suspend, Hibernate etc.

# use poweroff instead of:
# alias shutdown="shutdown -P now"

Finding modified files

pacman -Qkk

For example

   : # check which package owns a file
   : pacman -Qo /etc/i3status.conf
/etc/i3status.conf is owned by i3status

   : # If no changes were made:
   : pacman -Qkk i3status
i3status: 12 total files, 0 altered files

   : # If some changes were made:
   : pacman -Qkk i3status
backup file: i3status: /etc/i3status.conf (Modification time mismatch)
backup file: i3status: /etc/i3status.conf (Size mismatch)
backup file: i3status: /etc/i3status.conf (MD5 checksum mismatch)
backup file: i3status: /etc/i3status.conf (SHA256 checksum mismatch)
i3status: 12 total files, 0 altered files