mirror of
https://github.com/anthonyoteri/dotfiles.git
synced 2026-06-05 23:56:52 -04:00
Add config for hypr and waybar
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
@define-color foreground #c0c1c1;
|
||||
@define-color background #06090a;
|
||||
@define-color cursor #c0c1c1;
|
||||
|
||||
@define-color color0 #06090a;
|
||||
@define-color color1 #536768;
|
||||
@define-color color2 #656D6A;
|
||||
@define-color color3 #868570;
|
||||
@define-color color4 #798D85;
|
||||
@define-color color5 #98A19D;
|
||||
@define-color color6 #D7DADA;
|
||||
@define-color color7 #c0c1c1;
|
||||
@define-color color8 #444647;
|
||||
@define-color color9 #536768;
|
||||
@define-color color10 #656D6A;
|
||||
@define-color color11 #868570;
|
||||
@define-color color12 #798D85;
|
||||
@define-color color13 #98A19D;
|
||||
@define-color color14 #D7DADA;
|
||||
@define-color color15 #c0c1c1;
|
||||
@@ -0,0 +1,37 @@
|
||||
// __ __ _
|
||||
// \ \ / /_ _ _ _| |__ __ _ _ __
|
||||
// \ \ /\ / / _` | | | | '_ \ / _` | '__|
|
||||
// \ V V / (_| | |_| | |_) | (_| | |
|
||||
// \_/\_/ \__,_|\__, |_.__/ \__,_|_|
|
||||
// |___/
|
||||
//
|
||||
// by Stephan Raabe (2023)
|
||||
// -----------------------------------------------------
|
||||
//
|
||||
{
|
||||
"layer": "top",
|
||||
"height": 30,
|
||||
"spacing": 4,
|
||||
"margin-top": 0,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"include": ["~/dotfiles/waybar/modules.json"],
|
||||
"modules-left": [
|
||||
"custom/appmenu",
|
||||
"custom/brave",
|
||||
],
|
||||
"modules-center": [
|
||||
"wlr/workspaces",
|
||||
],
|
||||
"modules-right": [
|
||||
"keyboard-state",
|
||||
"pulseaudio",
|
||||
"disk",
|
||||
"cpu",
|
||||
"memory",
|
||||
"battery",
|
||||
"clock",
|
||||
"custom/exit",
|
||||
"tray"
|
||||
],
|
||||
}
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
# ____ _ _ __ __ _
|
||||
# / ___|| |_ __ _ _ __| |_ \ \ / /_ _ _ _| |__ __ _ _ __
|
||||
# \___ \| __/ _` | '__| __| \ \ /\ / / _` | | | | '_ \ / _` | '__|
|
||||
# ___) | || (_| | | | |_ \ V V / (_| | |_| | |_) | (_| | |
|
||||
# |____/ \__\__,_|_| \__| \_/\_/ \__,_|\__, |_.__/ \__,_|_|
|
||||
# |___/
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Quit running waybar instances
|
||||
# -----------------------------------------------------
|
||||
killall waybar
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Loading the configuration based on the username
|
||||
# -----------------------------------------------------
|
||||
if [[ $USER = "raabe" ]]
|
||||
then
|
||||
waybar -c ~/dotfiles/waybar/myconfig &
|
||||
else
|
||||
waybar &
|
||||
fi
|
||||
@@ -0,0 +1,177 @@
|
||||
// __ __ _ _
|
||||
// | \/ | ___ __| |_ _| | ___ ___
|
||||
// | |\/| |/ _ \ / _` | | | | |/ _ \/ __|
|
||||
// | | | | (_) | (_| | |_| | | __/\__ \
|
||||
// |_| |_|\___/ \__,_|\__,_|_|\___||___/
|
||||
//
|
||||
//
|
||||
// by Stephan Raabe (2023)
|
||||
// -----------------------------------------------------
|
||||
//
|
||||
{
|
||||
// Workspaces
|
||||
"wlr/workspaces" : {
|
||||
"on-click": "activate",
|
||||
"active-only": false,
|
||||
"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"urgent": "",
|
||||
"active": "",
|
||||
"default": "",
|
||||
"sort-by-number": true
|
||||
}
|
||||
},
|
||||
|
||||
// Youtube Subscriber Count
|
||||
"custom/youtube": {
|
||||
"format": " {}",
|
||||
"exec": "python ~/private/youtube.py",
|
||||
"interval": "300",
|
||||
"on-click": "brave https://studio.youtube.com",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Outlook Launcher
|
||||
"custom/outlook": {
|
||||
"format": "",
|
||||
"on-click": "brave --app=https://outlook.office.com/mail/",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Teams Launcher
|
||||
"custom/teams": {
|
||||
"format": "",
|
||||
"on-click": "brave --app=https://teams.microsoft.com/go",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Brave Launcher
|
||||
"custom/brave": {
|
||||
"format": "",
|
||||
"on-click": "brave",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// ChatGPT Launcher
|
||||
"custom/chatgpt": {
|
||||
"format": "",
|
||||
"on-click": "brave --app=https://chat.openai.com",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Rofi Calculator
|
||||
"custom/calculator": {
|
||||
"format": "",
|
||||
"on-click": "~/dotfiles/scripts/calculator.sh",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Looking Glass Launcher
|
||||
"custom/lookingglass": {
|
||||
"format": "",
|
||||
"on-click": "~/dotfiles/scripts/looking-glass.sh",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Rofi Application Launcher
|
||||
"custom/appmenu": {
|
||||
"format": " ",
|
||||
"on-click": "~/dotfiles/scripts/applauncher.sh",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Rofi Power Menu
|
||||
"custom/exit": {
|
||||
"format": "",
|
||||
"on-click": "~/dotfiles/scripts/powermenu-hypr.sh",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Keyboard State
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
|
||||
// System tray
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
|
||||
// Clock
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
|
||||
// CPU
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
// Memory
|
||||
"memory": {
|
||||
"format": " {}%"
|
||||
},
|
||||
|
||||
// Harddisc space used
|
||||
"disk": {
|
||||
"interval": 30,
|
||||
"format": " {percentage_used}%",
|
||||
"path": "/"
|
||||
},
|
||||
|
||||
// Battery
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
|
||||
// Pulseaudio
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", " ", " "]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
|
||||
"user": {
|
||||
"format": "{user}",
|
||||
"interval": 60,
|
||||
"height": 30,
|
||||
"width": 30,
|
||||
"icon": false,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
// __ __ _
|
||||
// \ \ / /_ _ _ _| |__ __ _ _ __
|
||||
// \ \ /\ / / _` | | | | '_ \ / _` | '__|
|
||||
// \ V V / (_| | |_| | |_) | (_| | |
|
||||
// \_/\_/ \__,_|\__, |_.__/ \__,_|_|
|
||||
// |___/
|
||||
//
|
||||
// by Stephan Raabe (2023)
|
||||
// -----------------------------------------------------
|
||||
//
|
||||
{
|
||||
"layer": "top",
|
||||
"height": 30,
|
||||
"spacing": 4,
|
||||
"margin-top": 0,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"include": ["~/dotfiles/waybar/modules.json"],
|
||||
"modules-left": [
|
||||
"custom/appmenu",
|
||||
"custom/brave",
|
||||
"custom/outlook",
|
||||
"custom/teams",
|
||||
"custom/calculator",
|
||||
"custom/chatgpt",
|
||||
"custom/lookingglass"
|
||||
// "hyprland/window"
|
||||
],
|
||||
"modules-center": [
|
||||
"wlr/workspaces",
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/youtube",
|
||||
"keyboard-state",
|
||||
"pulseaudio",
|
||||
"disk",
|
||||
"cpu",
|
||||
"memory",
|
||||
"battery",
|
||||
"clock",
|
||||
"user",
|
||||
"custom/exit",
|
||||
"tray"
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,320 @@
|
||||
/*
|
||||
* __ __ _ ____ _ _
|
||||
* \ \ / /_ _ _ _| |__ __ _ _ __ / ___|| |_ _ _| | ___
|
||||
* \ \ /\ / / _` | | | | '_ \ / _` | '__| \___ \| __| | | | |/ _ \
|
||||
* \ V V / (_| | |_| | |_) | (_| | | ___) | |_| |_| | | __/
|
||||
* \_/\_/ \__,_|\__, |_.__/ \__,_|_| |____/ \__|\__, |_|\___|
|
||||
* |___/ |___/
|
||||
*
|
||||
* by Stephan Raabe (2023)
|
||||
* -----------------------------------------------------
|
||||
*/
|
||||
|
||||
/* -----------------------------------------------------
|
||||
* Import Pywal colors
|
||||
* ----------------------------------------------------- */
|
||||
@import 'colors-waybar.css';
|
||||
|
||||
/* -----------------------------------------------------
|
||||
* General
|
||||
* ----------------------------------------------------- */
|
||||
|
||||
* {
|
||||
font-family: "Fira Sans Semibold", FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(0,0,0,0.8);
|
||||
/* border-bottom: 3px solid rgba(100, 114, 125, 0.5); */
|
||||
/* color: #FFFFFF; */
|
||||
background: transparent;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
border-radius: 20;
|
||||
}
|
||||
|
||||
/*
|
||||
button {
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
*/
|
||||
|
||||
/* -----------------------------------------------------
|
||||
* Workspaces
|
||||
* ----------------------------------------------------- */
|
||||
|
||||
#workspaces button {
|
||||
padding: 0px 10px;
|
||||
border-radius: 10px;
|
||||
border:0;
|
||||
margin:0;
|
||||
font-weight:bold;
|
||||
color: @color11;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: #FFFFFF;
|
||||
border-radius: 15px;
|
||||
font-weight:bold;
|
||||
border:0;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
color: @color11;
|
||||
border-radius: 15px;
|
||||
border:0;
|
||||
}
|
||||
#workspaces button.focused {
|
||||
color: @color11;
|
||||
border-radius: 15px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#language,
|
||||
#custom-youtube,
|
||||
#user,
|
||||
#mpd {
|
||||
margin: 6px 10px 6px 0px;
|
||||
padding: 0 0px;
|
||||
color: #FFFFFF;
|
||||
font-size:16;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 4 10px 5 10px;
|
||||
background-color:#000000;
|
||||
opacity:0.5;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#custom-appmenu {
|
||||
margin-left:16;
|
||||
font-size:16;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
#custom-appmenu, #custom-brave, #custom-outlook, #custom-teams, #custom-chatgpt, #custom-calculator, #custom-lookingglass {
|
||||
margin-right:10px;
|
||||
font-size:16px;
|
||||
}
|
||||
|
||||
#custom-exit {
|
||||
margin-right: 10px;
|
||||
font-size:14px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: transparent;
|
||||
font-size:16;
|
||||
}
|
||||
|
||||
#battery {
|
||||
color: @color11;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
/*
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
*/
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
background-color: #fff0f5;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#wireplumber.muted {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: #2d3436;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
background-color: #51a37a;
|
||||
}
|
||||
|
||||
#language {
|
||||
color:#FFFFFF;
|
||||
/*
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
*/
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: #97e1ad;
|
||||
color: #000000;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#window {
|
||||
margin:0;
|
||||
}
|
||||
|
||||
#scratchpad {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#scratchpad.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
Reference in New Issue
Block a user