mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-23 03:11:49 +08:00
Compare commits
No commits in common. "9f60672b4ea86fb5482a7b3748422b3a0b14b9d8" and "ee4f05860cb02c695384b09bb37c212aca64d566" have entirely different histories.
9f60672b4e
...
ee4f05860c
@ -30,7 +30,7 @@ layer = overlay
|
|||||||
[colors]
|
[colors]
|
||||||
background=282828ff
|
background=282828ff
|
||||||
text=665c54ff
|
text=665c54ff
|
||||||
match=928374ff
|
match=bdae93ff
|
||||||
selection=3c3836ff
|
selection=3c3836ff
|
||||||
selection-text=ebdbb2ff
|
selection-text=ebdbb2ff
|
||||||
selection-match=ebdbb2ff
|
selection-match=ebdbb2ff
|
||||||
|
87
.config/mpv/arguments.py
Normal file
87
.config/mpv/arguments.py
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
import argparse
|
||||||
|
import collections
|
||||||
|
import json
|
||||||
|
import pathlib
|
||||||
|
|
||||||
|
|
||||||
|
class Profile:
|
||||||
|
def __init__(self, object, json, groups_key="setting-groups"):
|
||||||
|
self.json = json
|
||||||
|
self.groups_key = groups_key
|
||||||
|
|
||||||
|
self._settings = []
|
||||||
|
self._shaders = []
|
||||||
|
|
||||||
|
self._collect(object)
|
||||||
|
|
||||||
|
def _collect(self, object):
|
||||||
|
self._settings.extend(object.get("settings", []))
|
||||||
|
self._shaders.extend(object.get("shaders", []))
|
||||||
|
|
||||||
|
for key in object.get(self.groups_key, []):
|
||||||
|
self._collect(self.json["setting-groups"][key])
|
||||||
|
|
||||||
|
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
|
||||||
|
parser.add_argument("--profile", default=None)
|
||||||
|
parser.add_argument(
|
||||||
|
"--path", default=f"{pathlib.Path.home()}/.config/mpv/default-shader-pack")
|
||||||
|
parser.add_argument("--config", default=False, action="store_true")
|
||||||
|
|
||||||
|
arguments = parser.parse_args()
|
||||||
|
arguments.path = str(pathlib.Path(arguments.path))
|
||||||
|
|
||||||
|
|
||||||
|
# with open(pathlib.Path(arguments.path, "pack.json"), "rb") as file:
|
||||||
|
with open(pathlib.Path(arguments.path, "pack-hq.json"), "rb") as file:
|
||||||
|
json_ = json.load(file)
|
||||||
|
|
||||||
|
|
||||||
|
if arguments.profile is None:
|
||||||
|
for profile in json_["profiles"].values():
|
||||||
|
print(profile["displayname"])
|
||||||
|
|
||||||
|
else:
|
||||||
|
if arguments.config:
|
||||||
|
prefix = ""
|
||||||
|
end = None
|
||||||
|
|
||||||
|
else:
|
||||||
|
prefix = "--"
|
||||||
|
end = " "
|
||||||
|
|
||||||
|
default_profile = Profile(
|
||||||
|
json_, json_, groups_key="default-setting-groups")
|
||||||
|
|
||||||
|
(_,) = (
|
||||||
|
profile
|
||||||
|
for profile in json_["profiles"].values()
|
||||||
|
if profile["displayname"] == arguments.profile
|
||||||
|
)
|
||||||
|
profile = Profile(_, json_)
|
||||||
|
for key, value in collections.OrderedDict(
|
||||||
|
default_profile._settings + profile._settings
|
||||||
|
).items():
|
||||||
|
key = key.replace("_", "-")
|
||||||
|
|
||||||
|
if value is True:
|
||||||
|
print(prefix, key, sep="", end=end)
|
||||||
|
continue
|
||||||
|
|
||||||
|
print(prefix, key, "=", value, sep="", end=end)
|
||||||
|
|
||||||
|
print(
|
||||||
|
prefix,
|
||||||
|
"glsl-shaders=",
|
||||||
|
":".join(
|
||||||
|
str(pathlib.Path(arguments.path, "shaders", shader))
|
||||||
|
for shader in collections.OrderedDict(
|
||||||
|
(_, None) for _ in default_profile._shaders + profile._shaders
|
||||||
|
).keys()
|
||||||
|
),
|
||||||
|
sep="",
|
||||||
|
end=end,
|
||||||
|
)
|
||||||
|
|
||||||
|
print()
|
1
.config/mpv/default-shader-pack
Submodule
1
.config/mpv/default-shader-pack
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit ca506a6bf3937881ebd1ab35bfbaf3d9b0221e0d
|
@ -1,3 +1,3 @@
|
|||||||
volume=70
|
volume=70
|
||||||
sub-auto=fuzzy
|
sub-auto=fuzzy
|
||||||
hwdec=auto-safe
|
# hwdec=auto-safe
|
||||||
|
@ -7,6 +7,9 @@ set $laptop eDP-1
|
|||||||
bindswitch --reload --locked lid:on output $laptop disable
|
bindswitch --reload --locked lid:on output $laptop disable
|
||||||
bindswitch --reload --locked lid:off output $laptop enable
|
bindswitch --reload --locked lid:off output $laptop enable
|
||||||
|
|
||||||
|
# bar
|
||||||
|
# bar swaybar_command waybar
|
||||||
|
|
||||||
#workspace_auto_back_and_forth yes
|
#workspace_auto_back_and_forth yes
|
||||||
force_display_urgency_hint 500 ms
|
force_display_urgency_hint 500 ms
|
||||||
smart_borders no_gaps
|
smart_borders no_gaps
|
||||||
|
@ -14,12 +14,11 @@ choice=$(printf "%s\n" "${choices[@]}" | fuzzel -d --prompt ": ")
|
|||||||
|
|
||||||
if test "$choice" = lock ; then
|
if test "$choice" = lock ; then
|
||||||
# sleep less when power on
|
# sleep less when power on
|
||||||
# if acpi -a | grep -q on; then
|
if acpi -a | grep -q on; then
|
||||||
# sleep_time=3600
|
sleep_time=3600
|
||||||
# else
|
else
|
||||||
# sleep_time=10
|
|
||||||
# fi
|
|
||||||
sleep_time=10
|
sleep_time=10
|
||||||
|
fi
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
|
|
||||||
bright=`light`
|
bright=`light`
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
[
|
|
||||||
{
|
{
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"name": "main",
|
|
||||||
"output": "!XMI Redmi 27 NU 3948622WH08F4",
|
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces"
|
"sway/workspaces"
|
||||||
],
|
],
|
||||||
@ -20,22 +17,79 @@
|
|||||||
"battery",
|
"battery",
|
||||||
"clock"
|
"clock"
|
||||||
],
|
],
|
||||||
"include": [
|
"sway/workspaces": {
|
||||||
"~/.config/waybar/sway-modules.json"
|
"show_special": true,
|
||||||
|
"on-click": "activate",
|
||||||
|
"persistent_workspaces": {
|
||||||
|
"9": ["HDMI-A-1"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sway/window": {
|
||||||
|
"max-length": 50,
|
||||||
|
"separate-outputs": true
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
"spacing": 10
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": " {load}",
|
||||||
|
"format-alt": " {usage}% @ {avg_frequency}GHz"
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": " {used:0.1f}G / {total:0.1f}G",
|
||||||
|
"format-alt": " Swap: {swapUsed:0.1f}G / {swapTotal:0.1f}G"
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
|
"format-ethernet": " {ifname}",
|
||||||
|
"format-linked": " {ifname}",
|
||||||
|
"format-disconnected": " Disconnected",
|
||||||
|
"format-alt": " {ifname}: {ipaddr}/{cidr}",
|
||||||
|
"tooltip-format": "{ifname} via {gwaddr}"
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
"good": 75,
|
||||||
|
"warning": 15,
|
||||||
|
"critical": 5
|
||||||
|
},
|
||||||
|
"format": "{icon} {capacity}%",
|
||||||
|
"format-charging": " {capacity}%",
|
||||||
|
"format-plugged": " {capacity}%",
|
||||||
|
"format-alt": "{icon} ETA: {time}",
|
||||||
|
"format-icons": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
"clock": {
|
||||||
"layer": "top",
|
"format": "{: %H:%M\t %m-%d}",
|
||||||
"name": "alt",
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||||
"output": "XMI Redmi 27 NU 3948622WH08F4",
|
},
|
||||||
"modules-left": [
|
"custom/notification": {
|
||||||
"sway/workspaces"
|
"tooltip": true,
|
||||||
],
|
"format": "{icon}",
|
||||||
"modules-right": [
|
"format-icons": {
|
||||||
"sway/window"
|
"notification": " <span foreground='red'><sup></sup></span> New notifications",
|
||||||
],
|
"none": " No notifications",
|
||||||
"sway/window": {
|
"dnd-notification": " DND on",
|
||||||
"max-length": 128
|
"dnd-none": " DND on"
|
||||||
|
},
|
||||||
|
"return-type": "json",
|
||||||
|
"exec-if": "which swaync-client",
|
||||||
|
"exec": "swaync-client -swb",
|
||||||
|
"on-click": "swaync-client -t -sw",
|
||||||
|
"on-click-right": "swaync-client -d -sw",
|
||||||
|
"escape": true
|
||||||
|
},
|
||||||
|
"custom/player": {
|
||||||
|
"format": " {}",
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"class\": \"{{status}}\"}' -F",
|
||||||
|
"max-length": 35,
|
||||||
|
"on-click": "playerctl play-pause"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
|
||||||
|
@ -17,8 +17,7 @@ window#waybar {
|
|||||||
border-bottom: 1px solid @selection_background;
|
border-bottom: 1px solid @selection_background;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces,
|
#workspaces {
|
||||||
#window {
|
|
||||||
margin: 5px 10px;
|
margin: 5px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[screencast]
|
[screencast]
|
||||||
max_fps=120
|
max_fps=60
|
||||||
exec_before=swaynag -m "Screen sharing enabled" -e bottom --background b16286 --text dbdbb2 --button-background b16286 --button-text ebdbb2 --border ebdbb2 --button-border-size 2
|
exec_before=swaynag -m "Screen sharing enabled" -e bottom --background b16286 --text dbdbb2 --button-background b16286 --button-text ebdbb2 --border ebdbb2 --button-border-size 2
|
||||||
; exec_after=enable_notifications.sh
|
; exec_after=enable_notifications.sh
|
||||||
chooser_type=simple
|
chooser_type=simple
|
||||||
|
@ -38,6 +38,3 @@ set recolor-lightcolor "#282828" # bg
|
|||||||
set recolor-darkcolor "#ebdbb2" # fg
|
set recolor-darkcolor "#ebdbb2" # fg
|
||||||
set recolor "true"
|
set recolor "true"
|
||||||
# set recolor-keephue true # keep original color
|
# set recolor-keephue true # keep original color
|
||||||
|
|
||||||
# selection clipboard
|
|
||||||
set selection-clipboard clipboard
|
|
||||||
|
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[submodule ".config/mpv/default-shader-pack"]
|
||||||
|
path = .config/mpv/default-shader-pack
|
||||||
|
url = https://github.com/iwalton3/default-shader-pack.git
|
||||||
|
[submodule ".config/hypr/plugins/hy3"]
|
||||||
|
path = .config/hypr/plugins/hy3
|
||||||
|
url = https://github.com/outfoxxed/hy3.git
|
Loading…
Reference in New Issue
Block a user