This commit is contained in:
sankalp committed 2025-06-26 16:10:17 +05:45
1 parent d684916f14
commit 96434bd036
55 files changed
+724 -543

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
"""
Ax-Shell configuration package.
"""
# Import only specific names actually defined in data.py
# This prevents circular imports by not importing everything
from .data import APP_NAME, APP_NAME_CAP, CACHE_DIR, CONFIG_FILE
+9
View File
@@ -0,0 +1,9 @@
{
"test": {
"secret": "IVLCHLVRZ37QOPYWBMOSDHQY75YR54J4",
"issuer": "",
"algorithm": "SHA1",
"digits": 6,
"period": 30
}
}
+17
View File
@@ -0,0 +1,17 @@
{
"bookmarks": [
{
"title": "GitHub",
"url": "https://github.com",
"description": "Code hosting platform",
"tags": [
"code",
"git",
"development"
],
"created": 1750669725.8057194,
"accessed": 0
}
],
"last_updated": 1750671530.1859832
}
+65
View File
@@ -0,0 +1,65 @@
{
"prefix_restart": "ALT SHIFT",
"suffix_restart": "R",
"prefix_msg": "SUPER",
"suffix_msg": "A",
"prefix_application_switcher": "ALT",
"suffix_application_switcher": "TAB",
"prefix_launcher": "SUPER",
"suffix_launcher": "SPACE",
"prefix_app_launcher": "SUPER",
"suffix_app_launcher": "D",
"prefix_cliphist": "SUPER",
"suffix_cliphist": "V",
"prefix_wallpapers": "SUPER",
"suffix_wallpapers": "W",
"prefix_randwall": "ALT SHIFT",
"suffix_randwall": "W",
"prefix_emoji": "SUPER",
"suffix_emoji": "E",
"prefix_kanban": "SUPER",
"suffix_kanban": "T",
"prefix_power": "SUPER",
"suffix_power": "ESCAPE",
"prefix_caffeine": "SUPER SHIFT",
"suffix_caffeine": "M",
"prefix_settings": "SUPER",
"suffix_settings": "I",
"prefix_restart_inspector": "SUPER CTRL ALT",
"suffix_restart_inspector": "B",
"wallpapers_dir": "/home/sankalp/Pictures/wallpapers",
"dock_position": "Bottom",
"vertical": false,
"dock_enabled": true,
"dock_auto_hide": true,
"dock_always_occluded": false,
"dock_hide_special_workspace": true,
"dock_icon_size": 20,
"window_switcher_items_per_row": 13,
"terminal_command": "kitty -e",
"corners_visible": true,
"dock_theme": "Pills",
"notif_pos": "Top",
"dock_workspace_visible": true,
"dock_metrics_visible": true,
"dock_date_time_visible": true,
"dock_battery_visible": true,
"dock_controls_visible": true,
"dock_indicators_visible": true,
"dock_applications_visible": true,
"dock_language_visible": true,
"dock_music_player_visible": true,
"workspace_dots": false,
"workspace_nums": false,
"workspace_use_chinese_numerals": false,
"metrics_visible": {
"cpu": true,
"ram": true,
"swap": true,
"disk": false,
"gpu": false
},
"metrics_disks": [
"/"
]
}
File renamed without changes.
File renamed without changes.
+11
View File
@@ -0,0 +1,11 @@
{
"passwords": {
"git": {
"password": "BQoIGR8w",
"description": "",
"created": "2025-06-22T22:24:00.715166",
"last_accessed": "2025-06-22T22:31:47.987267"
}
},
"last_modified": "2025-06-23T13:27:37.342660"
}
+4 -4
View File
@@ -28,7 +28,7 @@ CURRENT_HEIGHT = screen.get_height()
WALLPAPERS_DIR_DEFAULT = get_relative_path("../assets/wallpapers_example")
CONFIG_FILE = get_relative_path("../config/json/config.json")
CONFIG_FILE = get_relative_path("../config/assets/config.json")
MATUGEN_STATE_FILE = os.path.join(CONFIG_DIR, "matugen")
WORKSPACE_NUMS = False
@@ -40,7 +40,7 @@ DOCK_THEME = "Pills"
def load_config():
"""Load the configuration from config.json"""
config_path = os.path.expanduser(f"~/{APP_NAME_CAP}/config/json/config.json")
config_path = os.path.expanduser(f"~/{APP_NAME_CAP}/config/assets/config.json")
config = {}
if os.path.exists(config_path):
@@ -69,7 +69,7 @@ if os.path.exists(CONFIG_FILE):
WORKSPACE_USE_CHINESE_NUMERAL = config.get("workspace_use_chinese_numerals", False)
WORKSPACE_DOTS = config.get("workspace_dots", False)
WINDOW_SWITCHER_ITEMS_PER_ROW = config.get("window_switcher_items_per_row", 13)
DOCK_HIDE_SPECIAL_WORKSPACE = config.get('dock_hide_special_workspace', True)
DOCK_HIDE_SPECIAL_WORKSPACE = config.get("dock_hide_special_workspace", True)
NOTIF_POS = config.get(NOTIF_POS_KEY, NOTIF_POS_DEFAULT)
@@ -102,7 +102,7 @@ else:
DOCK_ICON_SIZE = 20
WINDOW_SWITCHER_ITEMS_PER_ROW = 13
NOTIF_POS = NOTIF_POS_DEFAULT
DOCK_HIDE_SPECIAL_WORKSPACE = True
DOCK_HIDE_SPECIAL_WORKSPACE = True
DOCK_COMPONENTS_VISIBILITY = {
"workspaces": True,
+1 -1
View File
@@ -930,7 +930,7 @@ class HyprConfGUI(Window):
print(f"{start_time:.4f}: Background task started.")
config_json = os.path.expanduser(
f"~/.config/{APP_NAME_CAP}/config/json/config.json"
f"~/.config/{APP_NAME_CAP}/config/assets/config.json"
)
os.makedirs(os.path.dirname(config_json), exist_ok=True)
try:
+3 -3
View File
@@ -194,7 +194,7 @@ def load_bind_vars():
bind_vars.update(settings_constants.DEFAULTS.copy())
config_json = os.path.expanduser(
f"~/.config/{APP_NAME_CAP}/config/json/config.json"
f"~/.config/{APP_NAME_CAP}/config/assets/config.json"
)
if os.path.exists(config_json):
try:
@@ -245,8 +245,8 @@ def generate_hyprconf() -> str:
"""
home = os.path.expanduser("~")
# Determine animation type based on bar position
bar_position = bind_vars.get("bar_position", "Top")
is_vertical = bar_position in ["Left", "Right"]
dock_position = bind_vars.get("dock_position", "Bottom")
is_vertical = dock_position in ["Left", "Right"]
animation_type = "slidefadevert" if is_vertical else "slidefade"
return f"""exec-once = uwsm-app $(python {home}/.config/{APP_NAME_CAP}/main.py)