mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
Preparation for EXWM
This commit is contained in:
parent
5255ea5c2b
commit
2dfd894bff
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
=> is bloated (I use a lot of programs, sometimes just to try out)
|
=> is bloated (I use a lot of programs, sometimes just to try out)
|
||||||
=> yet clean (follow XDG base directory specification)
|
=> yet clean (follow XDG base directory specification)
|
||||||
=> for [bspwm](https://github.com/baskerville/bspwm), [spectrwm](https://github.com/conformal/spectrwm), [sway](https://github.com/swaywm/sway), [wayfire](https://github.com/WayfireWM/wayfire), [river](https://github.com/ifreund/river), [hikari](https://hikari.acmelabs.space/)
|
=> for [bspwm](https://github.com/baskerville/bspwm), [spectrwm](https://github.com/conformal/spectrwm), [sway](https://github.com/swaywm/sway), [wayfire](https://github.com/WayfireWM/wayfire), [river](https://github.com/ifreund/river), [hikari](https://hikari.acmelabs.space/) (and [exwm](https://github.com/ch11ng/exwm) occasionally)
|
||||||
=> and features [Nord](https://github.com/arcticicestudio/nord) and [OneDark](https://github.com/joshdick/onedark.vim) colorschemes
|
=> and features [Nord](https://github.com/arcticicestudio/nord) and [OneDark](https://github.com/joshdick/onedark.vim) colorschemes
|
||||||
|
|
||||||
![sway](https://git.disroot.org/FollieHiyuki/dotfiles/raw/branch/master/assets/sway.png)
|
![sway](https://git.disroot.org/FollieHiyuki/dotfiles/raw/branch/master/assets/sway.png)
|
||||||
@ -50,6 +50,7 @@
|
|||||||
- [ ] NixOS / Guix / Gentoo / FreeBSD
|
- [ ] NixOS / Guix / Gentoo / FreeBSD
|
||||||
- [ ] New Neovim's config in Lua
|
- [ ] New Neovim's config in Lua
|
||||||
- [ ] My own ~/.emacs.d
|
- [ ] My own ~/.emacs.d
|
||||||
|
- [ ] Org Babel to manage dotfiles
|
||||||
|
|
||||||
### :star2: Credits & License
|
### :star2: Credits & License
|
||||||
|
|
||||||
|
@ -399,7 +399,7 @@ alias vi='nvim -o "$(fzf)"'
|
|||||||
# emacs
|
# emacs
|
||||||
alias doom="$HOME/.config/emacs/bin/doom"
|
alias doom="$HOME/.config/emacs/bin/doom"
|
||||||
alias e="emacs -nw"
|
alias e="emacs -nw"
|
||||||
alias emacs="emacsclient -c -a 'emacs'"
|
alias em="emacsclient -c -a 'emacs'"
|
||||||
# rsync
|
# rsync
|
||||||
alias rsyncdir="rsync -uavP --delete-after"
|
alias rsyncdir="rsync -uavP --delete-after"
|
||||||
alias rsyncfile="rsync -avP"
|
alias rsyncfile="rsync -avP"
|
||||||
|
@ -2,18 +2,8 @@
|
|||||||
|
|
||||||
userresources=$HOME/.config/X11/Xresources
|
userresources=$HOME/.config/X11/Xresources
|
||||||
usermodmap=$HOME/.config/X11/Xmodmap
|
usermodmap=$HOME/.config/X11/Xmodmap
|
||||||
sysresources=/etc/X11/xinit/.Xresources
|
|
||||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
||||||
|
|
||||||
# merge in defaults and keymaps
|
# merge in defaults and keymaps
|
||||||
if [ -f $sysresources ]; then
|
|
||||||
xrdb -merge $sysresources
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f $sysmodmap ]; then
|
|
||||||
xmodmap $sysmodmap
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$userresources" ]; then
|
if [ -f "$userresources" ]; then
|
||||||
xrdb -merge "$userresources"
|
xrdb -merge "$userresources"
|
||||||
fi
|
fi
|
||||||
@ -22,23 +12,15 @@ if [ -f "$usermodmap" ]; then
|
|||||||
xmodmap "$usermodmap"
|
xmodmap "$usermodmap"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# start some nice programs
|
|
||||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|
||||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
|
||||||
[ -x "$f" ] && . "$f"
|
|
||||||
done
|
|
||||||
unset f
|
|
||||||
fi
|
|
||||||
|
|
||||||
pipewire &
|
pipewire &
|
||||||
if ! pgrep -f mpd > /dev/null ;
|
if ! pgrep -f mpd > /dev/null
|
||||||
then
|
then
|
||||||
mpd &
|
mpd &
|
||||||
fi
|
fi
|
||||||
dunst &
|
dunst &
|
||||||
greenclip daemon &
|
greenclip daemon &
|
||||||
ibus-daemon -drx &
|
ibus-daemon -drx &
|
||||||
emacs --daemon &
|
# emacs --daemon &
|
||||||
picom -b &
|
picom -b &
|
||||||
# xrandr --output eDP-1 --primary --auto --output DP-2 --left-of eDP-1 --auto --output HDMI-2 --right-of eDP-1 --auto &
|
# xrandr --output eDP-1 --primary --auto --output DP-2 --left-of eDP-1 --auto --output HDMI-2 --right-of eDP-1 --auto &
|
||||||
# $HOME/.local/bin/garbage/off_touch &
|
# $HOME/.local/bin/garbage/off_touch &
|
||||||
@ -53,5 +35,6 @@ session=${1:-spectrwm}
|
|||||||
case $session in
|
case $session in
|
||||||
bspwm ) exec bspwm ;;
|
bspwm ) exec bspwm ;;
|
||||||
spectrwm ) exec spectrwm -c ~/.config/spectrwm/spectrwm-nord.conf ;;
|
spectrwm ) exec spectrwm -c ~/.config/spectrwm/spectrwm-nord.conf ;;
|
||||||
|
exwm ) exec dbus-run-session emacs -mm --debug-init -l ~/.config/doom/exwm.el ;;
|
||||||
* ) exec "$1" ;;
|
* ) exec "$1" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -34,7 +34,10 @@
|
|||||||
;; (delete ".." (directory-files (expand-file-name "images" doom-private-dir))))))
|
;; (delete ".." (directory-files (expand-file-name "images" doom-private-dir))))))
|
||||||
(setq +doom-dashboard-banner-file "yukino.png"
|
(setq +doom-dashboard-banner-file "yukino.png"
|
||||||
+doom-dashboard-banner-dir (expand-file-name "images" doom-private-dir)
|
+doom-dashboard-banner-dir (expand-file-name "images" doom-private-dir)
|
||||||
+doom-dashboard-banner-padding '(0 . 2))
|
+doom-dashboard-banner-padding '(0 . 2)
|
||||||
|
+doom-dashboard-functions '(doom-dashboard-widget-banner
|
||||||
|
doom-dashboard-widget-shortmenu
|
||||||
|
doom-dashboard-widget-loaded))
|
||||||
|
|
||||||
;; Line number
|
;; Line number
|
||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'relative)
|
||||||
@ -125,9 +128,10 @@
|
|||||||
;; "e n" #'emms-next)
|
;; "e n" #'emms-next)
|
||||||
|
|
||||||
;; Modeline
|
;; Modeline
|
||||||
;;(display-time-mode 1)
|
(setq display-time-day-and-date t)
|
||||||
;;(if (not (equal "Battery status not available" (battery)))
|
(display-time-mode 1)
|
||||||
;; (display-battery-mode 1))
|
(if (not (equal "Battery status not available" (battery)))
|
||||||
|
(display-battery-mode 1))
|
||||||
;;(emms-mode-line 1)
|
;;(emms-mode-line 1)
|
||||||
(setq doom-modeline-unicode-fallback t)
|
(setq doom-modeline-unicode-fallback t)
|
||||||
|
|
||||||
|
@ -50,6 +50,8 @@
|
|||||||
;(unpin! t)
|
;(unpin! t)
|
||||||
|
|
||||||
;; Emacs is an OS
|
;; Emacs is an OS
|
||||||
|
(package! exwm)
|
||||||
|
(package! desktop-environment)
|
||||||
;;(package! emms)
|
;;(package! emms)
|
||||||
|
|
||||||
;; Syntax
|
;; Syntax
|
||||||
|
@ -35,7 +35,7 @@ abbr vi 'nvim -o (fzf)'
|
|||||||
# emacs
|
# emacs
|
||||||
alias doom='$HOME/.config/emacs/bin/doom'
|
alias doom='$HOME/.config/emacs/bin/doom'
|
||||||
abbr e 'emacs -nw'
|
abbr e 'emacs -nw'
|
||||||
alias emacs="emacsclient -c -a 'emacs'"
|
abbr em "emacsclient -c -a 'emacs'"
|
||||||
# rsync
|
# rsync
|
||||||
abbr rsyncdir "rsync -uavP --delete-after"
|
abbr rsyncdir "rsync -uavP --delete-after"
|
||||||
abbr rsyncfile "rsync -avP"
|
abbr rsyncfile "rsync -avP"
|
||||||
|
@ -81,7 +81,7 @@
|
|||||||
"python.linting.enabled": true,
|
"python.linting.enabled": true,
|
||||||
"python.linting.banditEnabled": true,
|
"python.linting.banditEnabled": true,
|
||||||
"clangd.arguments": [
|
"clangd.arguments": [
|
||||||
"-j=3",
|
"-j=2",
|
||||||
"--background-index",
|
"--background-index",
|
||||||
"--clang-tidy",
|
"--clang-tidy",
|
||||||
"--completion-style=detailed",
|
"--completion-style=detailed",
|
||||||
|
@ -118,7 +118,7 @@ idle = swayidle -w before-sleep swaylock
|
|||||||
|
|
||||||
# XDG desktop portal
|
# XDG desktop portal
|
||||||
# Needed by some GTK applications
|
# Needed by some GTK applications
|
||||||
# portal = /usr/libexec/xdg-desktop-portal
|
portal = /usr/libexec/xdg-desktop-portal
|
||||||
|
|
||||||
pipewire = pipewire
|
pipewire = pipewire
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ alias vi='nvim -o "$(fzf)"'
|
|||||||
# emacs
|
# emacs
|
||||||
alias doom="$HOME/.config/emacs/bin/doom"
|
alias doom="$HOME/.config/emacs/bin/doom"
|
||||||
alias e="emacs -nw"
|
alias e="emacs -nw"
|
||||||
alias emacs="emacsclient -c -a 'emacs'"
|
alias em="emacsclient -c -a 'emacs'"
|
||||||
# rsync
|
# rsync
|
||||||
alias rsyncdir="rsync -uavP --delete-after"
|
alias rsyncdir="rsync -uavP --delete-after"
|
||||||
alias rsyncfile="rsync -avP"
|
alias rsyncfile="rsync -avP"
|
||||||
|
@ -10,6 +10,8 @@ abbr no="grep -viP"
|
|||||||
abbr sduo="sudo"
|
abbr sduo="sudo"
|
||||||
abbr v="nvim"
|
abbr v="nvim"
|
||||||
abbr vi='nvim -o "$(fzf)"'
|
abbr vi='nvim -o "$(fzf)"'
|
||||||
|
abbr e='emacs -nw'
|
||||||
|
abbr em="emacsclient -c -a 'emacs'"
|
||||||
abbr youbest="youtube-dl -f bestvideo+bestaudio"
|
abbr youbest="youtube-dl -f bestvideo+bestaudio"
|
||||||
abbr youflac="youtube-dl --extract-audio --audio-format flac"
|
abbr youflac="youtube-dl --extract-audio --audio-format flac"
|
||||||
abbr youlist="youtube-dl -f bestvideo+bestaudio --yes-playlist"
|
abbr youlist="youtube-dl -f bestvideo+bestaudio --yes-playlist"
|
||||||
|
Loading…
Reference in New Issue
Block a user