mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
Merge branch 'master' of gitlab.com:dwt1/dotfiles
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#+TITLE: Aweomsome WM Config
|
#+TITLE: Awesome WM Config
|
||||||
#+AUTHOR: Derek Taylor
|
#+AUTHOR: Derek Taylor
|
||||||
#+PROPERTY: header-args :tangle rc.lua
|
#+PROPERTY: header-args :tangle rc.lua
|
||||||
#+auto_tangle: t
|
#+auto_tangle: t
|
||||||
|
|||||||
@@ -151,10 +151,15 @@ List of keybindings (SPC h b b)")
|
|||||||
(kbd "R") 'dired-do-rename
|
(kbd "R") 'dired-do-rename
|
||||||
(kbd "T") 'dired-do-touch
|
(kbd "T") 'dired-do-touch
|
||||||
(kbd "Y") 'dired-copy-filenamecopy-filename-as-kill ; copies filename to kill ring.
|
(kbd "Y") 'dired-copy-filenamecopy-filename-as-kill ; copies filename to kill ring.
|
||||||
|
(kbd "Z") 'dired-do-compress
|
||||||
(kbd "+") 'dired-create-directory
|
(kbd "+") 'dired-create-directory
|
||||||
(kbd "-") 'dired-do-kill-lines
|
(kbd "-") 'dired-do-kill-lines
|
||||||
(kbd "% l") 'dired-downcase
|
(kbd "% l") 'dired-downcase
|
||||||
|
(kbd "% m") 'dired-mark-files-regexp
|
||||||
(kbd "% u") 'dired-upcase
|
(kbd "% u") 'dired-upcase
|
||||||
|
(kbd "* %") 'dired-mark-files-regexp
|
||||||
|
(kbd "* .") 'dired-mark-extension
|
||||||
|
(kbd "* /") 'dired-mark-directories
|
||||||
(kbd "; d") 'epa-dired-do-decrypt
|
(kbd "; d") 'epa-dired-do-decrypt
|
||||||
(kbd "; e") 'epa-dired-do-encrypt)
|
(kbd "; e") 'epa-dired-do-encrypt)
|
||||||
;; Get file icons in dired
|
;; Get file icons in dired
|
||||||
@@ -357,7 +362,7 @@ List of keybindings (SPC h b b)")
|
|||||||
|
|
||||||
(map! :leader
|
(map! :leader
|
||||||
(:prefix ("=" . "open file")
|
(:prefix ("=" . "open file")
|
||||||
:desc "Edit agenda file" "a" #'(lambda () (interactive) (find-file "~/Org/agenda.org"))
|
:desc "Edit agenda file" "a" #'(lambda () (interactive) (find-file "~/nc/Org/agenda.org"))
|
||||||
:desc "Edit doom config.org" "c" #'(lambda () (interactive) (find-file "~/.config/doom/config.org"))
|
:desc "Edit doom config.org" "c" #'(lambda () (interactive) (find-file "~/.config/doom/config.org"))
|
||||||
:desc "Edit doom init.el" "i" #'(lambda () (interactive) (find-file "~/.config/doom/init.el"))
|
:desc "Edit doom init.el" "i" #'(lambda () (interactive) (find-file "~/.config/doom/init.el"))
|
||||||
:desc "Edit doom packages.el" "p" #'(lambda () (interactive) (find-file "~/.config/doom/packages.el"))))
|
:desc "Edit doom packages.el" "p" #'(lambda () (interactive) (find-file "~/.config/doom/packages.el"))))
|
||||||
|
|||||||
@@ -354,10 +354,15 @@ Dired is the file manager within Emacs. Below, I setup keybindings for image pr
|
|||||||
(kbd "R") 'dired-do-rename
|
(kbd "R") 'dired-do-rename
|
||||||
(kbd "T") 'dired-do-touch
|
(kbd "T") 'dired-do-touch
|
||||||
(kbd "Y") 'dired-copy-filenamecopy-filename-as-kill ; copies filename to kill ring.
|
(kbd "Y") 'dired-copy-filenamecopy-filename-as-kill ; copies filename to kill ring.
|
||||||
|
(kbd "Z") 'dired-do-compress
|
||||||
(kbd "+") 'dired-create-directory
|
(kbd "+") 'dired-create-directory
|
||||||
(kbd "-") 'dired-do-kill-lines
|
(kbd "-") 'dired-do-kill-lines
|
||||||
(kbd "% l") 'dired-downcase
|
(kbd "% l") 'dired-downcase
|
||||||
|
(kbd "% m") 'dired-mark-files-regexp
|
||||||
(kbd "% u") 'dired-upcase
|
(kbd "% u") 'dired-upcase
|
||||||
|
(kbd "* %") 'dired-mark-files-regexp
|
||||||
|
(kbd "* .") 'dired-mark-extension
|
||||||
|
(kbd "* /") 'dired-mark-directories
|
||||||
(kbd "; d") 'epa-dired-do-decrypt
|
(kbd "; d") 'epa-dired-do-decrypt
|
||||||
(kbd "; e") 'epa-dired-do-encrypt)
|
(kbd "; e") 'epa-dired-do-encrypt)
|
||||||
;; Get file icons in dired
|
;; Get file icons in dired
|
||||||
@@ -393,6 +398,13 @@ If peep-dired is enabled, you will get image previews as you go up/down with 'j'
|
|||||||
trash-directory "~/.local/share/Trash/files/")
|
trash-directory "~/.local/share/Trash/files/")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
=NOTE=: For convenience, you may want to create a symlink to 'local/share/Trash' in your home directory:
|
||||||
|
#+begin_example
|
||||||
|
cd ~/
|
||||||
|
ln -s ~/.local/share/Trash .
|
||||||
|
#+end_example
|
||||||
|
|
||||||
|
|
||||||
* DOOM THEME
|
* DOOM THEME
|
||||||
Setting the theme to doom-one. To try out new themes, I set a keybinding for counsel-load-theme with 'SPC h t'.
|
Setting the theme to doom-one. To try out new themes, I set a keybinding for counsel-load-theme with 'SPC h t'.
|
||||||
|
|
||||||
@@ -742,7 +754,7 @@ Keybindings to open files that I work with all the time using the find-file comm
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(map! :leader
|
(map! :leader
|
||||||
(:prefix ("=" . "open file")
|
(:prefix ("=" . "open file")
|
||||||
:desc "Edit agenda file" "a" #'(lambda () (interactive) (find-file "~/Org/agenda.org"))
|
:desc "Edit agenda file" "a" #'(lambda () (interactive) (find-file "~/nc/Org/agenda.org"))
|
||||||
:desc "Edit doom config.org" "c" #'(lambda () (interactive) (find-file "~/.config/doom/config.org"))
|
:desc "Edit doom config.org" "c" #'(lambda () (interactive) (find-file "~/.config/doom/config.org"))
|
||||||
:desc "Edit doom init.el" "i" #'(lambda () (interactive) (find-file "~/.config/doom/init.el"))
|
:desc "Edit doom init.el" "i" #'(lambda () (interactive) (find-file "~/.config/doom/init.el"))
|
||||||
:desc "Edit doom packages.el" "p" #'(lambda () (interactive) (find-file "~/.config/doom/packages.el"))))
|
:desc "Edit doom packages.el" "p" #'(lambda () (interactive) (find-file "~/.config/doom/packages.el"))))
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
[xin_1]
|
[xin_0]
|
||||||
file=/home/dt/wallpapers/0258.jpg
|
file=/home/dt/wallpapers/0296.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_0]
|
[xin_1]
|
||||||
file=/home/dt/wallpapers/0258.jpg
|
file=/home/dt/wallpapers/0296.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|
||||||
[xin_2]
|
[xin_2]
|
||||||
file=/home/dt/wallpapers/0258.jpg
|
file=/home/dt/wallpapers/0296.jpg
|
||||||
mode=0
|
mode=0
|
||||||
bgcolor=#000000
|
bgcolor=#000000
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[geometry]
|
[geometry]
|
||||||
posx=3840
|
posx=1936
|
||||||
posy=0
|
posy=40
|
||||||
sizex=1920
|
sizex=932
|
||||||
sizey=1080
|
sizey=1020
|
||||||
|
|
||||||
[nitrogen]
|
[nitrogen]
|
||||||
view=icon
|
view=icon
|
||||||
|
|||||||
@@ -121,6 +121,106 @@ end
|
|||||||
map('i', '<C-E>', '<ESC>A')
|
map('i', '<C-E>', '<ESC>A')
|
||||||
map('i', '<C-A>', '<ESC>I')
|
map('i', '<C-A>', '<ESC>I')
|
||||||
|
|
||||||
|
map('n', '<leader>sl', '<CMD>SessionLoad<CR>')
|
||||||
|
map('n', '<leader>fr', '<CMD>Telescope oldfiles<CR>')
|
||||||
|
map('n', '<leader>ff', '<CMD>Telescope find_files<CR>')
|
||||||
|
map('n', '<leader>fb', '<CMD>Telescope file_browser<CR>')
|
||||||
|
map('n', '<leader>fw', '<CMD>Telescope live_grep<CR>')
|
||||||
|
map('n', '<leader>ht', '<CMD>Telescope colorscheme<CR>')
|
||||||
|
|
||||||
|
-- DASHBOARD
|
||||||
|
local db = require('dashboard')
|
||||||
|
local home = os.getenv('HOME')
|
||||||
|
|
||||||
|
db.default_banner = {
|
||||||
|
'',
|
||||||
|
'',
|
||||||
|
' ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗',
|
||||||
|
' ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║',
|
||||||
|
' ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║',
|
||||||
|
' ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║',
|
||||||
|
' ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║',
|
||||||
|
' ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝',
|
||||||
|
'',
|
||||||
|
' [ TIP: To exit neovim, just poweroff your computer. ] ',
|
||||||
|
'',
|
||||||
|
}
|
||||||
|
-- linux
|
||||||
|
--db.preview_command = 'ueberzug'
|
||||||
|
--
|
||||||
|
--db.preview_file_path = home .. '/.config/nvim/static/neovim.cat'
|
||||||
|
db.preview_file_height = 11
|
||||||
|
db.preview_file_width = 70
|
||||||
|
db.custom_center = {
|
||||||
|
{icon = ' ',
|
||||||
|
desc = 'Recent sessions ',
|
||||||
|
shortcut = 'SPC s l',
|
||||||
|
action ='SessionLoad'},
|
||||||
|
{icon = ' ',
|
||||||
|
desc = 'Find recent files ',
|
||||||
|
action = 'Telescope oldfiles',
|
||||||
|
shortcut = 'SPC f r'},
|
||||||
|
{icon = ' ',
|
||||||
|
desc = 'Find files ',
|
||||||
|
action = 'Telescope find_files find_command=rg,--hidden,--files',
|
||||||
|
shortcut = 'SPC f f'},
|
||||||
|
{icon = ' ',
|
||||||
|
desc ='File browser ',
|
||||||
|
action = 'Telescope file_browser',
|
||||||
|
shortcut = 'SPC f b'},
|
||||||
|
{icon = ' ',
|
||||||
|
desc = 'Find word ',
|
||||||
|
action = 'Telescope live_grep',
|
||||||
|
shortcut = 'SPC f w'},
|
||||||
|
{icon = ' ',
|
||||||
|
desc = 'Load new theme ',
|
||||||
|
action = 'Telescope colorscheme',
|
||||||
|
shortcut = 'SPC h t'},
|
||||||
|
}
|
||||||
|
db.custom_footer = { '', '🎉 If I\'m using Neovim, then my Emacs config must be broken!' }
|
||||||
|
|
||||||
|
-- TELESCOPE FILE BROWSER
|
||||||
|
---- You don't need to set any of these options.
|
||||||
|
-- IMPORTANT!: this is only a showcase of how you can set default options!
|
||||||
|
require("telescope").setup {
|
||||||
|
extensions = {
|
||||||
|
file_browser = {
|
||||||
|
theme = "ivy",
|
||||||
|
-- disables netrw and use telescope-file-browser in its place
|
||||||
|
hijack_netrw = true,
|
||||||
|
mappings = {
|
||||||
|
["i"] = {
|
||||||
|
-- your custom insert mode mappings
|
||||||
|
},
|
||||||
|
["n"] = {
|
||||||
|
-- your custom normal mode mappings
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
-- To get telescope-file-browser loaded and working with telescope,
|
||||||
|
-- you need to call load_extension, somewhere after setup function:
|
||||||
|
require("telescope").load_extension "file_browser"
|
||||||
|
|
||||||
|
-- ORGMODE
|
||||||
|
-- Load custom tree-sitter grammar for org filetype
|
||||||
|
require('orgmode').setup_ts_grammar()
|
||||||
|
|
||||||
|
-- Tree-sitter configuration
|
||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
-- If TS highlights are not enabled at all, or disabled via `disable` prop, highlighting will fallback to default Vim syntax highlighting
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
additional_vim_regex_highlighting = {'org'}, -- Required for spellcheck, some LaTex highlights and code block highlights that do not have ts grammar
|
||||||
|
},
|
||||||
|
ensure_installed = {'org'}, -- Or run :TSUpdate org
|
||||||
|
}
|
||||||
|
|
||||||
|
require('orgmode').setup({
|
||||||
|
org_agenda_files = {'~/nc/Org/agenda.org'},
|
||||||
|
org_default_notes_file = '~/nc/Org/notes.org',
|
||||||
|
})
|
||||||
|
|
||||||
-- PLUGINS
|
-- PLUGINS
|
||||||
-- Only required if you have packer configured as `opt`
|
-- Only required if you have packer configured as `opt`
|
||||||
@@ -129,6 +229,23 @@ return require('packer').startup(function()
|
|||||||
-- Packer can manage itself
|
-- Packer can manage itself
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
|
|
||||||
|
-- A nice start screen for nvim
|
||||||
|
use 'glepnir/dashboard-nvim'
|
||||||
|
|
||||||
|
-- Telescope and treesitter
|
||||||
|
use {
|
||||||
|
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
||||||
|
requires = { {'nvim-lua/plenary.nvim'} }
|
||||||
|
}
|
||||||
|
use { "nvim-telescope/telescope-file-browser.nvim" }
|
||||||
|
use {'nvim-treesitter/nvim-treesitter'}
|
||||||
|
|
||||||
|
-- Org mode in nvim???
|
||||||
|
use {'nvim-orgmode/orgmode', config = function()
|
||||||
|
require('orgmode').setup{}
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
-- A better status line
|
-- A better status line
|
||||||
use {
|
use {
|
||||||
'nvim-lualine/lualine.nvim',
|
'nvim-lualine/lualine.nvim',
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ Dotfiles are the customization files that are used to personalize your Linux or
|
|||||||
- [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/openbox][Openbox]] (you may also want my [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/tint2][tint2]] panel config and [[https://gitlab.com/dwt1/dt-dark-theme][dt-dark-theme]] GTK theme)
|
- [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/openbox][Openbox]] (you may also want my [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/tint2][tint2]] panel config and [[https://gitlab.com/dwt1/dt-dark-theme][dt-dark-theme]] GTK theme)
|
||||||
- [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/qtile][Qtile]]
|
- [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/qtile][Qtile]]
|
||||||
- [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/spectrwm][Spectrwm]] (you will also need this [[https://gitlab.com/dwt1/dotfiles/-/blob/master/baraction.sh][baraction.sh]] script)
|
- [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/spectrwm][Spectrwm]] (you will also need this [[https://gitlab.com/dwt1/dotfiles/-/blob/master/baraction.sh][baraction.sh]] script)
|
||||||
- [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.xmonad][XMonad]]
|
- [[https://gitlab.com/dwt1/dotfiles/-/tree/master/.config/xmonad][XMonad]]
|
||||||
|
|
||||||
(*) = /links to another repository of mine/
|
(*) = /links to another repository of mine/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user