Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asday committed Jun 9, 2024
0 parents commit c4567af
Show file tree
Hide file tree
Showing 7 changed files with 2,949 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .tigrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set start-on-head = true
bind refs p !git push
bind refs P !git push -u origin HEAD
bind refs F !git fetch
bind refs M !git merge %(refname)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You know what dotfiles are.
1 change: 1 addition & 0 deletions feh/themes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default -Z -.
1 change: 1 addition & 0 deletions mpv/input.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
? playlist-shuffle
4 changes: 4 additions & 0 deletions mpv/mpv.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
keep-open=yes
keep-open-pause=no
screenshot-template="%F-%p"
screenshot-jpeg-quality=100
19 changes: 19 additions & 0 deletions mpv/scripts/chapter-playlist.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
function chapter_seek(direction)
local chapters = mp.get_property_number("chapters")
if chapters == nil then chapters = 0 end
local chapter = mp.get_property_number("chapter")
if chapter == nil then chapter = 0 end
if chapter+direction < 0 then
mp.command("playlist_prev")
mp.commandv("script-message", "osc-playlist")
elseif chapter+direction >= chapters then
mp.command("playlist_next")
mp.commandv("script-message", "osc-playlist")
else
mp.commandv("add", "chapter", direction)
mp.commandv("script-message", "osc-chapterlist")
end
end

mp.add_key_binding("PGDWN", "chapter_next", function() chapter_seek(1) end)
mp.add_key_binding("PGUP", "chapter_prev", function() chapter_seek(-1) end)
Loading

0 comments on commit c4567af

Please sign in to comment.