Git Product home page Git Product logo

xero / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
1.9K 1.9K 114.0 33.53 MB

rice ๐Ÿš custom linux config files. as seen on r/unixporn #noricenolife neovim cultist. dotfiles are perpetual wip

Home Page: http://git.io/.files

License: Creative Commons Zero v1.0 Universal

Lua 17.86% Shell 78.65% C 1.79% Python 0.94% JavaScript 0.76%
aliases configs customization dotfiles neovim neovim-lua neovim-theme rice screenshots scripts shell themes tmux tmux-configs unix zsh zsh-theme

dotfiles's Introduction

___โ•ฑโ•ฒ  _____ โ•ฑโ•ฒ______ ____โ•ฑโ•ฒ   ___โ•ฑโ•ฒ
โ•ฒ _  โ•ฒโ•ฑ  .:โ•ฑโ•ฑ.:โ•ฒ____โ•ฑโ•ฑ_โ•ฒ_.  โ•ฒ โ•ฑ.โ•ฑ__ โ•ฒ
 โ•ฒโ•ฒ  โ•ฑ    โ•ฑโ•ฑ    ___โ•ฑโ•ฑ  .โ•ฒโ•ฑ _โ•ฑโ•ฑ โ•ฒ  โ•ฑ  โ•ฒ
 โ•ฑ.: โ•ฒ    โ•ฒ_.     โ•ฑโ•ฑ    _. โ•ฒโ•ฑ .:โ•ฒโ•ฑ   โ•ฑ
โ•ฑ____โ•ฑโ•ฒ  __โ•ฒโ•ฑ__  โ•ฑโ•ฑ______โ”‚ โ•ฑโ•ฒ_______โ•ฑ
       โ•ฒโ•ฑ      โ•ฒโ•ฑ        โ”‚โ•ฑx0^67^iMP!

dotfiles's People

Contributors

xero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles's Issues

understanding gnu stow

Hi,
I'm new to Stow and I'm having difficulties understanding how to manage the dotfiles properly.
My quest is: If you have to add a file, do you create it in the repo and then relaunch stow every time?
I know my question is off topic and I will remove it if you don't want to answare me but I really appreciate any kind of help.

'Rusto' figlet font

I noticed in xero_shell.gif and in aliases.zsh that you used a font called Rusto, but I can't find it anywhere, and it did not come installed with toilet on my system (Arch). Did you make it yourself? It's really pretty and I want it. :p

installer

decide on a methodology / implementation to auto install dotfiles.

  • bash file that creates symlinks?
  • homeshick?
  • something else?

unable install

 git clone [email protected]:xero/dotfiles.git
Cloning into 'dotfiles'...
The authenticity of host 'github.com (140.82.121.4)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

then

git clone --filter=blob:none --single-branch https://github.com/folke/lazy.nvim.git ~/.local/share/nvim/lazy 
fatal: destination path '/home/u/.local/share/nvim/lazy' already exists and is not an empty directory.

GNU Stow

Hello,

I have one question about GNU Stow. I learned, thanks to you, how to use GNU Stow with the -t option like this stow -t / my_folder. I am wondering how can I unstow it? I tried stow -D my_folder and stow -D / my_folder, but it doesn't work. Do you have any idea how to do this?

Thanks!

Useful Tip & Future Optimizations

Regarding: https://github.com/xero/dotfiles/blob/3b05bdfc36346f8d92a5af0a317c7f769bf7754a/bin/bin/epoch

In BASH 5.0, $EPOCHSECONDS was introduced, which stores seconds since Epoch, saving the need for all that stuff. Even in >= BASH 4.2, the printf builtint itself can already show SSE:

printf '%(%s)T\n' -1

The %(...)T format specification is just for most of the usual gubbins you'd give date(1) and other utilities and functions from other languages (e.g., strftime()).

Regarding formatting SSE, that's also easy with printf in BASH:

printf '%(%F_%X)T\n' SSE

The above would format the given SSE as a common timestamp.

You most likely want to store the date and/or time into a variable for later usage, but using command substitution and a subshell for this isn't fun. Believe it or not, printf has you covered there as well, as of BASH 3.1 (4.1 for array subscripts):

printf -v Timestamp '%(%F_%X)T\n' SSE

The above will grab a suitable timestamp, then shove it into a shell variable.

Essentially, date(1) is almost always redundant in BASH, with some obscure exceptions, such as date -d tomorrow, although this could easily be done with BASH as well. As I've been saying for years: "if you're using BASH, use BASH!" ;) This will help optimize your scripts in the future.

Merge xinitrc

Hello xero,

Saw that you've been using two different xinitrc files that can be merged:

#!/bin/sh
#
#          โ–ˆโ–ˆ          โ–ˆโ–ˆ   โ–ˆโ–ˆ                 
#         โ–‘โ–‘          โ–‘โ–‘   โ–‘โ–ˆโ–ˆ                 
#  โ–ˆโ–ˆ   โ–ˆโ–ˆ โ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  โ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 
# โ–‘โ–‘โ–ˆโ–ˆ โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆโ–‘โ–‘โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–ˆโ–ˆโ–‘โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–ˆโ–ˆโ–‘ โ–‘โ–‘โ–ˆโ–ˆโ–‘โ–‘โ–ˆ โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–ˆโ–ˆ
#  โ–‘โ–‘โ–ˆโ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆโ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ โ–‘ โ–‘โ–ˆโ–ˆ  โ–‘โ–‘ 
#   โ–ˆโ–ˆโ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆโ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ   โ–ˆโ–ˆ
#  โ–ˆโ–ˆ โ–‘โ–‘โ–ˆโ–ˆโ–‘โ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆโ–‘โ–ˆโ–ˆ  โ–‘โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆโ–ˆ   โ–‘โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 
# โ–‘โ–‘   โ–‘โ–‘ โ–‘โ–‘ โ–‘โ–‘โ–‘   โ–‘โ–‘ โ–‘โ–‘    โ–‘โ–‘  โ–‘โ–‘โ–‘     โ–‘โ–‘โ–‘โ–‘โ–‘  
#
#  โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“
# โ–‘โ–“ author โ–“ xero <[email protected]>
# โ–‘โ–“ code   โ–“ http://code.xero.nu/dotfiles
# โ–‘โ–“ mirror โ–“ http://git.io/.files
# โ–‘โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“
# โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘

# merge custom x resources
xrdb -merge "${HOME}/.Xdefaults" &

# start the terminal emulator daemon
urxvtd -q -f -o &

# keyring
gnome-keyring-daemon &

# wifi
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
(sleep 2s && nm-applet --sm-disable) &

# power management
(sleep 2s && xfce4-power-manager) &

# sound mixer
(sleep 2s && pnmixer) &

# volume keys daemon
(sleep 2s && xfce4-volumed) &

# compositing manager
#compton -b --config ~/.config/compton.conf &

# start thunar daemon
thunar --daemon &

# wallpaper
nitrogen --restore &

# configure touchpad
syndaemon -i 0.8 -d &
if egrep -iq 'touchpad' /proc/bus/input/devices; then
    synclient VertEdgeScroll=0 &
    synclient TapButton1=1 &
    synclient HorizTwoFingerScroll=1 &
fi

# clipboard manager
(sleep 3s && clipit) &

# keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
xset r rate 250 25 &

# disable system beep
xset b off &

# start the rock
mpd &

# setup fonts
xset +fp ~/.fonts &
xset fp rehash &

session=${1:-awesome}

case $session in
    awesome)
        Xdefaults
        # fix cursors. for a minute :/
        xsetroot -cursor_name left_ptr
        exec awesome
        ;;
    herbstluftwm)
        exec herbstluftwm --locked
        ;;
    *)
        printf '%s\n' 'System failure, abandon the ship!'
        ;;
esac

Replace startx in your zprofile with

exec xinit awesome -- :0 -nolisten tcp vt1

Also in your shell configuration file you can point another location for xinitrc

export XINITRC="$HOME/.config/xinitrc"

Is there are any reason why there are so many sleep in there ?

Cheers

aliases

small thing bothering me :|
alias vi="vim" and alias mkdir="mkdir -p" are present twice in the .zsh/aliases.zsh file.
๐Ÿ‘

Consider making an install script

Hi,

I like your setup and colors, especially nord colors :) Very nice job.
I would like to use it but it still requires quite a bit of manual work to install all the packages, etc. Would you consider making a shell script to bootstrap everything?
Thanks!

License of scripts in this repo

Some of your scripts are pretty impressive to a shell novice like me. (Others a bit silly ๐Ÿ˜‰ ).
Under what license are these scripts available? Can I reuse and adapt them?

question - where did you get the unicode in the tmux and nvim

I love what you have here, and I have taken some things from it, thank you. I have been looking for a good place to find some good unicode for a few things while customizing my own tmux and nvim. Where did you get yours from?
Specifically, I am looking for angle brackets, half circles and such that are full line height.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.