Commit Graph

59 Commits

Author SHA1 Message Date
Hoang Nguyen fc531935fd
Update README 2024-02-16 00:00:00 +07:00
Hoang Nguyen a1a400a765
Use lowercase characters for the nickname 2024-01-27 00:00:00 +07:00
Hoang Nguyen 11e77e3675
Remove `default_browser` variable and go-s config
=> bring back the old searchmenu script ^-^ for simplicity
=> just hardcode xdg-open for web link (need xdg-utils)

- pyradio, alacritty: update config for newer version
- weechat:
  - remove wee-slack (Slack is so terrible using it inside the
    terminal is much worse (blame the API :>))
  - add my nick on OFTC (just hanging out on AlpineLinux's channels)
- scripts: add `fake-lua` script to display Lua version in Starship
  prompt (kudos to https://github.com/wangl-cc/dotfiles)
- TODO: remove stuff as I'm working on my new Neovim config right now
2023-04-02 00:00:00 +07:00
Hoang Nguyen 48897d684d
git: colorize diff and some more tweaks 2023-01-28 11:00:00 +07:00
Hoang Nguyen 6533d10ba5
First commit of the New Year's Cat
- Add SSH sign option for Git (Gitlab 15.7 supports this now)
- Clean packages I don't use
- Minor updates to Neovim config
- Fix fish_user_key_bindings
- Fix git-fork script
- Add Python packages (installed with pip)
2023-01-28 11:00:00 +07:00
Hoang Nguyen cd5ba40970
Keep things up to date
- fish: add new syntax on version 3.6.0, use default key bindings as
  much as possible
- refactor Ansible copy module in a couple of places
- add calcurse task (mainly for my job)
- preview scripts:
  - add *lowdown* as an alternative for *glow* and *mdcat*
  - fallback to *bat* to preview JSON file when *jq* and *python* fail
- starship: use blue color for K8s module (cyan is confusing with
  directory module)
- flatpak: drop Whalebird (I use Tokodon now)
- gallery-dl: scanned through configuration docs once in a while
2023-01-08 11:00:00 +07:00
Hoang Nguyen a58c24762a
dotfiles: add 'music_daemon' variable
- allowing 'mpd' or 'mopidy' value. Also switch to mpd unix socket
  instead of localhost port
- Fix wallpaper script with swww
2022-09-11 22:42:20 +07:00
Hoang Nguyen 56e939f0ea
nvim: temporary updates
There are still things I want to add, but the diff has gotten quite
large already. Putting the current config here for backup.

- add inlay-hints.nvim, flit.nvim
- bind leap.nvim to -/_ and reset nvim-surround mappings
- update deprecated setup instruction for a few plugins

Also move TODO section out of README.md
2022-09-03 17:19:55 +07:00
Hoang Nguyen 74df667563
Group roles and playbooks together
Also remove test Dockerfile. I run the playbook everyday so no need for
testing
2022-08-22 21:39:26 +07:00
Hoang Nguyen 9579bad605
dotfiles: rework roles structure
Group configuration tasks into 1 single role
2022-08-21 23:00:49 +07:00
Hoang Nguyen 2ab1dc9402
Lots of changes because I'm bored
- Add go-s config. Adjust searchmenu script to use s
- Add gdb-dashboard script
- Rewrite translate-shell Dockerfile
- Update aerc config, filters
- Remove ipinfo and crypt scripts (they are too simple, can manually
  type them myself)
- Split large tasks file into chunks
- fish: use themes directory for shell color config
- Reword ssh_client variable (there are other SSH clients than openssh
  and dropbear)
2022-08-21 15:15:42 +07:00
Hoang Nguyen a5156828a9
vars: move hard-coded variables to the main playbook
Variables in group_vars should be there as reference to be changed.
2022-08-18 19:48:16 +07:00
Hoang Nguyen 6e6a59d03d
scripts: use jq alternatives
- packages: add gum
- scripts: remove lyrics script
2022-07-29 01:51:10 +07:00
Hoang Nguyen 755f525d93
mpv: update plugins list
Also add ytmdl back (from my old dotfiles)
2022-07-21 23:15:22 +07:00
Hoang Nguyen 3f84fb597b
packages: strip go packages 2022-06-09 10:26:41 +07:00
Hoang Nguyen 5c6776075e
Lots of updates
- scripts: improve notifications
- aerc: redefine stylesets and config
- gpg: get rid of the comments
- nvim: update nvim-tree.lua config
- playbooks: use a custom hex_to_rgb filter to define colors for some
  applications
2022-05-29 14:55:52 +07:00
Hoang Nguyen 1742e02dba
Rely less on CJK font
Allow providing a list of CJK fonts now.
2022-05-27 23:51:01 +07:00
Hoang Nguyen 83875efa5d
packages: replace 'tt' with 'ttyper' 2022-05-21 01:01:15 +07:00
Hoang Nguyen bd08186d7b
nvim: set theme using nvim_set_hl() 2022-05-08 05:04:52 +07:00
Hoang Nguyen f81bb1c5ba
nvim: update config for 0.7.0 2022-05-07 19:56:05 +07:00
Hoang Nguyen 507302b401
podman: add hadolint and build ltex-ls from source 2022-05-04 22:57:59 +07:00
Hoang Nguyen 640fd9cc7c
podman: fix build directory in tasks, add translate-shell image 2022-05-04 00:55:54 +07:00
Hoang Nguyen e501f2dac2
Some temporary changes
- river: update new mapping option -layout and -hide-cursor river option
- aerc: use abook command from aerc's wiki
  (https://man.sr.ht/~rjarry/aerc/integrations/index.md)
- packages: add zdict
- palette: add catppuccin (haven't tested)
- nvim: adjust highlights for markdown-preview.nvim (to support all
  3 palettes)
- scripts/launch_xdg_portal: xdg-desktop-portal-kde is now in the same
  directory as the other on Alpine
- env: add DOTNET_SKIP_FIRST_TIME_EXPERIENCE, XDG_STATE_HOME and adjust
  NPM_GLOBAL_PREFIX
- cava: update config to version 0.8.2
2022-04-30 13:23:09 +07:00
Hoang Nguyen 6cbbe7adac
Succumb to setting chromium as the default browser
Other changes:
- Add a policy file to disable chromium's history
- shells/fish: add env var for Puppeteer to make mermaid-cli work
- scripts: add task to download git-filter-repo script
- Fix dependencies in Dockerfile
2022-03-30 23:54:28 +07:00
Hoang Nguyen f630bf11bf
ssh: create ssh config file if not exist 2022-03-21 23:46:57 +07:00
Hoang Nguyen b981f61a39
river: use luajit for the init script
Other changes:
- newsboat: add people's rss feeds
- nvim: update filetypes for luajit, waybar
- waybar: move config to be for sway only
- scripts:
  - add launch scripts for xdg-desktop-portal backends, mpDris2
  - musicmenu: delete icon spacings
  - touchpad: rename to sway_touchpad (as it is sway specific)
- sway, river: update float filters, change run menu mapping to
  Super+Shift+D
2022-03-08 19:03:03 +07:00
Hoang Nguyen a8f3d0ed23
Some updates
- scripts:
  - volumecontrol: use Wireplumber's lua API
  - mangamenu: fix recursive call

- sway, river:
  - update syntax for the new volumecontrol script
  - input keyboard layout now is set in startwl script

- system: ditch pulsemixer, replaced by pavucontrol-qt

- notification: add microphone icons
2022-03-06 15:44:00 +07:00
Hoang Nguyen d6d7279246
Fix lint errors + bunch of changes
- scripts:
  - add urlfilter script
  - update bukumenu and searchmenu to use urlfilter script

- packages: use 'bundler' ansible module to bootstrap Vagrant

- README: add goals
2022-03-05 15:13:46 +07:00
Hoang Nguyen b1598fbd5d
Some updates
- gallery-dl: don't use virtualenv anymore (gallery-dl is now in
  Alpine's testing repository)

- nvim: revert lsp log level config

- git: update config to use consistent style, remove lfs config (lfs
  config is configured system-wide in Alpine with an apk hook)
2022-03-04 20:32:41 +07:00
Hoang Nguyen 03c8bbf1fd
Add ssh role
And other small changes:
- nvim:
  - drop gemini syntax (the default gemtext syntax is fine)
  - add Latex preview binding

- anime-downloader: use animerush as default provider
2022-02-23 22:18:44 +07:00
Hoang Nguyen efe0ebe902
nvim: add custom theme for markdown-preview.nvim
Also:
  - nvim-orgmode now pin the Treesitter parser on its own
  - adjust highlights for window-picker.nvim
  - add some more kaomojis
2022-02-20 17:41:23 +07:00
Hoang Nguyen 5ce82e74b9
Add castero config
Also update RSS feeds for castero and newsboat
2022-02-20 00:04:52 +07:00
Hoang Nguyen 3498a5a351
Another bunch of changes
- nvim:
  - disable ansiblels on single file
  - remove markdown highlights
  - change DEBUG notify color from fg to green

- scripts: revise multiple files

- alacritty: update config based on 0.15.0 template

- introduce variable font_size_px for controlling image size in launcher

- add sound_theme playbook

- vifm: add chafa preview script and clean up vifmrc (it leads to
  a bunch of redundant previewer code though)
2022-02-19 00:26:22 +07:00
Hoang Nguyen be55a39a94
nvim: fix some regression from previous commit
Also remove cmp-under-comparator
2022-02-16 11:32:26 +07:00
Hoang Nguyen 8f3697aabb
Bunch of changes
- playbooks: refactor installing package tasks (use Ansible modules
  where possible instead of running commands)

- add umask

- add .editorconfig file, since the repo is getting large

- mpd: update ncmpcpp config, also bind mpd on IPv6 localhost

- nvim:
  - move things into 'user' directory to avoid module name clashed with
    plugins
  - don't vendor syntax files for nftables, jinja and log filetypes
  - add some more plugins
  - no longer lazy-load nvim-notify
  - simplify init.lua (no longer expose autocmd.lua and options.lua)
  - change 'v' mode mappings to 'x' mode (I never use Select Mode so
    explicitly rebind those mappings to Visual Mode only)
  - re-enable ansiblels and cspell, since they work nicely now
  - use 'sh' instead of 'bash' for shell
2022-02-16 02:38:02 +07:00
Hoang Nguyen 9ff3a87e2a
Clean up template and playbook structure
- Add ui_background variable instead of defining if-else in templates
  for waybar and launchers
- dotfiles.yml: make when statements more visible
2022-02-06 21:25:26 +07:00
Hoang Nguyen a35cc2c902
Bunch of changes
- nvim:
  - nvim-lightbulb: move config to modules.lsp (this seems more proper,
    and we also can check for client's capabilities)
  - highlights: unset Normal (this helps transparent terminal emulators)

- scripts:
  - fzmp: back to check proc (the pid file is unreliable, it persists if
    mpd is killed not by invoking `mpd --kill`, e.g. by sending
    SIGKILL). Just make sure the normal user has permission to read
    /proc
  - launch_pipewire: wait after launching the main pipewire process

- alacritty, foot: add transparency

- fish: fix fzf nord theme (this helps transparent terminal emulators)

- other:
  - remove 20-pipewire.conf (moved to sysconfig repository)
  - clean up system dependencies
2022-02-02 01:42:50 +07:00
Hoang Nguyen 8553b1ea91
Stop hardcoding main terminal emulator
- Group 'foot' and 'alacrity' into 1 task, with precedence configurable
- scripts/urlify: back to tinyurl since 0x0.st blocks url shortening
  service now
2022-01-26 21:42:10 +07:00
Hoang Nguyen 0acc39147f
nvim: use <cmd> instead of : for command mappings 2022-01-24 15:28:51 +07:00
Hoang Nguyen a198f3f1fb
Changes to fish and nvim configurations
- fish: back to 'less -R' for man pages (Neovim's default is to let
  man pages modifiable when invoking through 'man' shell command)

- nvim:
  - gitsigns.nvim: 'keymap' option is deprecated
  - mappings: make H,L also mimic ^,$ for operator and visual modes
  - autocmd: 'nomodifiable' is already set for man and help filetypes
  - add README note for future plan (migrate to vim.keymap)
2022-01-23 00:53:53 +07:00
Hoang Nguyen 36b39bd432
General changes
- nvim:
  - use jinja syntax from https://github.com/pearofducks/ansible-vim
  - clean up ftplugin (move some to autocmd)
  - null-ls.nvim: adjust ansible_lint source (it is now default to launch on
    'ft=yaml.ansible' only)

- scripts:
  - shorten sed commands for swaywpp and wlwpp scripts
  - startwl: increase core size (0 -> unlimited) to catch compositor crashes
  - modify fzmp script since `pgrep mpd` will not work if the user is
    restricted not to see other processes.
  - launch_mpd: set realtime scheduling before starting mpd

- playbooks:
  - move to `playbooks/` directory (more proper name)
  - move tasks that need root access to a separated playbook
  - add realtime sheduling limits for pipewire (limited to @wheel group)
2022-01-20 23:46:28 +07:00
Hoang Nguyen f88a907205
README: rewording 2022-01-14 00:28:16 +07:00
Hoang Nguyen 72a5517e13
Revert 'Add aports container image' (ed9fe0f432)
Also:
- Stop using the stupid patch for Vagrant (use the provided env instead)
- Fixes some templates
2022-01-14 00:01:43 +07:00
Hoang Nguyen 80358cd31b
nvim: disable some keymaps in man and help pages 2022-01-11 16:18:22 +07:00
Hoang Nguyen c130a13418
fish: use neovim for man pages and add some envs 2022-01-11 01:57:54 +07:00
Hoang Nguyen c997ab0d43
nvim: enable ltex-ls + use bold for nvim-cmp menu
starship, stylua: use the Alpine binaries
2022-01-10 14:33:43 +07:00
Hoang Nguyen f1eb472c21
Fixing here and there + add vagrant install instruction 2022-01-03 01:20:48 +07:00
Hoang Nguyen 91fa5062dc
Add rust packages, and fix small details 2021-12-23 20:50:19 +07:00
Hoang Nguyen a3f583f13a
Another big commit
Some notable changes:
- Add tags for roles
- roles/fish: move out pyenv and poetry
- nvim: update config for feline.nvim
- roles/gpg: change the way gpg-agent is started (follow the man page)
2021-12-23 16:43:02 +07:00
Hoang Nguyen 56516a9c70
Add notes for dropbear and multiple changes 2021-12-22 00:25:43 +07:00