Remove assumption that user is imalison
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
[general]
|
[general]
|
||||||
import = ["/home/imalison/.config/alacritty/themes/themes/dracula.toml"]
|
import = ["~/.config/alacritty/themes/themes/dracula.toml"]
|
||||||
|
|
||||||
[font]
|
[font]
|
||||||
size = 8
|
size = 8
|
||||||
|
|||||||
@@ -78,8 +78,9 @@ def build_parser():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
args = build_parser().parse_args()
|
args = build_parser().parse_args()
|
||||||
symlink_path = os.readlink("/home/imalison/.config/brightness_manager/symlink")
|
symlink_path = os.path.expanduser("~/.config/brightness_manager/symlink")
|
||||||
if os.path.exists(symlink_path):
|
if os.path.exists(symlink_path):
|
||||||
|
symlink_path = os.readlink(symlink_path)
|
||||||
manager = BrightnessManager.from_path(symlink_path)
|
manager = BrightnessManager.from_path(symlink_path)
|
||||||
else:
|
else:
|
||||||
manager = BrightnessManager.find_brightness()
|
manager = BrightnessManager.find_brightness()
|
||||||
|
|||||||
Reference in New Issue
Block a user