Commit Graph

131 Commits

Author SHA1 Message Date
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 317e9e7432
weechat: add more configurations
There are a lot more files now, so use synchronize module instead of
copy module.
2022-03-19 12:13:08 +07:00
Hoang Nguyen eb73bf24b5
roles: add 'aerc' role 2022-03-19 01:42:54 +07:00
Hoang Nguyen 38fd4729cc
mpd: use pipewire instead of pulseaudio 2022-03-18 18:57:54 +07:00
Hoang Nguyen 132be5f792
weechat: add plugins 2022-03-18 16:30:34 +07:00
Hoang Nguyen 5eea89b927
weechat: slightly change colors in buflist
'darkgray' (in Nord) is ... dark and really hard to see.
2022-03-18 15:24:55 +07:00
Hoang Nguyen e1a9f73edb
sway: remove 'xargs' stuff
It doesn't really do anything useful while making orphanage processes
2022-03-16 23:37:02 +07:00
Hoang Nguyen 2896d2500a
roles: merge swaylock and sway roles 2022-03-16 16:23:15 +07:00
Hoang Nguyen b11b63fed5
Some modifications
- nvim:
  - change a bunch of vim.g.? to use tables (looks cleaner)
  - luasnip: use lazy_load() for vscode snippets as recommended
  - nvim-tree: mimic window-picker.nvim colors and characters for
    open_file action

- waybar: use copy module for scripts instead of synchronizing

- alacritty, foot: group into 'terminal' role to unclutter the main
  playbook file, also remove 'always' tag for the include task. To be
  able to run the playbook for only 1 terminal, instead of running
  ```
  ansible-playbook dotfiles.yml --tags 'foot'
  ```
  we can now run
  ```
  ansible-playbook dotfiles.yml --tags 'terminal' --extra-vars 'terminal=["foot"]'
  ```
2022-03-16 01:15:26 +07:00
Hoang Nguyen 94017c0ed1
shells/fish: delete completion file for 'z' command
Rewrite fish tasks to copy function files instead of synchronizing
(there are now only 2 files).

Also add --animate flag for chafa in vifm's preview script so that it
can properly display *.gif files in vifm pane.
2022-03-15 20:54:31 +07:00
Hoang Nguyen 9391f52870
scripts: fix regression in nmount script from previous commit
Stupid me forgot variable brackets + '$' sign for $_sudo variable
2022-03-14 17:43:06 +07:00
Hoang Nguyen 05b0214860
scripts: fix nmount script
Check the mount point again after the umount command to ensure we don't
delete files when that command fails.
2022-03-14 13:23:04 +07:00
Hoang Nguyen 0017bfc4c6
gallery-dl: fix typo 'chaper' -> 'chapter' 2022-03-11 13:59:52 +07:00
Hoang Nguyen 6336f6090b
nvim: update config for dial.nvim
Breaking change from v0.3.0
2022-03-10 21:51:05 +07:00
Hoang Nguyen 699cc3826a
river: fix swayidle command + sway: increase swaynag font size 2022-03-09 22:39:45 +07:00
Hoang Nguyen 0b8090874a
river: fix argument order for mapping commands 2022-03-09 20:55:41 +07:00
Hoang Nguyen 671b56720a
river: use standard lua for init script
There is nearly no difference anyway as we don't precompile the init file.

The standard lua (current 5.4) is required by Wireplumber so stick with
it (that way I don't need to install 1 more lua version).

Also fix waybar exec command in sway config.
2022-03-09 18:47:25 +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 d1c68c75e5
scripts: symlink lua binary
This way we don't need to hardcode lua binary path to each script
2022-03-06 17:20:00 +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 3be104b697
mpd/ncmpcpp: disable genius.com lyrics provider again 2022-03-05 15:41:17 +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 90a0bd8774
Update stuff
- packages: remove poetry (use the poetry package in Alpine's community
  repo instead)
- chroot: update chroot script
- scripts:
  - git-fork: also handle SSH url
  - urlify: use nocry.me for shortening url
- shells: move zellij completion generation to multiplexer role
2022-03-02 23:28:04 +07:00
Hoang Nguyen 0582e4d7d7
nvim: add mermaid.vim plugin
Also:
- castero: add default_layout option
- scripts/nmount: set umask=0022 instead of chmod twice
2022-03-02 11:45:22 +07:00
Hoang Nguyen ba7f43532a
nvim: some tweaks
- plugins.lua: put autocmd into autocmd.lua file
- options.lua: put options, variables into tables
2022-02-28 15:23:10 +07:00
Hoang Nguyen aa3aef4942
nvim: disable compile on save + some more clean up 2022-02-27 12:54:56 +07:00
Hoang Nguyen 126c4beb5f
nvim: format with Stylua + clean up
- lspconfig.lua, null_ls.lua: put config sections into tables and
  functions
- plugins.lua: add snapshot config (recently added in packer.nvim),
  remove dead code of setmetatable
2022-02-27 01:38:08 +07:00
Hoang Nguyen ad20187b68
packages: add lux 2022-02-24 11:16:50 +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 52e4855d8e
packages: add clairctl 2022-02-21 11:42:58 +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 3551a249c1
Fully transit to chafa
- vifm, fzf: revise preview script, update mime types

- nvim: use yaml ft for ansiblels (nvim-lspconfig default is
  yaml.ansible). Also disable codespell
2022-02-19 20:27:46 +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 bd88e1cae6
playbook: unify tasks' names
Use convention 'subject | task description' for the name
2022-02-12 21:04:16 +07:00
Hoang Nguyen 44d244bfb1
scripts: adjust nmount, bukumenu, searchmenu
- nmount: 'user' option only takes effect in /etc/fstab
- bukumenu: add both description and url into each line
- searchmenu: catch empty query, remove redundant 'browser' variable
2022-02-12 15:08:01 +07:00
Hoang Nguyen a153366d2b
check: use list for the 'when' variable check
It looks cleaner than a bunch of conditions
2022-02-12 00:19:52 +07:00
Hoang Nguyen 85700dd480
group_vars: use ternary() for 'dmenu_flag' variable
The condition is bool, so it is more fitting than an 'if-then-else'
2022-02-11 20:30:58 +07:00
Hoang Nguyen f08d185084
Some clean up tasks
- playbook: move check tasks to external files for visibility

- multiplexer: introduce variable 'multiplexer'

- shells/fish: reflect aliases on the new variable 'multiplexer'
2022-02-11 14:17:40 +07:00
Hoang Nguyen e3590f0563
Multiple changes
- scripts:
  - add nmount, git-fork, bukumenu, musicmenu
  - adjust preview script not to cut stdout of atool
  - mangamenu: turn into template instead of list out launchers
  - doasedit: require readlinkf_posix
  - searchmenu: turn into POSIX script. It looks uglier though :(

- packages: add antora and mermaid-cli packages (yarn)

- vifm: add archive commands (gzip, xz) using tar

- sway, river: add bindings for menu commands and the other screenshot
  task variants

- waybar: change media.sh module to work nicely without udisks

- launcher:
    - rofi: add '-i' (case insensitive) option to dmenu_flag. The other
      launchers don't need this flag, as fuzzel is case insensitive by
      default, while wofi uses the option in its config file
    - wofi: move wofi-calc to ~/.local/libexec/wayland (it is intended
      to be run with a compositor binding)
2022-02-11 02:02:42 +07:00
Hoang Nguyen 045d8ca03e
shells: add zellij completion for fish 2022-02-09 01:16:25 +07:00
Hoang Nguyen 3c6661e43b
nvim: some cleanups
- lspsaga.nvim: ditto
- neoscroll.nvim: re-added
- unify float border style across plugins
2022-02-08 01:28:52 +07:00
Hoang Nguyen 5ba5591e1c
nvim: change borderchars for Telescope, add Elixir ft 2022-02-07 14:12:06 +07:00
Hoang Nguyen 510476f516
group_vars: separate custom variables and unchanged ones 2022-02-06 23:19:35 +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 145a291b26
launcher: add rofi-emoji plugin 2022-02-05 11:50:50 +07:00