Browse Source

Fixed Local/Share/Applications

main
Yigit Colakoglu 4 years ago
parent
commit
b490adebce
13 changed files with 23 additions and 14 deletions
  1. +4
    -2
      README.md
  2. +0
    -1
      config/.gitignore
  3. +2
    -0
      config/mimeapps.list
  4. +1
    -1
      config/mpd/mpd.conf
  5. +1
    -0
      config/vim/after/ftplugin/tex.vim
  6. +1
    -0
      config/vim/plugin/lightline-bufferline.vim
  7. +1
    -1
      config/vim/plugin/vim-ripgrep.vim
  8. +4
    -0
      config/vim/vimrc
  9. +3
    -3
      local/bin/dmenu-edit
  10. +2
    -2
      local/bin/status-bar/date
  11. +3
    -3
      local/bin/status-bar/weather
  12. +1
    -0
      local/share/.gitignore
  13. +0
    -1
      local/share/vim/.gitignore

+ 4
- 2
README.md View File

@ -20,9 +20,11 @@ Have fun! Another copy of all of this is [here](https://git.yigitcolakoglu.com/y
## Installation ## Installation
Just run Just run
```sh ```sh
git clone --recurse-submodules https://github.com/theFr1nge/dotfiles.git ~/.dotfiles && ~/.dotfiles/install.sh git clone --recurse-submodules https://github.com/theFr1nge/dotfiles.git ~/.dotfiles && ~/.dotfiles/install.sh
``` ```
This will download everything you need. After that, I have a list of all the packages I have installed on my machine in the directory arch-setup/. This will download everything you need. After that, I have a list of all the packages I have installed on my machine in the directory arch-setup/.
If you have any problems regarding the setup, you should first check whether you have missing packages. If you have any problems regarding the setup, you should first check whether you have missing packages.
After the clone process, it is pretty straightforward, you can run the `install.sh` script which creates necessary symlinks. After the clone process, it is pretty straightforward, you can run the `install.sh` script which creates necessary symlinks.
@ -38,6 +40,6 @@ You might want to edit your crontab and the ~/.config.env.
* [X] Neomutt further config * [X] Neomutt further config
* [X] Dwmblocks entry for tracking last mailsync time * [X] Dwmblocks entry for tracking last mailsync time
* Fix ISO4755 and externalpipe conflict
* [ ] Better documentation
* [X] Fix ISO4755 and externalpipe conflict
* [ ] Better documentation (Perhaps an auto-documentation tool written in python?)
* [X] Dmenu for restarting certain processes like dwm, dwmblocks, dunst, mconnect * [X] Dmenu for restarting certain processes like dwm, dwmblocks, dunst, mconnect

+ 0
- 1
config/.gitignore View File

@ -6,7 +6,6 @@
!antibody !antibody
!antibody/** !antibody/**
!BetterDiscord !BetterDiscord
!BetterDiscord/**
!calcurse !calcurse
!calcurse/hooks !calcurse/hooks
!dunst !dunst


+ 2
- 0
config/mimeapps.list View File

@ -24,3 +24,5 @@ x-scheme-handler/mailto=neomutt.desktop
message/rfc822=userapp-neomutt.desktop message/rfc822=userapp-neomutt.desktop
application/x-directory=lf.desktop application/x-directory=lf.desktop
[Added Associations]
application/javascript=gvim.desktop;vim.desktop;

+ 1
- 1
config/mpd/mpd.conf View File

@ -20,5 +20,5 @@ audio_output {
} }
input_cache { input_cache {
size "512 MB"
size "1 GB"
} }

+ 1
- 0
config/vim/after/ftplugin/tex.vim View File

@ -0,0 +1 @@
setlocal wrap linebreak nolist

+ 1
- 0
config/vim/plugin/lightline-bufferline.vim View File

@ -1,4 +1,5 @@
set showtabline=2 set showtabline=2
set guioptions-=e
let g:lightline#bufferline#show_number = 2 let g:lightline#bufferline#show_number = 2
let g:lightline#bufferline#shorten_path = 0 let g:lightline#bufferline#shorten_path = 0


+ 1
- 1
config/vim/plugin/vim-ripgrep.vim View File

@ -1,3 +1,3 @@
" bind K to search word under cursor " bind K to search word under cursor
nnoremap K :Rg <C-R><C-W><CR>
nnoremap ,K :Rg <C-R><C-W><CR>
cnoreabbrev <expr> Ag ((getcmdtype() is# ':' && getcmdline() is# 'Ag')?('Rg'):('Ag')) " Map Ag to Rg as well cnoreabbrev <expr> Ag ((getcmdtype() is# ':' && getcmdline() is# 'Ag')?('Rg'):('Ag')) " Map Ag to Rg as well

+ 4
- 0
config/vim/vimrc View File

@ -33,6 +33,10 @@ map <Leader>gs :Gstatus<CR>
" Recently edited files " Recently edited files
map <Leader>h :History<CR> map <Leader>h :History<CR>
" map gj and gk to j and k for seamless movement in tex
map j gj
map k gk
" CtrlP use FZF (faster!) " CtrlP use FZF (faster!)
nnoremap <C-p> :Files<CR> nnoremap <C-p> :Files<CR>
nnoremap <leader>b :Buffers<CR> nnoremap <leader>b :Buffers<CR>


+ 3
- 3
local/bin/dmenu-edit View File

@ -13,10 +13,10 @@ selection=$(echo -e "$items\n$scripts\n$suckless" | $DMENU)
if [ ! "$selection" = "" ]; then if [ ! "$selection" = "" ]; then
if [ $(echo $selection | cut -d"/" -f 1) = "scripts" ]; then if [ $(echo $selection | cut -d"/" -f 1) = "scripts" ]; then
st -c vim -n vim -e vim "$(echo $selection | sed -n "s|scripts/|$HOME/.dotfiles/local/bin/|p")"
st -c vim -n vim -e $EDITOR "$(echo $selection | sed -n "s|scripts/|$HOME/.dotfiles/local/bin/|p")"
elif [ $(echo $selection | cut -d"/" -f 1) = "suckless" ]; then elif [ $(echo $selection | cut -d"/" -f 1) = "suckless" ]; then
st -c vim -n vim -e vim "$(echo $selection | sed -n "s|suckless/|$HOME/.dotfiles/suckless/|p")"
st -c vim -n vim -e $EDITOR "$(echo $selection | sed -n "s|suckless/|$HOME/.dotfiles/suckless/|p")"
else else
st -c vim -n vim -e vim "$(echo $selection | sed -n "s|config/|$HOME/.dotfiles/config/|p")"
st -c vim -n vim -e $EDITOR "$(echo $selection | sed -n "s|config/|$HOME/.dotfiles/config/|p")"
fi fi
fi fi

+ 2
- 2
local/bin/status-bar/date View File

@ -22,7 +22,7 @@ if [ ! "$next" = "" ]; then
name=$(echo "$next" | cut -d ' ' -f 5- -) name=$(echo "$next" | cut -d ' ' -f 5- -)
time_left=$(date --date="$(echo "$next" | cut -d '[' -f2 | cut -d ']' -f1 )" "+%k%M") time_left=$(date --date="$(echo "$next" | cut -d '[' -f2 | cut -d ']' -f1 )" "+%k%M")
if [ "$time_left" -lt 30 ]; then
if [ "$time_left" -lt 7 ]; then
if [ ! -f "$XDG_CACHE_HOME/calcurse" ];then if [ ! -f "$XDG_CACHE_HOME/calcurse" ];then
touch "$XDG_CACHE_HOME/calcurse" touch "$XDG_CACHE_HOME/calcurse"
fi fi
@ -30,7 +30,7 @@ if [ ! "$next" = "" ]; then
if [ "$(grep "$name" "$XDG_CACHE_HOME/calcurse")" = "" ]; then if [ "$(grep "$name" "$XDG_CACHE_HOME/calcurse")" = "" ]; then
time=$(calcurse -a | grep -E "\s*$name\$" -B 1 | head -n 1 | cut -c4-8) time=$(calcurse -a | grep -E "\s*$name\$" -B 1 | head -n 1 | cut -c4-8)
echo "$name" > "$XDG_CACHE_HOME/calcurse" echo "$name" > "$XDG_CACHE_HOME/calcurse"
canberra-gtk-play -i message -V 30
canberra-gtk-play -i message -V 20
dunstify -a " Event approaching" "[$time] $name" dunstify -a " Event approaching" "[$time] $name"
fi fi
fi fi


+ 3
- 3
local/bin/status-bar/weather View File

@ -67,11 +67,11 @@ showweather() {
data=$(echo -ne $(echo $data | cut -d' ' -f 1-4)" ${WCODES[$(echo $data | cut -d' ' -f 5)]}") data=$(echo -ne $(echo $data | cut -d' ' -f 1-4)" ${WCODES[$(echo $data | cut -d' ' -f 5)]}")
echo $data | awk -F' ' '{ echo $data | awk -F' ' '{
if ($4 > 30) if ($4 > 30)
print "^c#ffffff^ ^d^" $4 "kh / "$5 " ^d^ " $1 "°C"
print "^c#ffffff^ ^d^" $4 "kh "$5 " ^d^ " $1 "°C"
else if ($2 < $3) else if ($2 < $3)
print "^c#ffffff^ ^d^" $3 "% / "$5 " ^d^ " $1 "°C"
print "^c#ffffff^ ^d^" $3 "% "$5 " ^d^ " $1 "°C"
else else
print "^c#81a1c1^ ^d^" $2 "% / " $5 " ^d^ " $1 "°C"}'
print "^c#81a1c1^ ^d^" $2 "% " $5 " ^d^ " $1 "°C"}'
} }
case $BLOCK_BUTTON in case $BLOCK_BUTTON in


+ 1
- 0
local/share/.gitignore View File

@ -3,6 +3,7 @@
!fonts !fonts
!icons !icons
!themes !themes
!applications
!vim !vim
!vim/** !vim/**

+ 0
- 1
local/share/vim/.gitignore View File

@ -1,6 +1,5 @@
# Folder Created By vim-plug # Folder Created By vim-plug
plugged plugged
after
undo undo
view view
spell spell

Loading…
Cancel
Save