mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
emacs: prefer emms
module
This commit is contained in:
parent
fa8c927842
commit
2c192cfea6
@ -33,7 +33,7 @@
|
|||||||
- **Terminal**: [alacritty](https://github.com/alacritty/alacritty), [foot](https://codeberg.org/dnkl/foot)
|
- **Terminal**: [alacritty](https://github.com/alacritty/alacritty), [foot](https://codeberg.org/dnkl/foot)
|
||||||
- **File manager:** [ranger](https://github.com/ranger/ranger), [vifm](https://github.com/vifm/vifm)
|
- **File manager:** [ranger](https://github.com/ranger/ranger), [vifm](https://github.com/vifm/vifm)
|
||||||
- **Web browser:** [qutebrowser](https://github.com/qutebrowser/qutebrowser)
|
- **Web browser:** [qutebrowser](https://github.com/qutebrowser/qutebrowser)
|
||||||
- **Image viewer:** [feh](https://github.com/derf/feh), [imv](https://github.com/eXeC64/imv)
|
- **Image viewer:** [feh](https://github.com/derf/feh), [imv](https://github.com/eXeC64/imv) / [pqiv](https://github.com/phillipberndt/pqiv)
|
||||||
- **Wayland wallpaper setter:** [swaybg](https://github.com/swaywm/swaybg) / [oguri](https://github.com/vilhalmer/oguri) / [mpvpaper](https://github.com/GhostNaN/mpvpaper)
|
- **Wayland wallpaper setter:** [swaybg](https://github.com/swaywm/swaybg) / [oguri](https://github.com/vilhalmer/oguri) / [mpvpaper](https://github.com/GhostNaN/mpvpaper)
|
||||||
- **Video player:** [mpv](https://github.com/mpv-player/mpv)
|
- **Video player:** [mpv](https://github.com/mpv-player/mpv)
|
||||||
- **Book viewer:** [zathura](https://git.pwmt.org/pwmt/zathura.git)
|
- **Book viewer:** [zathura](https://git.pwmt.org/pwmt/zathura.git)
|
||||||
|
@ -56,7 +56,8 @@ case ${server} in
|
|||||||
cp -rfv ./home/.config/swaylock/ ~/.config/swaylock/
|
cp -rfv ./home/.config/swaylock/ ~/.config/swaylock/
|
||||||
cp -rfv ./home/.config/waybar/ ~/.config/waybar/
|
cp -rfv ./home/.config/waybar/ ~/.config/waybar/
|
||||||
cp -rfv ./home/.config/wofi/ ~/.config/wofi/
|
cp -rfv ./home/.config/wofi/ ~/.config/wofi/
|
||||||
cp -rfv ./home/.config/imv/ ~/.config/imv/
|
# cp -rfv ./home/.config/imv/ ~/.config/imv/
|
||||||
|
cp -rfv ./home/.config/pqivrc ~/.config/pqivrc
|
||||||
cp -rfv ./home/.config/wayfire.ini ~/.config/wayfire.ini
|
cp -rfv ./home/.config/wayfire.ini ~/.config/wayfire.ini
|
||||||
;;
|
;;
|
||||||
x11)
|
x11)
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
|
|
||||||
;; xbps but with Emacs
|
;; xbps but with Emacs
|
||||||
;;(use-package! system-packages
|
;;(use-package! system-packages
|
||||||
;; :after exwm
|
;; :defer t
|
||||||
;; :config
|
;; :config
|
||||||
;; (setq system-packages-use-sudo t))
|
;; (setq system-packages-use-sudo t))
|
||||||
|
|
||||||
@ -180,7 +180,6 @@
|
|||||||
;; playerctl status on modeline
|
;; playerctl status on modeline
|
||||||
;; (use-package! doom-modeline-now-playing
|
;; (use-package! doom-modeline-now-playing
|
||||||
;; :after doom-modeline
|
;; :after doom-modeline
|
||||||
;; :defer t
|
|
||||||
;; :config
|
;; :config
|
||||||
;; (doom-modeline-now-playing-timer)
|
;; (doom-modeline-now-playing-timer)
|
||||||
;; ;; Enable almost everywhere
|
;; ;; Enable almost everywhere
|
||||||
@ -215,65 +214,42 @@
|
|||||||
;; '(bar window-number matches git-timemachine buffer-position word-count parrot selection-info now-playing)
|
;; '(bar window-number matches git-timemachine buffer-position word-count parrot selection-info now-playing)
|
||||||
;; '(misc-info minor-modes indent-info buffer-encoding major-mode)))
|
;; '(misc-info minor-modes indent-info buffer-encoding major-mode)))
|
||||||
|
|
||||||
;; Mapping for built-in mpc-mode
|
|
||||||
(map! :leader :desc "music" "e" nil
|
|
||||||
:leader "e RET" #'mpc-play-at-point
|
|
||||||
:leader "e v" #'mpc-select-toggle
|
|
||||||
:leader "e >" #'mpc-next
|
|
||||||
:leader "e <" #'mpc-prev
|
|
||||||
:leader "e f" #'mpc-seek-current
|
|
||||||
:leader "e p" #'mpc-pause
|
|
||||||
:leader "e q" #'mpc-quit
|
|
||||||
:leader "e s" #'mpc-toggle-play
|
|
||||||
:leader "e c" #'mpc-toggle-consume
|
|
||||||
:leader "e 1" #'mpc-toggle-single
|
|
||||||
:leader "e r" #'mpc-toggle-repeat
|
|
||||||
:leader "e z" #'mpc-toggle-shuffle
|
|
||||||
:leader "e l" #'mpc-playlist-add)
|
|
||||||
|
|
||||||
;; EMMS
|
;; EMMS
|
||||||
;; (use-package! emms
|
(use-package! emms
|
||||||
;; :after exwm
|
:defer t
|
||||||
;; :defer t
|
:init
|
||||||
;; :init
|
(setq emms-seek-seconds 10)
|
||||||
;; (setq emms-seek-seconds 10)
|
:config
|
||||||
;; :config
|
(emms-playing-time -1)
|
||||||
;; (require 'emms-setup)
|
(emms-mode-line -1)
|
||||||
;; (emms-all)
|
;; Play music with emms directly
|
||||||
;; (emms-default-players)
|
(setq emms-source-file-default-directory "~/Music/"
|
||||||
;; ;; Play music with emms directly
|
emms-info-asynchronously 1
|
||||||
;; (setq emms-source-file-default-directory "~/Music/"
|
emms-playlist-buffer-name "*EMMS-Music*"
|
||||||
;; emms-info-asynchronously 1
|
emms-source-file-directory-tree-function 'emms-source-file-directory-tree-find
|
||||||
;; emms-playlist-buffer-name "*EMMS-Music*"
|
emms-browser-covers 'emms-browser-cache-thumbnail-async)
|
||||||
;; emms-source-file-directory-tree-function 'emms-source-file-directory-tree-find
|
;; Use mpd backend
|
||||||
;; emms-browser-covers 'emms-browser-cache-thumbnail-async)
|
(setq emms-player-mpd-server-name "localhost"
|
||||||
;; ;; Use mpd backend
|
emms-player-mpd-server-port "6600"
|
||||||
;; ;;(require 'emms-player-mpd)
|
emms-player-mpd-music-directory "~/Music/")
|
||||||
;; ;;(setq emms-player-mpd-server-name "localhost"
|
(add-to-list 'emms-player-list 'emms-player-mpd)
|
||||||
;; ;; emms-player-mpd-server-port "6600"
|
(add-to-list 'emms-info-functions
|
||||||
;; ;; emms-player-mpd-music-directory "~/Music")
|
'emms-info-mpd
|
||||||
;; ;;(add-to-list 'emms-player-list 'emms-player-mpd)
|
'emms-info-exiftool)
|
||||||
;; (add-to-list 'emms-info-functions
|
(map! :map emms-playlist-mode-map
|
||||||
;; ;;'emms-info-mpd
|
:localleader
|
||||||
;; 'emms-info-exiftool)
|
"d" #'emms-insert-directory))
|
||||||
;; (map! :leader "e a" #'emms-playlist-mode-go
|
(use-package! ivy-emms
|
||||||
;; :leader "e b" #'emms-browse-by-album
|
:after emms
|
||||||
;; :leader "e x" #'emms-pause
|
:config
|
||||||
;; :leader "e g" #'emms-stop
|
(setq ivy-emms-default-action #'ivy-emms-play-next)
|
||||||
;; :leader "e j" #'emms-previous
|
(setq ivy-emms-default-multi-action #'ivy-emms-play-next-multi))
|
||||||
;; :leader "e k" #'emms-next))
|
|
||||||
;; Truncate emms module on mode line
|
|
||||||
;;(use-package! emms-mode-line-cycle
|
;;(use-package! emms-mode-line-cycle
|
||||||
;; :after emms
|
;; :after emms
|
||||||
;; :config
|
;; :config
|
||||||
;; (emms-playing-time 1)
|
;; (emms-playing-time 1)
|
||||||
;; (emms-mode-line 1)
|
;; (emms-mode-line 1)
|
||||||
;; (emms-mode-line-cycle 1))
|
;; (emms-mode-line-cycle 1))
|
||||||
;;(use-package! ivy-emms
|
|
||||||
;; :after emms
|
|
||||||
;; :config
|
|
||||||
;; (setq ivy-emms-default-action #'ivy-emms-play-next)
|
|
||||||
;; (setq ivy-emms-default-multi-action #'ivy-emms-play-next-multi))
|
|
||||||
|
|
||||||
;; Duck the web with ivy
|
;; Duck the web with ivy
|
||||||
(use-package! counsel-web
|
(use-package! counsel-web
|
||||||
|
@ -213,6 +213,7 @@
|
|||||||
|
|
||||||
:app
|
:app
|
||||||
calendar
|
calendar
|
||||||
|
emms
|
||||||
;;everywhere ; *leave* Emacs!? You must be joking
|
;;everywhere ; *leave* Emacs!? You must be joking
|
||||||
irc ; how neckbeards socialize
|
irc ; how neckbeards socialize
|
||||||
(rss +org) ; emacs as an RSS reader
|
(rss +org) ; emacs as an RSS reader
|
||||||
|
@ -64,12 +64,11 @@
|
|||||||
(package! all-the-icons-ivy-rich)
|
(package! all-the-icons-ivy-rich)
|
||||||
(package! nerd-fonts
|
(package! nerd-fonts
|
||||||
:recipe (:host github :repo "FollieHiyuki/nerd-fonts.el"))
|
:recipe (:host github :repo "FollieHiyuki/nerd-fonts.el"))
|
||||||
|
(package! ivy-emms)
|
||||||
;;(package! 2048-game)
|
;;(package! 2048-game)
|
||||||
;;(package! org-ql)
|
;;(package! org-ql)
|
||||||
;;(package! org-wild-notifier)
|
;;(package! org-wild-notifier)
|
||||||
;;(package! system-packages)
|
;;(package! system-packages)
|
||||||
;;(package! emms)
|
|
||||||
;;(package! ivy-emms)
|
|
||||||
;;(package! emms-mode-line-cycle)
|
;;(package! emms-mode-line-cycle)
|
||||||
;;(package! doom-modeline-now-playing)
|
;;(package! doom-modeline-now-playing)
|
||||||
;;(package! edwina)
|
;;(package! edwina)
|
||||||
|
13
home/.config/pqivrc
Normal file
13
home/.config/pqivrc
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[options]
|
||||||
|
hide-info-box=1
|
||||||
|
scale-images-up=1
|
||||||
|
|
||||||
|
[keybindings]
|
||||||
|
; Remove keybindings for +
|
||||||
|
<plus> { nop() }
|
||||||
|
<Control><plus> { nop() }
|
||||||
|
<Alt><plus> { nop() }
|
||||||
|
; Use = instead
|
||||||
|
<equal> { set_scale_level_relative(1.1) }
|
||||||
|
<Control><equal> { set_slideshow_interval_relative(1) }
|
||||||
|
<Alt><equal> { animation_set_speed_relative(1.1) }
|
@ -220,6 +220,7 @@ filetype *.[1-8] man ./%c
|
|||||||
|
|
||||||
" Images
|
" Images
|
||||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
||||||
|
\ pqiv %f &,
|
||||||
\ imv %f &,
|
\ imv %f &,
|
||||||
\ feh %f &
|
\ feh %f &
|
||||||
filextype *.svg
|
filextype *.svg
|
||||||
|
Loading…
Reference in New Issue
Block a user