From 1c449f436a8c8e69d9d2e517ccc1c52f4ee39434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 10 Nov 2023 16:16:24 +0100 Subject: [PATCH] add home-manager --- alacritty/.config/alacritty/alacritty.toml | 83 ++++++++++ alacritty/.config/alacritty/alacritty.yml | 4 +- .../.local/share/applications/firefox.desktop | 144 ++++++++++++++++++ fish/.config/fish/config.fish | 2 + homemanager/.config/home-manager/home.nix | 48 ++++++ ranger/.config/ranger/bookmarks.new | 11 ++ starship/.config/starship.toml | 5 + 7 files changed, 295 insertions(+), 2 deletions(-) create mode 100644 alacritty/.config/alacritty/alacritty.toml create mode 100644 firefox/.local/share/applications/firefox.desktop create mode 100644 fish/.config/fish/config.fish create mode 100644 homemanager/.config/home-manager/home.nix create mode 100644 ranger/.config/ranger/bookmarks.new create mode 100644 starship/.config/starship.toml diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml new file mode 100644 index 0000000..65d393c --- /dev/null +++ b/alacritty/.config/alacritty/alacritty.toml @@ -0,0 +1,83 @@ +[window] +[window.padding] +x = 15 +y = 15 + +[font] +[font.normal] +family = "DejaVu Sans Mono" +style = "Regular" + +[shell] +program = "tmux" + +[[key_bindings]] +key = "Return" +mods = "Control|Shift" +action = "SpawnNewInstance" + +[[key_bindings]] +key = "V" +mods = "Control|Shift" +action = "Paste" + +[[key_bindings]] +key = "C" +mods = "Control|Shift" +action = "Copy" + +[[key_bindings]] +key = "Insert" +mods = "Shift" +action = "PasteSelection" + +[[key_bindings]] +key = "Key0" +mods = "Control" +action = "ResetFontSize" + +[[key_bindings]] +key = "Equals" +mods = "Control" +action = "IncreaseFontSize" + +[[key_bindings]] +key = "Plus" +mods = "Control" +action = "IncreaseFontSize" + +[[key_bindings]] +key = "Minus" +mods = "Control" +action = "DecreaseFontSize" + +[[key_bindings]] +key = "Minus" +mods = "Control" +action = "DecreaseFontSize" + +[colors] +[colors.primary] +background = "0x1d1f21" +foreground = "0xc5c8c6" +[colors.cursor] +text = "0x1d1f21" +cursor = "0xc5c8c6" +[colors.normal] +black = "0x1d1f21" +red = "0xcc6666" +green = "0xb5bd68" +yellow = "0xf0c674" +blue = "0x81a2be" +magenta = "0xb294bb" +cyan = "0x8abeb7" +white = "0xc5c8c6" +[colors.bright] +black = "0x969896" +red = "0xde935f" +green = "0x282a2e" +yellow = "0x373b41" +blue = "0xb4b7b4" +magenta = "0xe0e0e0" +cyan = "0xa3685a" +white = "0xffffff" diff --git a/alacritty/.config/alacritty/alacritty.yml b/alacritty/.config/alacritty/alacritty.yml index 8c445f2..2aca1f8 100644 --- a/alacritty/.config/alacritty/alacritty.yml +++ b/alacritty/.config/alacritty/alacritty.yml @@ -316,8 +316,8 @@ font: # - (macOS) /bin/bash --login # - (Linux/BSD) user login shell # - (Windows) powershell -#shell: -# program: /bin/bash +shell: + program: tmux # args: # - --login diff --git a/firefox/.local/share/applications/firefox.desktop b/firefox/.local/share/applications/firefox.desktop new file mode 100644 index 0000000..6347440 --- /dev/null +++ b/firefox/.local/share/applications/firefox.desktop @@ -0,0 +1,144 @@ +[Desktop Entry] +Version=1.0 +#NoDisplay=true +Name=Firefox Web Browser (nixGL) +GenericName=Web Browser +GenericName[ar]=متصفح ويب +GenericName[ast]=Restolador Web +GenericName[bn]=ওয়েব ব্রাউজার +GenericName[ca]=Navegador web +GenericName[cs]=Webový prohlížeč +GenericName[da]=Webbrowser +GenericName[el]=Περιηγητής διαδικτύου +GenericName[es]=Navegador web +GenericName[et]=Veebibrauser +GenericName[fa]=مرورگر اینترنتی +GenericName[fi]=WWW-selain +GenericName[fr]=Navigateur Web +GenericName[gl]=Navegador Web +GenericName[he]=דפדפן אינטרנט +GenericName[hr]=Web preglednik +GenericName[hu]=Webböngésző +GenericName[it]=Browser web +GenericName[ja]=ウェブ・ブラウザ +GenericName[ko]=웹 브라우저 +GenericName[ku]=Geroka torê +GenericName[lt]=Interneto naršyklė +GenericName[nb]=Nettleser +GenericName[nl]=Webbrowser +GenericName[nn]=Nettlesar +GenericName[no]=Nettleser +GenericName[pl]=Przeglądarka WWW +GenericName[pt]=Navegador Web +GenericName[pt_BR]=Navegador Web +GenericName[ro]=Navigator Internet +GenericName[ru]=Веб-браузер +GenericName[sk]=Internetový prehliadač +GenericName[sl]=Spletni brskalnik +GenericName[sv]=Webbläsare +GenericName[tr]=Web Tarayıcı +GenericName[ug]=توركۆرگۈ +GenericName[uk]=Веб-браузер +GenericName[vi]=Trình duyệt Web +GenericName[zh_CN]=网络浏览器 +GenericName[zh_TW]=網路瀏覽器 +Keywords=Internet;WWW;Browser;Web;Explorer +Keywords[ar]=انترنت;إنترنت;متصفح;ويب;وب +Keywords[ast]=Internet;WWW;Restolador;Web;Esplorador +Keywords[ca]=Internet;WWW;Navegador;Web;Explorador;Explorer +Keywords[cs]=Internet;WWW;Prohlížeč;Web;Explorer +Keywords[da]=Internet;Internettet;WWW;Browser;Browse;Web;Surf;Nettet +Keywords[de]=Internet;WWW;Browser;Web;Explorer;Webseite;Site;surfen;online;browsen +Keywords[el]=Internet;WWW;Browser;Web;Explorer;Διαδίκτυο;Περιηγητής;Firefox;Φιρεφοχ;Ιντερνετ +Keywords[es]=Explorador;Internet;WWW +Keywords[fi]=Internet;WWW;Browser;Web;Explorer;selain;Internet-selain;internetselain;verkkoselain;netti;surffaa +Keywords[fr]=Internet;WWW;Browser;Web;Explorer;Fureteur;Surfer;Navigateur +Keywords[he]=דפדפן;אינטרנט;רשת;אתרים;אתר;פיירפוקס;מוזילה; +Keywords[hr]=Internet;WWW;preglednik;Web +Keywords[hu]=Internet;WWW;Böngésző;Web;Háló;Net;Explorer +Keywords[it]=Internet;WWW;Browser;Web;Navigatore +Keywords[is]=Internet;WWW;Vafri;Vefur;Netvafri;Flakk +Keywords[ja]=Internet;WWW;Web;インターネット;ブラウザ;ウェブ;エクスプローラ +Keywords[nb]=Internett;WWW;Nettleser;Explorer;Web;Browser;Nettside +Keywords[nl]=Internet;WWW;Browser;Web;Explorer;Verkenner;Website;Surfen;Online +Keywords[pt]=Internet;WWW;Browser;Web;Explorador;Navegador +Keywords[pt_BR]=Internet;WWW;Browser;Web;Explorador;Navegador +Keywords[ru]=Internet;WWW;Browser;Web;Explorer;интернет;браузер;веб;файрфокс;огнелис +Keywords[sk]=Internet;WWW;Prehliadač;Web;Explorer +Keywords[sl]=Internet;WWW;Browser;Web;Explorer;Brskalnik;Splet +Keywords[tr]=İnternet;WWW;Tarayıcı;Web;Gezgin;Web sitesi;Site;sörf;çevrimiçi;tara +Keywords[uk]=Internet;WWW;Browser;Web;Explorer;Інтернет;мережа;переглядач;оглядач;браузер;веб;файрфокс;вогнелис;перегляд +Keywords[vi]=Internet;WWW;Browser;Web;Explorer;Trình duyệt;Trang web +Keywords[zh_CN]=Internet;WWW;Browser;Web;Explorer;网页;浏览;上网;火狐;Firefox;ff;互联网;网站; +Keywords[zh_TW]=Internet;WWW;Browser;Web;Explorer;網際網路;網路;瀏覽器;上網;網頁;火狐 +Exec=firefox %u +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=firefox +Categories=GNOME;GTK;Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;video/webm;application/x-xpinstall; +StartupNotify=true +StartupWMClass=firefox +Actions=new-window;new-private-window; + +[Desktop Action new-window] +Name=Open a New Window +Name[ar]=افتح نافذة جديدة +Name[ast]=Abrir una ventana nueva +Name[bn]=Abrir una ventana nueva +Name[ca]=Obre una finestra nova +Name[cs]=Otevřít nové okno +Name[da]=Åbn et nyt vindue +Name[de]=Ein neues Fenster öffnen +Name[el]=Νέο παράθυρο +Name[es]=Abrir una ventana nueva +Name[fi]=Avaa uusi ikkuna +Name[fr]=Ouvrir une nouvelle fenêtre +Name[gl]=Abrir unha nova xanela +Name[he]=פתיחת חלון חדש +Name[hr]=Otvori novi prozor +Name[hu]=Új ablak nyitása +Name[it]=Apri una nuova finestra +Name[ja]=新しいウィンドウを開く +Name[ko]=새 창 열기 +Name[ku]=Paceyeke nû veke +Name[lt]=Atverti naują langą +Name[nb]=Åpne et nytt vindu +Name[nl]=Nieuw venster openen +Name[pt]=Abrir nova janela +Name[pt_BR]=Abrir nova janela +Name[ro]=Deschide o fereastră nouă +Name[ru]=Новое окно +Name[sk]=Otvoriť nové okno +Name[sl]=Odpri novo okno +Name[sv]=Öppna ett nytt fönster +Name[tr]=Yeni pencere aç +Name[ug]=يېڭى كۆزنەك ئېچىش +Name[uk]=Відкрити нове вікно +Name[vi]=Mở cửa sổ mới +Name[zh_CN]=新建窗口 +Name[zh_TW]=開啟新視窗 +Exec=firefox -new-window + +[Desktop Action new-private-window] +Name=Open a New Private Window +Name[ar]=افتح نافذة جديدة للتصفح الخاص +Name[ca]=Obre una finestra nova en mode d'incògnit +Name[cs]=Otevřít nové anonymní okno +Name[de]=Ein neues privates Fenster öffnen +Name[el]=Νέο ιδιωτικό παράθυρο +Name[es]=Abrir una ventana privada nueva +Name[fi]=Avaa uusi yksityinen ikkuna +Name[fr]=Ouvrir une nouvelle fenêtre de navigation privée +Name[he]=פתיחת חלון גלישה פרטית חדש +Name[hu]=Új privát ablak nyitása +Name[it]=Apri una nuova finestra anonima +Name[nb]=Åpne et nytt privat vindu +Name[ru]=Новое приватное окно +Name[sl]=Odpri novo okno zasebnega brskanja +Name[sv]=Öppna ett nytt privat fönster +Name[tr]=Yeni gizli pencere aç +Name[uk]=Відкрити нове вікно у потайливому режимі +Name[zh_TW]=開啟新隱私瀏覽視窗 +Exec=nixGL firefox -private-window diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish new file mode 100644 index 0000000..ab8b03c --- /dev/null +++ b/fish/.config/fish/config.fish @@ -0,0 +1,2 @@ +set -U fish_greeting +starship init fish | source diff --git a/homemanager/.config/home-manager/home.nix b/homemanager/.config/home-manager/home.nix new file mode 100644 index 0000000..2cba473 --- /dev/null +++ b/homemanager/.config/home-manager/home.nix @@ -0,0 +1,48 @@ +{ config, pkgs, nixgl, ... }: +let nixgl = import {}; +in +{ + # Home Manager needs a bit of information about you and the + # paths it should manage. + home.username = "j"; + home.homeDirectory = "/home/j"; + + # This value determines the Home Manager release that your + # configuration is compatible with. This helps avoid breakage + # when a new Home Manager release introduces backwards + # incompatible changes. + # + # You can update Home Manager without changing this value. See + # the Home Manager release notes for a list of state version + # changes in each release. + home.stateVersion = "23.05"; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + home.packages = [ + pkgs.htop + pkgs.fortune + pkgs.tmux + pkgs.git + pkgs.fish + pkgs.helix + pkgs.starship + pkgs.ripgrep + pkgs.eza + pkgs.ranger + nixgl.auto.nixGLDefault + pkgs.alacritty + (pkgs.nerdfonts.override { fonts = [ "FiraCode" "DejaVuSansMono" ]; }) + ]; + + fonts.fontconfig.enable = true; + programs.neovim = { + enable = true; + vimAlias = true; + plugins = with pkgs.vimPlugins; [ + auto-pairs + fzf-vim + lightline-vim + ]; + }; +} diff --git a/ranger/.config/ranger/bookmarks.new b/ranger/.config/ranger/bookmarks.new new file mode 100644 index 0000000..c3c32e7 --- /dev/null +++ b/ranger/.config/ranger/bookmarks.new @@ -0,0 +1,11 @@ +F:/home/j +f:/home/j +m:/home/j/Downloads +p:/home/j/Doctorado/Papers +s:/home/j/Doctorado/Papers/SocialContext +d:/home/j/Downloads +D:/home/j/Doctorado +o:/home/j/Downloads +g:/home/j/git/balkian +G:/home/j/GSI +j:/home/j/Downloads diff --git a/starship/.config/starship.toml b/starship/.config/starship.toml new file mode 100644 index 0000000..127e5b8 --- /dev/null +++ b/starship/.config/starship.toml @@ -0,0 +1,5 @@ +# Get editor completions based on the config schema +"$schema" = 'https://starship.rs/config-schema.json' + +# Inserts a blank line between shell prompts +add_newline = false