@linuxgram · Post #18260 · 31.03.2026 г., 15:19
🪄 [Hyprland] As fluid as it gets... By Ilyamiro on Reddit: https://www.reddit.com/r/unixporn/s/pZXwQi5Hyk #hyprland
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #183 · 23 ное.
Python + bash Если вам часто требуется запускать shell команды из Python-кода, какой способ вы используете? Самый низкоуровневый это функция os.system(), либо os.popen(). Рекомендованный способ это subprocess.call(). Но это всё еще достаточно неудобно. Советую обратить своё внимание на очень крутую библиотеку sh. Что она умеет? 🔸 удобный синтаксис вызова команд как функций # os import os os.system("tar cvf demo.tar ~/") # subprocess import subprocess subprocess.call(['tar', 'cvf', 'demo.tar', '~/']) # sh import sh sh.tar('cvf', 'demo.tar', "~/") 🔸 простое создание функции-алиаса для длинной команды fn = sh.lsof.bake('-i', '-P', '-n') output = sh.grep(fn(), 'LISTEN') в этом примере также задействован пайпинг 🔸 удобный вызов команд от sudo with sh.contrib.sudo: print(ls("/root")) Такой запрос спросит пароль. Чтобы это работало нужно соответствующим способом настроить юзера. А вот вариант с вводом пароля через код. password = "secret" sudo = sh.sudo.bake("-S", _in=password+"\n") print(sudo.ls("/root")) Это не все фишки. Больше интересных примеров смотрите в документации. Специально для Windows💀 юзеров #libs#linux
Пребарај: #hyprland
@linuxgram · Post #18260 · 31.03.2026 г., 15:19
🪄 [Hyprland] As fluid as it gets... By Ilyamiro on Reddit: https://www.reddit.com/r/unixporn/s/pZXwQi5Hyk #hyprland
Hashtags
@gnulinuxlatino · Post #21392 · 25.03.2026 г., 20:08
Probando #Hyprland por primera vez en #openSUSE Tumbleweed https://victorhckinthefreeworld.com/2026/03/25/probando-hyprland-por-primera-vez-en-opensuse-tumbleweed/
@githubtrending · Post #15286 · 10.11.2025 г., 14:00
#qml#dotfiles#hyprland#linux#material_design#quickshell#rice#ricing#unixporn#wayland This Hyprland dotfiles setup gives you a modern, easy-to-use Linux desktop with features like a live app overview, AI integration (Gemini and Ollama), and automatic, beautiful color themes that match your wallpaper. Installation is simple with a one-line command, and the default keybinds are familiar if you’ve used Windows or GNOME. The system uses Quickshell for widgets (not Waybar), shows every command during setup for transparency, and offers a friendly Discord community for help. You benefit from a polished, customizable environment that’s both visually appealing and practical, with support for new users and advanced customization options. https://github.com/end-4/dots-hyprland