diff --git a/.config/sway/audio.sh b/.config/sway/audio.sh new file mode 100755 index 0000000..66c5d5d --- /dev/null +++ b/.config/sway/audio.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +current_volume=$(/usr/bin/wpctl get-volume @DEFAULT_AUDIO_SINK@) + +volume="$(echo $current_volume | cut -f 2 -d " " | sed 's/\.//g')" + +if [[ $current_volume == *"MUTED"* ]]; then + echo "πŸ”‡" +fi + +if [ "$volume" -lt "100" ]; then + volume="${volume:1}" +fi + +if [ "$volume" -lt "10" ]; then + volume="${volume:1}" +fi + + +if [ "$volume" -gt "99" ]; then + echo " $volume%" +elif [ "$volume" -gt "65" ]; then + echo " $volume%" +elif [ "$volume" -gt "30" ]; then + echo " $volume%" +elif [ "$volume" -gt "10" ]; then + echo " $volume%" +else + echo " $volume%" +fi diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..61453e9 --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,312 @@ +#==================================================================================# +# Sway Window Manager Configuration File # +#----------------------------------------------------------------------------------# +# Purpose: This configuration file enables you to tweak keyboard shortcuts, adjust # +# themes and colors, set the wallpaper, and more. # +# # +# License: Creative Commons Attribution 4.0 International # +# Source: https://www.learnlinux.tv # +# Author:β€―Gregory Trolliet {:%Y %B}\n{calendar}", + "format-alt": "{:%Y-%m-%d}", + "on-click-right": "/usr/bin/alacritty -e khal interactive -d 'Abysses (Association Sub-Session)'" + }, + + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15, + }, + "format": "{icon} {capacity}%", + "format-charging": "⚑{capacity}%", + "format-plugged": " {capacity}%", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""], + }, + + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": " {signalStrength}%", + "format-ethernet": "Connected  ", + "tooltip-format": "{ifname}: {gwaddr}", + "format-linked": "{ifname} (No IP)", + "format-disconnected": "Disconnected ⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}", + "on-click-right": "bash ~/.config/rofi/wifi_menu/rofi-wifi-menu.sh", + }, + + "custom/audio": { + "format": "{}", + "signal": 8, + "interval": "once", + "exec": "/home/raghnarok/.config/sway/audio.sh", + "on-click": "pavucontrol", + }, + + "custom/light": { + "format": "{}", + "interval": 1, + "exec": "/home/raghnarok/.config/sway/light.sh", + }, + + "custom/hostname": { + "format": "πŸ’» {}", + "exec": "/usr/bin/hostname -f", + "interval": "once", + "on-click": "/usr/bin/rxvt -e /usr/bin/htop", + }, + diff --git a/.config/waybar/style.css b/.config/waybar/style.css new file mode 100644 index 0000000..08470ab --- /dev/null +++ b/.config/waybar/style.css @@ -0,0 +1,120 @@ +* { + font-family: Roboto, Helvetica, Arial, sans-serif; + font-size: 14px; + min-height: 0; + padding-bottom: 2px; + padding-top: 2px; + background: #1f1f1f; +} + +#battery { + background: transparent; + color: #ffffff; + opacity: 0.7; + padding: 2px 8px; +} + +#battery.charging, #battery.plugged { + color: #ffffff; + padding: 2px 8px; +} + +#battery.critical:not(.charging) { + animation-direction: alternate; + animation-duration: 0.5s; + animation-iteration-count: infinite; + animation-name: blink; + animation-timing-function: linear; + background-color: #f53c3c; + color: gray; +} + +#clock { + background: #1f1f1f; + color: #ffffff; + margin-right: 4px; + padding: 2px 8px; +} + +#network { + background: transparent; + color: #ffffff; + opacity: 0.7; + padding: 2px 8px; +} + +#network.disconnected { + background: #1f1f1f; + color: red; +} + +#tray { + background: #1f1f1f; + color: #ffffff; + margin-left: 18px; +} + +#tray > .passive { + -gtk-icon-effect: dim; + background: #1f1f1f; + color: #ffffff; +} + +#tray > .needs-attention { + -gtk-icon-effect: highlight; + background: #1f1f1f; + color: #ffffff; +} + +window#waybar { + background: transparent; + border-bottom: 1px solid #332b2b; + transition-duration: .2s; + transition-property: background-color; +} + +#workspaces button:hover { + /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ + background: @background; + border-bottom: 1px solid #ffffff; + box-shadow: inherit; + color: #ffffff; +} + +#workspaces button { + background: transparent; + color: #ffffff; + margin-left: 2px; + margin-right: 2px; + opacity: 0.7; +} + +#workspaces button.focused { + background: black; + color: #ffffff; + opacity: 0.8; +} + +#workspaces button.focused label { + background: black; +} + +#workspaces button.urgent { + background-color: #eb4d4b; +} + + +/* Custom Stuff */ +#custom-audio { + background: transparent; + color: #ffffff; + opacity: 0.7; + padding: 2px 8px; +} + +#custom-hostname { + background: transparent; + color: #ffffff; + padding: 2px 8px; + opacity: 0.7; +} diff --git a/.config/wofi/config b/.config/wofi/config new file mode 100644 index 0000000..3e9b5d8 --- /dev/null +++ b/.config/wofi/config @@ -0,0 +1,9 @@ +allow_images=true +image_size=64 +width=600 +height=200 +insensitive=true +mode=drun,run +columns=1 +padding:5 +lines=6 diff --git a/.config/wofi/style.css b/.config/wofi/style.css new file mode 100644 index 0000000..7bb0ee1 --- /dev/null +++ b/.config/wofi/style.css @@ -0,0 +1,46 @@ +/* Notes below regarding the purpose of each setting is true to the best of my knowledge. */ + +#input { + margin: 10px; /* how much padding there is around the input box */ + border: none; /* border around the input box */ + background-color: #453e3d; /* background color of the text input box itself */ + color: #ffffff; /* text color as you type inside the input box */ +} + +#inner-box { + margin: 5px; + border: none; /* horizontal bar that appears above the search results */ + background-color: #1f1f1f; /* background color behind the search results */ + color: #ffffff; /* text color of each search result */ +} + +#outer-box { + margin: 5px; /* margin between the outer edges of the main window and its contents inside */ + border: none; /* border around all the internal window components */ + background-color: #1f1f1f; /* background color of entire inner window */ + +} + +#text { + margin: 5px; + border: none; /* border around each individual item within the search results */ + background-color: trans; /* background behind each individual item within the search results */ + color: ffffff; +} + +/* Remove the search icon */ +#input > image.left { + -gtk-icon-transform:scaleX(0); +} + +#scroll { + margin: 5px; + border: 2px solid #1f1f1f; + background-color: #1f1f1f; /* background color behind the search slider */ +} + +window { + margin: 15px; + border: 3px solid green; /* border around the entire window */ + background-color: #1f1f1f; +}