Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RES="$(rofi -dmenu -p "Power" <<< $'Shutdown\nRestart\nLog Out\nLock')" | |
if [[ "$RES" == "Shutdown" ]]; then /usr/local/sbin/do shutdown & disown; fi | |
if [[ "$RES" == "Restart" ]]; then /usr/local/sbin/do restart & disown; fi | |
if [[ "$RES" == "Log Out" ]]; then hyprctl dispatch exit; fi | |
if [[ "$RES" == "Lock" ]]; then swaylock; fi | |
#if [[ "$RES" == "Suspend" ]]; then swaylock & /usr/local/sbin/do suspend1 & disown; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
all_sinks=$(pactl list short sinks | cut -f 2) | |
default_sink=$(pactl info | grep 'Default Sink' | cut -d : -f 2) | |
active_sink=$(echo "$all_sinks" | grep -n $default_sink | cut -d : -f 1) | |
selected_sink=$(echo "$all_sinks" | rofi -dmenu -i -a $(($active_sink - 1)) -p 'Select a device: ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System wide cpu usage: | |
The numbers on the top left from 1 to 8 represents the number of cpu's/cores in my system with the progress bar next to them representing the load of cpu/core. As you would have noticed the progress bars can be comprised of different colors. The following list will explain what each color means. | |
Blue: low priority processes (nice > 0) | |
Green: normal (user) processes | |
Red: kernel processes | |
Yellow: IRQ time | |
Magenta: Soft IRQ time | |
Grey: IO Wait time |