Skip to content

tricks i wanna save so i don't need to search for them again

Notifications You must be signed in to change notification settings

Doomer-Cat/random-arch-or-linux-tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

(WIP) = Work In da Progress

(?) = not sure if grammar or what i'm saying makes sense (or works?)

1. Change colors vc & login shell

1.1 /etc/issue

see 1.2 for explanation on colors

/etc/issue:

\e]P01d2021\e]P1fb4934\e]P2b8bb26\e]P3fabd2f\e]P483a598\e]P5d3869b\e]P68ec07c\e]P7ebdbb2\e]P83c3836\e]P9fb4934\e]PAb8bb26\e]PBfabd2f\e]PC83a598\e]PDd3869b\e]PE8ec07c\e]PFebdbb2\ec
Arch Linux \r (\l)

Note: The line has to be appended since the shell needs to be cleared (?) for no artifacting

$HOME/.bashrc

# gruvbox dark hard (?)
    if [ "$TERM" = "linux" ]; then
    echo -en "\e]P01d2021" #black
    echo -en "\e]P83C3836" #darkgrey
    echo -en "\e]P1FB4934" #darkred
    echo -en "\e]P9FB4934" #red
    echo -en "\e]P2b8bb26" #darkgreen
    echo -en "\e]PAb8bb26" #green
    echo -en "\e]P3FABD2F" #brown
    echo -en "\e]PBFABD2F" #yellow
    echo -en "\e]P483A598" #darkblue
    echo -en "\e]PC83A598" #blue
    echo -en "\e]P5d3869b" #darkmagenta
    echo -en "\e]PDd3869b" #magenta
    echo -en "\e]P68EC07C" #darkcyan
    echo -en "\e]PE8EC07C" #cyan
    echo -en "\e]P7EBDBB2" #lightgrey
    echo -en "\e]PFEBDBB2" #white
    clear #for background artifacting
fi

NOTE: This only changes the console & not the login shell

1.3 lydm

/lib/systemd/system/ly.service

...
[Service]
Type=idle
ExecStartPre=/usr/bin/printf '%%b' '\e]P01D2021\e]P7EBDBB2\ec'
...

2. Use ranger with qutebrowser

2.1 $XDG_CONFIG_HOME/qutebrowser/config.py

c.fileselect.single_file.command = ['foot', '-e', 'ranger', '--choosefile', '{}']
c.fileselect.multiple_files.command = ['foot', '-e', 'ranger', '--choosefiles', '{}']

About

tricks i wanna save so i don't need to search for them again

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published