1
0
Fork 0

Update 2019-07-07

This commit is contained in:
Nguyễn Gia Phong 2019-07-07 12:48:10 +07:00
parent 92fa2f573e
commit cd64877d15
33 changed files with 52 additions and 10 deletions

View File

@ -1,9 +1,14 @@
# dotfiles
Dotfiles of my Debian testing, managed by GNU Stow.
Dotfiles of my Debian testing and Fedora workstation, managed by GNU Stow.
![](screenshot.png)
![Debian testing](debian-screenshot.png)
The Debian desktop uses awesome, bash, Git, Luakit, ranger, Vim, XTerm
The Debian desktop uses awesome, bash, Git, Firefox, ranger, Vim, URxvt
and Zathura. Most of these applications are themed with the
[srcery](https://github.com/srcery-colors/srcery-vim) colorscheme.
![Fedora workstation](fedora-screenshot.png)
The Fedora desktop is vanilla GNOME with Emacs. Yes you can run for systems
in parallel: GNU/Linux, systemd, GNOME JS VM and Emacs.

View File

@ -302,6 +302,7 @@ end
screen.connect_signal("property::geometry", set_wallpaper)
awful.screen.connect_for_each_screen(function (s)
set_wallpaper(s)
-- Each screen has its own tag table.
awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, s,
awful.layout.layouts[1])
@ -453,8 +454,8 @@ local globalkeys = awful.util.table.join(
{description = "open GVim", group = "launcher"}),
awful.key({modkey}, "e", spawner"emacsclient -c",
{description = "open Emacs", group = "launcher"}),
awful.key({modkey}, "b", spawner"luakit",
{description = "open Luakit", group = "launcher"}),
awful.key({modkey}, "b", spawner"qutebrowser",
{description = "open qutebrowser", group = "launcher"}),
awful.key({modkey, "Shift"}, "b", spawner"torify luakit --nounique",
{description = "open torified Luakit", group = "launcher"}),
awful.key({modkey}, "f", spawner"firefox",

View File

@ -53,7 +53,7 @@ theme.hotkeys_fg = theme.fg_normal
theme.useless_gap = 0
theme.border_width = 2
theme.border_normal = theme.bg_focus
theme.border_normal = '#353535'
theme.border_focus = theme.orange
theme.border_marked = theme.red

View File

Before

Width:  |  Height:  |  Size: 612 KiB

After

Width:  |  Height:  |  Size: 612 KiB

View File

@ -1,6 +1,6 @@
*foreground: #fce8c3
*background: #1c1b19
*cursorColor: #fce8c3
*.foreground: #fce8c3
*.background: #1c1b19
*.cursorColor: #fce8c3
*.color0: #1c1b19
*.color1: #ef2f27
*.color2: #519f50

View File

@ -103,8 +103,15 @@ alias fpc='fpc -O1 -XS -gl'
alias mpa='mpv --no-video --loop=inf'
alias raku=perl6
alias x='cd $HOME && startx && cd -'
alias backup='rsync -avh --delete /home/ /data/Home/'
eval $(thefuck --alias)
function ipfs-cors {
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://0.0.0.0:5001", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
systemctl restart --user ipfs
}
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).

View File

View File

View File

2
emacs/.swank.lisp Normal file
View File

@ -0,0 +1,2 @@
(setf swank:*globally-redirect-io* t)
(setf swank:*communication-style* :fd-handler)

BIN
fedora-screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 KiB

10
fedora/.bash_profile Normal file
View File

@ -0,0 +1,10 @@
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export GOPATH=$HOME/.local/share/go
export PATH=$PATH:$HOME/.local/bin:$GOPATH/bin:$HOME/.cargo/bin

17
fedora/.bashrc Normal file
View File

@ -0,0 +1,17 @@
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
alias stow='stow -t /home/436e58'
alias gcc='gcc -O2 -lm'
alias g++='g++ -O2 -lm'
alias fpc='fpc -O1 -XS -gl'
alias raku='rlwrap perl6'
alias backup='rsync -avh --delete /home/ /data/Home/'

View File

@ -10,7 +10,7 @@ if has("patch-7.4.710")
set list listchars+=space,tab:\ \
endif
set tabstop=8 expandtab shiftwidth=2 softtabstop=-1 smarttab
set dictionary=/usr/share/dict/words
set ignorecase infercase dictionary=/usr/share/dict/words
set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
set omnifunc=syntaxcomplete#Complete
set diffopt+=algorithm:patience