new wayba

This commit is contained in:
iFargle 2023-08-17 12:29:21 +09:00
parent f02e0f9dce
commit 47412ce9b6
3 changed files with 281 additions and 419 deletions

View file

@ -9,7 +9,7 @@ Repo for nix configuration files
* Possibly switch to tuigreet and gruv it * Possibly switch to tuigreet and gruv it
* [ ] mako config / theming * [ ] mako config / theming
* [ ] waybar config / theming * [ ] waybar config / theming
* [ ] hyprland config / theming * [x] hyprland config / theming
* [x] Try `libinput-gestures` for gesture control of Hyprland - [Link](https://github.com/bulletmark/libinput-gestures) * [x] Try `libinput-gestures` for gesture control of Hyprland - [Link](https://github.com/bulletmark/libinput-gestures)
* [x] powerline config / theming * [x] powerline config / theming
* [x] neofetch config / theming * [x] neofetch config / theming
@ -21,7 +21,7 @@ Repo for nix configuration files
* [x] btop config / theming * [x] btop config / theming
* [ ] swaylock config / theming * [ ] swaylock config / theming
* [ ] vscodium and user-config.js file? * [ ] vscodium and user-config.js file?
* [ ] Get function keys working (sound, brightness, etc) * [x] Get function keys working (sound, brightness, etc)
* [ ] rofi - bitwarden-cli / bitwarden-menu ([Link](https://search.nixos.org/packages?channel=23.05&show=bitwarden-menu&from=0&size=50&sort=relevance&type=packages&query=bitwarden)) * [ ] rofi - bitwarden-cli / bitwarden-menu ([Link](https://search.nixos.org/packages?channel=23.05&show=bitwarden-menu&from=0&size=50&sort=relevance&type=packages&query=bitwarden))
* [ ] Try and submit this as a nixpkg - [Link](https://github.com/SylEleuth/gruvbox-plus-icon-pack) * [ ] Try and submit this as a nixpkg - [Link](https://github.com/SylEleuth/gruvbox-plus-icon-pack)
* [x] Possibly move away from powerline-go - I want something simpler * [x] Possibly move away from powerline-go - I want something simpler
@ -30,11 +30,10 @@ Repo for nix configuration files
* [ ] sublime music config / theming / integration - [Link](https://docs.sublimemusic.app/) * [ ] sublime music config / theming / integration - [Link](https://docs.sublimemusic.app/)
* [ ] hyprland * [ ] hyprland
* [x] Try hyprctl * [x] Try hyprctl
* [ ] hyprwm plugins
* [ ] hyprbars - [Link](https://github.com/hyprwm/hyprland-plugins/tree/main/hyprbars) * [ ] hyprbars - [Link](https://github.com/hyprwm/hyprland-plugins/tree/main/hyprbars)
* [x] libinput-gestures? * [x] libinput-gestures?
* [ ] configure programs.light - keybinds in hyprland config * [x configure programs.light - keybinds in hyprland config
* [ ] authentication agent (like polkit-kde-agent) * [x] authentication agent (like polkit-kde-agent)
--- ---

View file

@ -153,19 +153,21 @@
bind = $mainMod, left, workspace, e-1 bind = $mainMod, left, workspace, e-1
bind = $mainMod SHIFT, right, movetoworkspace, e+1 bind = $mainMod SHIFT, right, movetoworkspace, e+1
bind = $mainMod SHIFT, left, movetoworkspace, e-1 bind = $mainMod SHIFT, left, movetoworkspace, e-1
# Laptop specific config
# Set up the FN keys: # Set up the FN keys:
# F1 - Mute # F1 - Mute
bind = , XF86AudioMute, exec, amixer set Master toggle bind = , XF86AudioMute, exec, amixer set Master toggle
# F2 - Volume Down # F2 - Volume Down
bind = , XF86AudioLowerVolume, exec, amixer set Master 3%- binde = , XF86AudioLowerVolume, exec, amixer set Master 3%-
# F3 - Volume Up # F3 - Volume Up
bind = , XF86AudioRaiseVolume, exec, amixer set Master 3%+ binde = , XF86AudioRaiseVolume, exec, amixer set Master 3%+
# F4 - Mute Microphone # F4 - Mute Microphone
bind = , XF86AudioMicMute, exec, amixer set Capture toggle bind = , XF86AudioMicMute, exec, amixer set Capture toggle
# F5 - Brightness Down # F5 - Brightness Down
bind = , XF86MonBrightnessDown, exec, light -U 5 binde = , XF86MonBrightnessDown, exec, light -U 5
# F6 - Brightness Up # F6 - Brightness Up
bind = , XF86MonBrightnessUp, exec, light -A 5 binde = , XF86MonBrightnessUp, exec, light -A 5
# F7 - External Displays # F7 - External Displays
# bind = , XF86 # bind = , XF86
# F8 - Airplane Mode # F8 - Airplane Mode
@ -179,7 +181,7 @@
# F12 - Favorites? # F12 - Favorites?
# bind = , XF86 # bind = , XF86
# Use rofi as an alt-tab switcher # Use rofi as an alt-tab switcher
bind = ALT-L TAB, , exec, rofi -show window bind = ALT, TAB, exec, rofi -show window
# Start the config: # Start the config:
exec-once=bash ~/.config/hypr/start.sh exec-once=bash ~/.config/hypr/start.sh

View file

@ -7,480 +7,341 @@
enable = true; enable = true;
executable = false; executable = false;
text = '' text = ''
{ {
"layer": "top", "layer": "top",
"position": "bottom", "position": "top",
"height": 35, "modules-left": ["sway/workspaces", "custom/arrow-dark-on-light-right",
"spacing": 4, "custom/crypto", "custom/arrow-light-on-dark-right",
"margin-top": 10, "custom/weather", "custom/arrow-dark-on-bg-right",
"margin-bottom":5, "sway/mode"],
"modules-center": ["clock"],
"modules-right": ["custom/arrow-light-on-bg-left", "pulseaudio",
"custom/arrow-dark-on-light-left", "network",
"custom/arrow-light-on-dark-left", "cpu",
"custom/arrow-dark-on-light-left", "memory",
"custom/arrow-light-on-dark-left", "temperature",
"custom/arrow-dark-on-light-left", "backlight",
"custom/arrow-light-on-dark-left", "battery",
"custom/arrow-dark-on-light-left", "sway/language",
"custom/arrow-light-on-dark-left", "tray"],
// Choose the order of the modules "sway/workspaces": {
"disable-scroll": true
},
"modules-left":[ "idle_inhibitor", "pulseaudio", "cpu", "memory", "temperature"], "custom/crypto": {
"modules-center": [ "custom/launcher", "custom/media","wlr/taskbar", "custom/power"], "format": "{}",
"modules-right":["custom/layout", "custom/updater", "custom/snip", "backlight", "keyboard-state", "battery", "battery#bat2", "network", "tray", "clock"], "interval": 600,
// Modules configuration "return-type": "json",
"exec": "~/.config/waybar/modules/crypto/waybar_crypto.py",
"keyboard-state": { "exec-if": "ping pro-api.coinmarketcap.com -c1",
"numlock": true,
"capslock": true,
"format": " {name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 20,
"icon-theme": "Star",
"tooltip-format": "{title}",
"on-click": "minimize",
"on-click-middle": "close",
"on-click-right": "activate"
},
"sway/language": {
"format": " {}",
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 20,
"spacing": 10
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false "tooltip": false
}, },
"memory": {
"format": "{}% " "custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 3600,
"exec": "python ~/.config/waybar/waybar-wttr.py",
"return-type": "json"
}, },
"sway/mode": {
"format": "<span style='italic'>{}</span>",
"tooltip": false
},
"clock": {
"format": "{:%H:%M}",
"format-alt": "{:%A, %d %b, %Y}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "month",
"mode-mon-col" : 3,
"weeks-pos" : "left",
"on-scroll" : 1,
"format": {
"months": "<span color='#e2cca9'><b>{}</b></span>",
"days": "<span color='#e2cca9'><b>{}</b></span>",
"weeks": "<span color='#b0b846'><b>W{}</b></span>",
"weekdays": "<span color='#e9b143'><b>{}</b></span>",
"today": "<span color='#f28534'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "kitty --class=calcurse -e calcurse",
"on-click-middle": "mode",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
},
"pulseaudio": {
"scroll-step": 1,
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": "<span foreground='#f2594b'> {format_source}</span>",
"format-muted": "<span foreground='#f2594b'></span> {format_source}",
"format-source": " ",
"format-source-muted": " <span foreground='#f2594b'></span>",
"format-icons": {
"headphone": "",
"headset": "",
"default": ["", "", ""]
},
"tooltip": false,
"on-click": "pavucontrol --class=pavu",
"on-click-right": "easyeffects",
"ignored-sinks": ["Easy Effects Sink", "Monitor of Easy Effects Sink"]
},
"network": {
"format-wifi": "",
"format-ethernet": "",
"format-linked": "",
"format-disconnected": "",
"tooltip-format": "{essid}\n{ipaddr}/{cidr}",
"tooltip": true,
"on-click": "kitty --class=nmtui -e nmtui"
},
"cpu": {
"format": "{usage}% ",
"states": {
"warning": 60,
"critical": 80
},
"tooltip": false,
"on-click": "kitty --class=btop -e btop"
},
"memory": {
"tooltip": true,
"format": "{}% ",
"states": {
"warning": 60,
"critical": 80
},
"tooltip-format": "RAM: {used}GB/{total}GB\nSwap: {swapUsed}GB/{swapAvail}GB"
},
"temperature": { "temperature": {
// "thermal-zone": 2, "tooltip": false,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80, "critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°{icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""] "format-icons": ["", "", ""]
}, },
"backlight": { "backlight": {
"tooltip": false,
"format": "{percent}% {icon}", "format": "{percent}% {icon}",
"format-icons": ["", ""] "format-icons": [""]
}, },
"battery": { "battery": {
"tooltip": true,
"tooltip-format": "{time}",
"states": { "states": {
// "good": 95, "warning": 35,
"warning": 30, "critical": 20
"critical": 15
}, },
"format": "{capacity}% {icon}", "format": "{capacity}% {icon}",
"format-charging": "{capacity}% ", "format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "Connected ",
"tooltip-format": "{ifname} via {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"
"sway/language": {
"format": "{shortDescription}",
"tooltip": false
}, },
"pulseaudio": {
"format": "{volume}% {icon}", "tray": {
"format-bluetooth": "{volume}% {icon}", "tooltip": false,
"format-bluetooth-muted": "{icon} {format_source}", "spacing": 5
"format-muted": "{format_source}",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
}, },
"custom/media": {
"format": "{icon} {}", "custom/arrow-light-on-bg-left": {
"return-type": "json", "tooltip": false,
"max-length": 15, "format": ""
"format-icons": {
"spotify": " ",
"default": " "
},
"escape": true,
"exec": "$HOME/.config/system_scripts/mediaplayer.py 2> /dev/null",
"on-click": "playerctl play-pause"
}, },
"custom/launcher":{
"format": " ", "custom/arrow-dark-on-light-left": {
"on-click": "rofi -show drun -theme ~/.config/rofi/wayfire/config.rasi", "tooltip": false,
"on-click-right": "killall rofi" "format": ""
}, },
"custom/power":{
"format": " ", "custom/arrow-light-on-dark-left": {
"on-click": "nwg-bar", "tooltip": false,
"on-click-right": "killall nwg-bar" "format": ""
}, },
"custom/layout":{
"format": "", "custom/arrow-dark-on-bg-right": {
"on-click": "bash ~/.config/system_scripts/layout.sh" "tooltip": false,
"format": ""
}, },
"custom/updater":{
"format": " {} Updates", "custom/arrow-dark-on-light-right": {
"exec": "checkupdates | wc -l", "tooltip": false,
"exec-if": "[[ $(checkupdates | wc -l) != 0 ]]", "format": ""
"interval": 15, },
"on-click": "alacritty -e yay -Syu"
"custom/arrow-light-on-dark-right": {
"tooltip": false,
"format": ""
} }
} }
''; '';
}; };
# Waybar theming # Waybar theming
".config/waybar/style.css" = { ".config/waybar/style.css" = {
enable = true; enable = true;
executable = false; executable = false;
text = ''* { text = ''
* {
border: none; border: none;
border-radius: 0px; border-radius: 0;
/* `otf-font-awesome` is required to be installed for icons */ font-family: my-queue;
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
min-height: 0;
} }
window#waybar { #waybar {
background-color: transparent; background-color: rgba(50, 48, 47, 0.8);
color: black;
transition-property: background-color;
transition-duration: .5s;
} }
window#waybar.hidden {
opacity: 0.2;
}
#workspaces button { #workspaces button {
background: #1f1f1f; color: #e2cca9;
color: black; background-color: #32302f;
border-radius: 20px; font-size: 13px;
} }
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ #workspaces button:hover,
#workspaces button:hover { #workspaces button.focused:hover,
background: lightblue; #workspaces button.visible:hover {
color: black; color: #32302f;
border-bottom: 3px solid black; background-color: #e9b143;
} }
#workspaces button.focused { #workspaces button.focused {
background: #1f1f1f; background-color: #3c3836;
} box-shadow: inset 0 -3px #f28534;
#workspaces button.focused:hover {
background: lightblue;
color: black;
border-bottom: 3px solid black;
} }
#workspaces button.urgent { #workspaces button.urgent {
background-color: #eb4d4b; color: #32302f;
background-color: #f2594b;
}
#workspaces button.visible {
background-color: #3c3836;
}
/*
* Arrows
*/
#custom-arrow-light-on-bg-left {
font-size: 15px;
color: #3c3836;
background-color: transparent;
}
#custom-arrow-dark-on-bg-right {
font-size: 15px;
color: #32302f;
background-color: transparent;
}
#custom-arrow-light-on-dark-left,
#custom-arrow-light-on-dark-right {
font-size: 15px;
color: #3c3836;
background: #32302f;
}
#custom-arrow-dark-on-light-left,
#custom-arrow-dark-on-light-right {
font-size: 15px;
color: #32302f;
background: #3c3836;
}
/*
* General background
*/
#network,
#memory,
#backlight,
#language,
#custom-weather {
color: #e2cca9;
font-size: 13px;
background-color: #32302f;
padding: 0 3 0 3;
}
#cpu,
#pulseaudio,
#temperature,
#battery,
#tray,
#custom-crypto {
color: #e2cca9;
font-size: 13px;
background-color: #3c3836;
padding: 0 3 0 3;
}
/*
* Warning plugins state
*/
#memory.warning,
#cpu.warning,
#battery.warning {
color: #e9b143;
}
/*
* Critical plugins state
*/
#cpu.critical,
#temperature.critical,
#memory.critical,
#battery.critical,
#network.disconnected {
color: #f2594b;
} }
#mode { #mode {
background-color: #64727D; color: #32302f;
border-bottom: 3px solid black; font-size: 13px;
} background-color: #f2594b;
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#custom-launcher,
#custom-power,
#custom-layout,
#custom-updater,
#custom-snip,
#taskbar,
#tray,
#mode,
#idle_inhibitor,
#mpd {
padding: 0 10px;
color: black;
}
#window,
#workspaces {
margin: 0px 4px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0px;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0px;
} }
#clock { #clock {
background-color: #FA8BFF; color: #e2cca9;
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%); font-size: 13px;
color: black;
border-radius: 0px 20px 20px 0px;
margin-right: 4px;
} }
#battery { #battery.charging {
background-color: black; color: #b0b846;
color: #000000;
} }
#battery.charging, #battery.plugged { #battery.plugged {
color: black; color: #80aa9e;
background-color: #26A65B;
} }
@keyframes blink { #pulseaudio.bluetooth {
to { color: #80aa9e;
background-color: black;
color: #000000;
}
} }
#battery.critical:not(.charging) { tooltip {
background-color: #f53c3c; color: #e2cca9;
color: black; font-size: 13px;
animation-name: blink; background-color: #32302f;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: #000000;
}
#cpu {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#memory {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#disk {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#backlight {
background-color: #90b1b1;
}
#network {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#network.disconnected {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: red;
}
#pulseaudio {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#pulseaudio.muted {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: red;
}
#custom-media {
background-color: #8EC5FC;
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
color: black;
border-radius: 20px;
margin-right: 5px;
margin-left: 5px;
}
#custom-media.custom-spotify {
background-color: #8EC5FC;
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
color: black;
border-radius: 20px;
margin-right: 5px;
}
#custom-media.custom-vlc {
background-color: #8EC5FC;
background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
color: black;
border-radius: 20px;
margin-right: 5px;
}
#custom-power{
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
font-size: 18px;
border-radius: 20px;
margin-left: 2px;
}
#custom-launcher{
background-color: #FA8BFF;
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
font-size: 25px;
border-radius: 20px;
margin-right: 2px;
}
#custom-updater {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#custom-snip {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
font-size: 20px;
}
#custom-layout{
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
font-size: 18px;
border-radius: 20px 0px 0px 20px;
}
#taskbar {
background-color: #2BD2FF;
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #FA8BFF 90%);
border-radius: 20px;
}
#temperature {
background-color: #FA8BFF;
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
border-radius: 0px 20px 20px 0px;
}
#temperature.critical {
background-color: #eb4d4b;
}
#tray {
background-color: #FA8BFF;
background-image: linear-gradient(-45deg, #2BD2FF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#tray > .passive {
-gtk-icon-effect: dim;
background-color: #FA8BFF;
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #FA8BFF;
background-image: linear-gradient(-45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
}
#idle_inhibitor {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
border-radius: 20px 0px 0px 20px;
}
#idle_inhibitor.activated {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
border-radius: 20px 0px 0px 20px;
}
#language {
background-color: #FA8BFF;
background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BD2FF 90%);
color: black;
min-width: 16px;
padding-left : 8px;
border-radius: 20px 0px 0px 20px;
}
#keyboard-state {
background: #97e1ad;
color: #000000;
min-width: 16px;
}
#keyboard-state > label {
padding: 0px 5px;
}
#keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2);
} }
''; '';
}; };