{"id":17709398,"url":"https://github.com/0snap/sysdisplays","last_synced_at":"2025-03-31T07:42:29.961Z","repository":{"id":16053602,"uuid":"18797687","full_name":"0snap/SysDisplays","owner":"0snap","description":"Small gtk popups for displaying current system information about volume and brightness.","archived":false,"fork":false,"pushed_at":"2018-03-10T23:32:23.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T12:15:53.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0snap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-15T11:33:07.000Z","updated_at":"2018-03-10T23:32:25.000Z","dependencies_parsed_at":"2022-09-24T11:01:49.734Z","dependency_job_id":null,"html_url":"https://github.com/0snap/SysDisplays","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0snap%2FSysDisplays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0snap%2FSysDisplays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0snap%2FSysDisplays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0snap%2FSysDisplays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0snap","download_url":"https://codeload.github.com/0snap/SysDisplays/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436052,"owners_count":20776960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-25T04:03:53.427Z","updated_at":"2025-03-31T07:42:29.937Z","avatar_url":"https://github.com/0snap.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SysDisplays\n===========\n\nNote: 2018-03-11:\nDiscontinued project.\nImporting `Gtk` into python takes that damn long that I recommend to not use this script. Well, not really long for you but the CPU. It will boast loads for a short sec, so connecting the script to a button and then holding it down sucks.\n\n\nSmall gtk popups for displaying some system informations.\nThis script can be called with the parameters \"volume\" and \"backlight\"\n\n\n\nVolumeDisplay (python sysbars.py \"volume\"):\n==========================================\n\nSmall gtk popup for displaying current system volume.\n\n\nThe idea and why is it done this way?\n\n\nThis script is meant to actually only display volume information, not manipulate anything by itself.\nSince I mapped volume changes to the thinkpad-volume buttons via xbindkeys in my arch linux, I did not\nneed any other software handling volume changes for me. I only needed a display.\n\n\nHow to use it?\n\n\nPut the script where you want it to be and edit your xbindkeys config file. \nWhen pressing the audio keys, the display shall - well, get displayd.\nA sample xbindkeys entry could look like\n\n```\n#Decrease Volume Master\n\"amixer sset Master 2-; python /your/path/to/file/sysbars.py 'volume'\"\n  XF86AudioLowerVolume\n\n#Increase Volume Master\n\"amixer sset Master 2+; python /your/path/to/file/sysbars.py 'volume'\"\n  XF86AudioRaiseVolume\n```\n\nReplace the path with your proper path. Replace the keyname (here 'XF86AudioRaiseVolume' or 'XF86AudioLowerVolume') with the key you need it to map against.\n\n\nHow it works:\n\n\nThe script fetches the master volume of the alsamixer and displays it in a progressbar. After a delay of (per default) 2,5 seconds, the display vanishes. If no display can be seen, no process is running. \nWhen the key is pressed again while the window is visble, no new script instance will get started. The existing display will prolong its display time for another (per default) 2,5 seconds. \nThe living time can be changed. Change the constant \"DISPLAY_DURATION\" at the top of the file to the amount of milliseconds you want.\n\n\n\n\n\nBacklightDisplay (python sysbars.py \"backlight\"):\n==========================================\n\nSmall gtk popup for displaying current system screen brightness.\n\nMostly the same as VolumeDisplay, just that the bar is placed a little more to the right and reads from linux systems /sys/class/backlight. This is adjustable in the head of the file to freely map the scripts functionality to whatever driver one uses.\n\n\nHow to use it?\n\nSame fish as for VolumeDisplay. Map it with xbindkeys:\n\nPut the script where you want it to be and edit your xbindkeys config file.\nWhen pressing the brightness keys, the display shall - well, get displayd.\nA sample xbindkeys entry could look like\n\n```\n#Decrease Volume Master\n\"python /your/path/to/file/sysbars.py 'backlight'\"\n  XF86MonBrightnessDown\n\n#Increase Volume Master\n\"python /your/path/to/file/sysbars.py 'backlight'\"\n  XF86MonBrightnessUp\n```\n\nHow it works:\n\nThe script reads in the value of the 'actual_brightness' file under the systems backlight folder and displays it in a progressbar. After a delay of (per default) 2,5 seconds, the display vanishes. If no display can be seen, no process is running.\nWhen the triggering key is pressed again while the window is visble, no new script instance will get started. The existing display will prolong its display time for another (per default) 2,5 seconds.\nThe living time can be changed. Change the constant \"DISPLAY_DURATION\" at the top of the file to the amount of milliseconds you want.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0snap%2Fsysdisplays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0snap%2Fsysdisplays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0snap%2Fsysdisplays/lists"}