M lib-poki-launcher/src/config.rs => lib-poki-launcher/src/config.rs +3 -1
@@ 110,7 110,7 @@ impl Default for Config {
],
term_cmd: None,
// Default half life of 7 days
- half_life: 7. * 24. * 60. * 60.,
+ half_life: 7.0,
window_height: 500,
window_width: 500,
@@ 157,6 157,8 @@ impl Config {
}
}
config.app_paths = expanded_paths;
+ const DAYS_TO_SECS: f32 = 24. * 60. * 60.;
+ config.half_life *= DAYS_TO_SECS;
Ok(config)
}
M poki-launcher.hjson => poki-launcher.hjson +6 -1
@@ 24,6 24,11 @@
/var/lib/flatpak/exports/share/applications
]
+ # The rate at which unused apps will fall in the ranking
+ # Ranking will decrease by half in this many days
+ # Increase to make apps fall faster, decrease to make them fall slower
+ half_life: 7.0
+
# Set the command used to open terminal apps
# Will use `$TERM -e` by default
// term_cmd: "xterm -e"
@@ 48,4 53,4 @@
# Percent of the app ui height taken up by the input box
# 0.1 = 10%
input_box_ratio: 0.1
-}>
\ No newline at end of file
+}