Browse Source

Even more Gruvbox, start tracking a bunch of others

master
John Mertz 1 year ago
parent
commit
acc06c8cf5
20 changed files with 675 additions and 370 deletions
  1. +38
    -0
      .gitignore
  2. +3
    -0
      .gtkrc-2.0
  3. +105
    -0
      color-schemes/Gruvbox.colors
  4. +53
    -0
      firefox/Dark-Reader-Settings.json
  5. +1
    -1
      gtk-2.0/settings.ini
  6. +1
    -1
      gtk-3.0/settings.ini
  7. +1
    -1
      gtk-4.0/settings.ini
  8. +1
    -0
      icons/default/index.theme
  9. +4
    -1
      profile
  10. +28
    -0
      qt5ct/qt5ct.conf
  11. +8
    -0
      rofi/config
  12. +133
    -0
      rofi/sidebar.rasi
  13. +17
    -0
      sway/colorscheme
  14. +16
    -15
      sway/config
  15. +41
    -0
      vim/autoload/gruvbox.vim
  16. +1
    -0
      vim/colorscheme.vim
  17. +1
    -0
      vim/vimrc
  18. +0
    -254
      waybar/config
  19. +130
    -27
      waybar/config.template
  20. +93
    -70
      waybar/style.css

+ 38
- 0
.gitignore View File

@@ -0,0 +1,38 @@
# Temporary files
blc.last
last_display
last_login_gui

# Private or machine-specific
evolution
libvirt
lxc
orage
papillon
systemd

# Files that I never change; created by default
autostart
chromium
dconf
discord
flatpak
GIMP
gtk-2.0/gtkfilechooser.ini
gtk-3.0/gtk.css
inkscape
kdenlive*
kolourpaintrc
libreoffice
mime
mimeapps.list
Nextcloud
pavucontrol.ini
pcmanfm
pulse
tlpui/tlpui.cfg
torbrowser
transmission
vlc
*.xbel*
xfce4/terminal/accels.scm

+ 3
- 0
.gtkrc-2.0 View File

@@ -0,0 +1,3 @@
include "/usr/share/themes/Gruvbox/gtk-2.0/gtkrc"

include "/home/jpm/.gtkrc-2.0.mine"

+ 105
- 0
color-schemes/Gruvbox.colors View File

@@ -0,0 +1,105 @@
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65000000000000002
ContrastEffect=1
IntensityAmount=0.10000000000000001
IntensityEffect=2

[ColorEffects:Inactive]
ChangeSelectionColor=true
Color=112,111,110
ColorAmount=0.025000000000000001
ColorEffect=2
ContrastAmount=0.10000000000000001
ContrastEffect=2
Enable=true
IntensityAmount=0
IntensityEffect=0

[Colors:Button]
BackgroundAlternate=60,56,54
BackgroundNormal=40,40,40
DecorationFocus=131,165,152
DecorationHover=131,165,152
ForegroundActive=142,192,124
ForegroundInactive=189,195,199
ForegroundLink=184,187,38
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=235,219,178
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:Selection]
BackgroundAlternate=142,192,124
BackgroundNormal=131,165,152
DecorationFocus=131,165,152
DecorationHover=131,165,152
ForegroundActive=252,252,252
ForegroundInactive=235,219,178
ForegroundLink=253,188,75
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=235,219,178
ForegroundPositive=39,174,96
ForegroundVisited=189,195,199

[Colors:Tooltip]
BackgroundAlternate=60,56,54
BackgroundNormal=40,40,40
DecorationFocus=131,165,152
DecorationHover=131,165,152
ForegroundActive=184,187,38
ForegroundInactive=189,195,199
ForegroundLink=142,192,124
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=235,219,178
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:View]
BackgroundAlternate=60,56,54
BackgroundNormal=40,40,40
DecorationFocus=131,165,152
DecorationHover=131,165,152
ForegroundActive=184,187,38
ForegroundInactive=189,195,199
ForegroundLink=142,192,124
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=235,219,178
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:Window]
BackgroundAlternate=60,56,54
BackgroundNormal=40,40,40
DecorationFocus=131,165,152
DecorationHover=131,165,152
ForegroundActive=184,187,38
ForegroundInactive=189,195,199
ForegroundLink=142,192,124
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=235,219,178
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[General]
ColorScheme=Gruvbox
Name=Gruvbox
shadeSortColumn=true

[KDE]
contrast=4

[WM]
activeBackground=39,39,39
activeBlend=235,219,178
activeForeground=235,219,178
inactiveBackground=40,40,40
inactiveBlend=60,56,54
inactiveForeground=204,190,155

+ 53
- 0
firefox/Dark-Reader-Settings.json View File

@@ -0,0 +1,53 @@
{
"applyToListedOnly": false,
"automation": "",
"changeBrowserTheme": false,
"customThemes": [],
"enableForPDF": true,
"enableForProtectedPages": false,
"enabled": true,
"location": {
"latitude": null,
"longitude": null
},
"notifyOfNews": false,
"presets": [],
"previewNewDesign": true,
"siteList": [
"192.168.2.1",
"10.8.0.1",
"webcast.mailcleaner.net",
"docs.mailcleaner.net",
"localhost",
"im.fastnet.ch",
"git.john.me.tz",
"john.me.tz"
],
"siteListEnabled": [
],
"syncSettings": true,
"syncSitesFixes": true,
"theme": {
"mode": 1,
"brightness": 100,
"contrast": 100,
"grayscale": 0,
"sepia": 0,
"useFont": true,
"fontFamily": "Fira Code",
"textStroke": 0,
"engine": "dynamicTheme",
"stylesheet": "",
"darkSchemeBackgroundColor": "#1d2021",
"darkSchemeTextColor": "#ebdbb2",
"lightSchemeBackgroundColor": "#dcdad7",
"lightSchemeTextColor": "#181a1b",
"scrollbarColor": "auto",
"selectionColor": "auto",
"styleSystemControls": true
},
"time": {
"activation": "18:00",
"deactivation": "9:00"
}
}

+ 1
- 1
gtk-2.0/settings.ini View File

@@ -1,5 +1,5 @@
[Settings]
gtk-theme-name=Arc-Dark
gtk-theme-name=Gruvbox
gtk-icon-theme-name=Papirus-Dark-Grey
gtk-font-name=Fira Code 11
gtk-cursor-theme-name=FlatbedCursors-Blue


+ 1
- 1
gtk-3.0/settings.ini View File

@@ -1,5 +1,5 @@
[Settings]
gtk-theme-name=Adwaita-dark
gtk-theme-name=Gruvbox
gtk-icon-theme-name=Papirus-Dark-Grey
gtk-font-name=Fira Code 11
gtk-cursor-theme-name=FlatbedCursors-Blue


+ 1
- 1
gtk-4.0/settings.ini View File

@@ -1,2 +1,2 @@
[Settings]
gtk-application-prefer-dark-theme=1
gtk-application-prefer-dark-theme=0

+ 1
- 0
icons/default/index.theme View File

@@ -1,3 +1,4 @@
# This file is written by LXAppearance. Do not edit.
[Icon Theme]
Name=Default
Comment=Default Cursor Theme


+ 4
- 1
profile View File

@@ -1,7 +1,10 @@
export GTK_THEME="Adwaita:dark"
export GTK_THEME="Gruvbox"
export XDG_DATA_HOME="${HOME}/.config"
export PROFILE_NAME="Gruvbox"
export QT_QPA_PLATFORMTHEME="qt5ct"
export DCONF=".config/dconf/user"
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.$HOSTNAME.sock
source ${HOME}/.config/bash/bash_aliases

ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null


+ 28
- 0
qt5ct/qt5ct.conf View File

@@ -0,0 +1,28 @@
[Appearance]
color_scheme_path=/usr/share/qt5ct/colors/darker.conf
custom_palette=false
icon_theme=Papirus-Dark-Grey
standard_dialogs=default
style=Adwaita-Dark

[Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x12\0\x46\0i\0r\0\x61\0 \0\x43\0o\0\x64\0\x65@&\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
general=@Variant(\0\0\0@\0\0\0\x12\0\x46\0i\0r\0\x61\0 \0\x43\0o\0\x64\0\x65@&\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)

[Interface]
activate_item_on_single_click=1
buttonbox_layout=0
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=@Invalid()
keyboard_scheme=2
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3

[SettingsWindow]
geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\x1\0\0\0\x1\0\0\a~\0\0\x4\"\0\0\0\0\0\0\0\x14\0\0\x5;\0\0\x4y\0\0\0\0\x2\0\0\0\a\x80\0\0\0\x1\0\0\0\x1\0\0\a~\0\0\x4\")"

+ 8
- 0
rofi/config View File

@@ -0,0 +1,8 @@
! Rofi config file
rofi.lines: 20
rofi.font: Fira Code 10, FontAwesome 10
rofi.show-icons: true
rofi.display-window: Window
rofi.display-drun: Search
rofi.modi: window,run,ssh,drun
rofi.theme: /home/jpm/.config/rofi/sidebar.rasi

+ 133
- 0
rofi/sidebar.rasi View File

@@ -0,0 +1,133 @@
/**
* User: deadguy
* Copyright: deadguy
*/

configuration {
display-drun: "Activate";
display-run: "Execute";
display-window: "Window";
show-icons: true;
sidebar-mode: true;
}

* {
background-color: #1d2021;
text-color: #ebdbb2;
selbg: #d79921;
actbg: #928374;
urgbg: #fabd2f;
winbg: #000000;

selected-normal-foreground: @winbg;
normal-foreground: @text-color;
selected-normal-background: @actbg;
normal-background: @background-color;

selected-urgent-foreground: @background-color;
urgent-foreground: @text-color;
selected-urgent-background: @urgbg;
urgent-background: @background-color;

selected-active-foreground: @winbg;
active-foreground: @text-color;
selected-active-background: @actbg;
active-background: @selbg;

line-margin: 2;
line-padding: 2;
separator-style: "none";
hide-scrollbar: "true";
margin: 0 0 0 0;
padding: 0;
}

window {
location: west;
anchor: west;
height: 100%;
width: 22%;
orientation: horizontal;
children: [mainbox];
border: 0 1 0 0;
border-color: @actbg;
}

mainbox {
spacing: 0.8em;
children: [ entry,listview,sidebar ];
}

button { padding: 5px 2px; }

button selected {
background-color: @active-background;
text-color: @background-color;
}

inputbar {
padding: 5px;
spacing: 5px;
}

listview {
spacing: 0.5em;
dynamic: false;
cycle: true;
}

element { padding: 10px; }

entry {
expand: false;
text-color: @normal-foreground;
vertical-align: 1;
padding: 5px;
}

element normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}

element normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}

element normal.active {
background-color: @active-background;
text-color: @active-foreground;
}

element selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
/*border: 0 5px solid 0 0;
border-color: @active-background;*/
}

element selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}

element selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}

element alternate.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}

element alternate.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}

element alternate.active {
background-color: @active-background;
text-color: @active-foreground;
}

+ 17
- 0
sway/colorscheme View File

@@ -0,0 +1,17 @@
set $base0D #1d2021
set $base00 #ebdbb2
set $base01 #282828
set $base02 #cc241d
set $base03 #98971a
set $base04 #d79921
set $base05 #458588
set $base06 #b16286
set $base07 #68986a
set $base08 #a89984
set $base09 #928374
set $base0A #fb4934
set $base0B #b8bb26
set $base0C #fabd2f
set $base0D #83a598
set $base0E #d3869b
set $base0F #8ec07c

+ 16
- 15
sway/config View File

@@ -6,6 +6,17 @@ input * xkb_variant "dvorak"
set $mod Mod4

### Appearance
include colorscheme

# Basic color configuration using the Base16 variables for windows and borders.
client.background $base00
# # Property Name Border BG Text Indicator Child Border
client.focused $base05 $base0D $base00 $base0D $base0D
client.focused_inactive $base01 $base01 $base05 $base03 $base01
client.unfocused $base01 $base00 $base05 $base01 $base01
client.urgent $base08 $base08 $base00 $base08 $base08
client.placeholder $base00 $base00 $base05 $base00 $base00
client.background $base07

## Windows
# Remove borders from all windows
@@ -17,16 +28,6 @@ font pango:Fira Code 11
# Allow movement of floating windows with Left Click+Drag
floating_modifier $mod

# Black and white borders, where they exist
# class border backgr. text indicat child_b
client.focused #ffffff #000000 #ffffff #ffffff #ffffff
client.focused_inactive #dddddd #606060 #dddddd #ffffff #000000
client.unfocused #606060 #000000 #606060 #ffffff #000000
# Urgent windows (especially those caused by a bell) surrounded in red
client.urgent #FF0000 #606060 #dddddd #ffffff #ff0000
# Should never see window background. Make Blue so that it's obvious when something weird is happening.
client.background #0000ff

### Keybindings

## Vim-style navigation and movement
@@ -75,8 +76,7 @@ bindsym $mod+Shift+e exec /home/jpm/scripts/rofi/rofi-ssh-menu.sh

# Ring: start a file manager
#bindsym $mod+o exec xfce4-terminal -c /usr/bin/mc
#bindsym $mod+o exec pcmanfm
bindsym $mod+o exec thunar
bindsym $mod+o exec pcmanfm
# Add Shift: VPN quick menu
bindsym $mod+Shift+o exec /home/jpm/scripts/rofi/rofi-openvpn.sh

@@ -355,14 +355,15 @@ for_window [class="Vncviewer"] fullscreen enable
## Startup Applications

# Notification daemon
exec mako &
# Mako not quite ready for prime-time
#exec mako &
exec dunst &

# Taskbar
exec waybar &
exec orage &
exec nm-applet &
exec blueman-applet &
exec ssh-add &
exec nextcloud &
#exec pasystray &
#exec krandrtray &
@@ -389,7 +390,7 @@ exec ~/bin/firefox/firefox &
exec sleep 5s; orage -t &

# Some theme settings that don't seem to be fetched from configs (I'm too lazy to investigate)
exec gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' &
exec gsettings set org.gnome.desktop.interface gtk-theme 'Gruvbox' &
exec gsettings set org.gnome.desktop.interface cursor-theme 'FlatbedCursors-Blue' &
exec gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark-Grey' &



+ 41
- 0
vim/autoload/gruvbox.vim View File

@@ -0,0 +1,41 @@
" -----------------------------------------------------------------------------
" File: gruvbox.vim
" Description: Retro groove color scheme for Vim
" Author: morhetz <morhetz@gmail.com>
" Source: https://github.com/morhetz/gruvbox
" Last Modified: 09 Apr 2014
" -----------------------------------------------------------------------------

function! gruvbox#invert_signs_toggle()
if g:gruvbox_invert_signs == 0
let g:gruvbox_invert_signs=1
else
let g:gruvbox_invert_signs=0
endif

colorscheme gruvbox
endfunction

" Search Highlighting {{{

function! gruvbox#hls_show()
set hlsearch
call GruvboxHlsShowCursor()
endfunction

function! gruvbox#hls_hide()
set nohlsearch
call GruvboxHlsHideCursor()
endfunction

function! gruvbox#hls_toggle()
if &hlsearch
call gruvbox#hls_hide()
else
call gruvbox#hls_show()
endif
endfunction

" }}}

" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker:

+ 1
- 0
vim/colorscheme.vim View File

@@ -0,0 +1 @@
colorscheme base16-gruvbox-dark-hard

+ 1
- 0
vim/vimrc View File

@@ -8,6 +8,7 @@ autocmd vimenter * colorscheme gruvbox

set ttyfast

set background=dark
set laststatus=2
set encoding=utf-8
set autoread


+ 0
- 254
waybar/config View File

@@ -1,254 +0,0 @@
// You should almost never use this file. Try to run
// ~/scripts/sway/dislpays.pl -w layout_name
// instead. It will generate a script using config.template automatically.
// -w has it only manage Waybar instead of the displays as well.
[{
"output": "eDP-1",
"layer": "top", // Waybar at top layer
"position": "bottom", // Waybar position (top|bottom|left|right)
"height": 20, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["custom/launcher", "sway/mode", "sway/workspaces"],
"modules-center": ["sway/window"],
"modules-right": ["network", "network#openvpn", "cpu", "memory", "temperature", "backlight", "custom/disk", "pulseaudio", "battery", "clock", "tray", "idle_inhibitor", "custom/power"],
// Modules configuration
"sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
"format": "{icon}",
"format-icons": {
"0": "0 \uf073",
"1": "1 \uf27a",
"2": "2 \uf0e0",
"3": "3 \uf268",
"4": "4 \uf144",
"5": "5 \uf095",
"6": "6 \uf120",
"7": "7 \uf269",
"8": "8 \uf121",
"9": "9 \uf126",
"C0": "C0",
"C1": "C1",
"C2": "C2",
"C3": "C3",
"C4": "C4",
"C5": "C5",
"C6": "C6",
"C7": "C7",
"C8": "C8",
"C9": "C9",
"grave": "",
"urgent": "!"
// "focused": "",
// "default": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"clock": {
"tooltip-format": "{:%Y-%m-%d}",
"on-click": "orage -t"
// "format-alt": "{:%Y-%m-%d}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"cpu": {
"format": "{usage}% ",
"tooltip": false,
"on-click": "/home/jpm/scripts/waybar/waybar-cpu.sh"
},
"memory": {
"format": "{}% ",
"on-click": "/home/jpm/scripts/waybar/waybar-mem.sh"
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C ",
"format": "{temperatureC}°C "
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""],
"on-click": "if [[ $(pgrep -fc tlpui) -gt 1 ]]; then pkill -f tlpui; else tlpui; fi"
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
"interface": "wlp58s0", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname}: {ipaddr} ",
"format-disconnected": "Disconnected ⚠",
"on-click": "if [ $(sudo pgrep -c nmtui) -gt 0 ]; then sudo pkill nmtui; else /usr/bin/uxterm -e 'sudo /usr/bin/nmtui'; fi"
},
"network#openvpn": {
"interface": "tun0", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr} ",
"format-disconnected": "No VPN ⚠",
"on-click": "/home/jpm/scripts/rofi/rofi-openvpn.sh"
},
"custom/disk": {
"format": "{} \uf0a0",
"exec": "df / | tail -n 1 | awk {'print $5'}",
"on-click": "/home/jpm/scripts/waybar/waybar-disk.sh"
},
"custom/power": {
"format": "\u23FB",
"on-click": "/home/jpm/scripts/rofi/rofi-power-menu.sh"
},
"custom/launcher": {
"format": "Start",
"on-click": "/home/jpm/scripts/waybar/drun.sh"
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pavucontrol"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
}
},{
"output": "HDMI-A-3",
"modules-left": ["sway/mode", "sway/workspaces"],
"modules-center": ["sway/window"],
"height": 24,
"sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
"format": "{name}{icon}",
"format-icons": {
"0": " \uf073",
"1": " \uf27a",
"2": " \uf0e0",
"3": " \uf268",
"4": " \uf144",
"5": " \uf095",
"6": " \uf120",
"7": " \uf269",
"8": " \uf121",
"9": " \uf126",
"C0": "",
"C1": "",
"C2": "",
"C3": "",
"C4": "",
"C5": "",
"C6": "",
"C7": "",
"C8": "",
"C9": "",
"urgent": "!"
// "focused": "",
// "default": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
}
},{
"output": "DP-1-2",
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 20, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/mode", "sway/workspaces"],
"modules-center": ["sway/window"],
"modules-right": ["clock", "idle_inhibitor"],
// Modules configuration
"sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
"format": "{name}{icon}",
"format-icons": {
"0": " \uf073",
"1": " \uf27a",
"2": " \uf0e0",
"3": " \uf268",
"4": " \uf144",
"5": " \uf095",
"6": " \uf120",
"7": " \uf269",
"8": " \uf121",
"9": " \uf126",
"C0": "",
"C1": "",
"C2": "",
"C3": "",
"C4": "",
"C5": "",
"C6": "",
"C7": "",
"C8": "",
"C9": "",
"urgent": "!"
// "focused": "",
// "default": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"clock": {
"tooltip-format": "{:%Y-%m-%d}",
"on-click": "orage -t"
// "format-alt": "{:%Y-%m-%d}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
}
}]

+ 130
- 27
waybar/config.template View File

@@ -1,9 +1,13 @@
// You should almost never use this file. Try to run
// ~/scripts/sway/dislpays.pl -w layout_name
// instead. It will generate a script using config.template automatically.
// -w has it only manage Waybar instead of the displays as well.
[{
"output": __OUTPUT__,
"output": "eDP-1",
"layer": "top", // Waybar at top layer
"position": __POSITION__, // Waybar position (top|bottom|left|right)
"position": "bottom", // Waybar position (top|bottom|left|right)
"height": 20, // Waybar height (to be removed for auto height)
"width": __WIDTH__, // Waybar width
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["custom/launcher", "sway/mode", "sway/workspaces"],
"modules-center": ["sway/window"],
@@ -12,28 +16,29 @@
"sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
"format": "{name}{icon}",
"format": "{icon}",
"format-icons": {
"0": " \uf073",
"1": " \uf27a",
"2": " \uf0e0",
"3": " \uf268",
"4": " \uf144",
"5": " \uf095",
"6": " \uf120",
"7": " \uf269",
"8": " \uf121",
"9": " \uf126",
"C0": "",
"C1": "",
"C2": "",
"C3": "",
"C4": "",
"C5": "",
"C6": "",
"C7": "",
"C8": "",
"C9": "",
"0": "0 \uf073",
"1": "1 \uf27a",
"2": "2 \uf0e0",
"3": "3 \uf268",
"4": "4 \uf144",
"5": "5 \uf095",
"6": "6 \uf120",
"7": "7 \uf269",
"8": "8 \uf121",
"9": "9 \uf126",
"C0": "C0",
"C1": "C1",
"C2": "C2",
"C3": "C3",
"C4": "C4",
"C5": "C5",
"C6": "C6",
"C7": "C7",
"C8": "C8",
"C9": "C9",
"grave": "",
"urgent": "!"
// "focused": "",
// "default": ""
@@ -106,7 +111,7 @@
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr} ",
"format-disconnected": "No VPN ⚠",
"on-click": "/home/jpm/scripts/rofi/rofi-openvpn.sh"
"on-click": "if [ $(sudo pgrep -c rofi) -gt 0 ]; then pkill rofi; else /home/jpm/scripts/rofi/rofi-openvpn.sh; fi"
},
"custom/disk": {
"format": "{} \uf0a0",
@@ -115,11 +120,11 @@
},
"custom/power": {
"format": "\u23FB",
"on-click": "/home/jpm/scripts/rofi/rofi-power-menu.sh"
"on-click": "if [ $(sudo pgrep -c rofi) -gt 0 ]; then pkill rofi; else /home/jpm/scripts/rofi/rofi-power-menu.sh; fi"
},
"custom/launcher": {
"format": "Start",
"on-click": "/home/jpm/scripts/waybar/drun.sh"
"on-click": "if [ $(sudo pgrep -c rofi) -gt 0 ]; then pkill rofi; else /home/jpm/scripts/rofi/drun.sh; fi"
},
"pulseaudio": {
//"scroll-step": 1,
@@ -148,4 +153,102 @@
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
}
},{
"output": "HDMI-A-3",
"modules-left": ["sway/mode", "sway/workspaces"],
"modules-center": ["sway/window"],
"height": 24,
"sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
"format": "{name}{icon}",
"format-icons": {
"0": " \uf073",
"1": " \uf27a",
"2": " \uf0e0",
"3": " \uf268",
"4": " \uf144",
"5": " \uf095",
"6": " \uf120",
"7": " \uf269",
"8": " \uf121",
"9": " \uf126",
"C0": "",
"C1": "",
"C2": "",
"C3": "",
"C4": "",
"C5": "",
"C6": "",
"C7": "",
"C8": "",
"C9": "",
"urgent": "!"
// "focused": "",
// "default": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
}
},{
"output": "DP-1-2",
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 20, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/mode", "sway/workspaces"],
"modules-center": ["sway/window"],
"modules-right": ["clock", "idle_inhibitor"],
// Modules configuration
"sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
"format": "{name}{icon}",
"format-icons": {
"0": " \uf073",
"1": " \uf27a",
"2": " \uf0e0",
"3": " \uf268",
"4": " \uf144",
"5": " \uf095",
"6": " \uf120",
"7": " \uf269",
"8": " \uf121",
"9": " \uf126",
"C0": "",
"C1": "",
"C2": "",
"C3": "",
"C4": "",
"C5": "",
"C6": "",
"C7": "",
"C8": "",
"C9": "",
"urgent": "!"
// "focused": "",
// "default": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"clock": {
"tooltip-format": "{:%Y-%m-%d}",
"on-click": "orage -t"
// "format-alt": "{:%Y-%m-%d}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
}
}]

+ 93
- 70
waybar/style.css View File

@@ -1,4 +1,24 @@
/* TODO: move to more Fluxbox-like colors */
/*
* FOREGROUND: #EBDBB2
* FG_HILITE: #FFFFFF
* BACKGROUND: #1D2021
* BG_HILITE: #928374
* RED: #CC241d
* BLUE: #458588
* YELLOW: #98971A
* ORANGE: #D79921
* GREEN: #68986A
* PURPLE: #B16286
* ALERT: #FB4934
* WARNING: #FABD2F
* OLIVE: #B8BB26
* TEAL: #83a598
* PINK: #D3869B
* GREENER: #8ec07c
*/

/* Global/Multi */

* {
border: none;
border-radius: 0;
@@ -8,71 +28,79 @@
}

window#waybar {
background: #000;
color: #fff;
background: #1D2021;
color: #A89984;
}

#window {
margin-left: 20px;
margin-right: 20px;
#custom-state, #clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-disk, #tray, #mode, #idle_inhibitor, #custom-launcher {
padding: 0 5px;
margin: 0px;
}

/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button {
padding: 0 5px;
color: #fff;
#custom-state, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-disk, #tray, #mode {
/* color: #EBDBB2; */
color: #FFFFFF;
}

#clock, #idle_inhibitor, #custom-state, #workspaces, #window {
background: #1D2021;
color: #FFFFFF;
}

/* Start Launcher */

#custom-launcher {
background: #458588;
color: #FFFFFF;
}

/* Workspaces */

#workspaces button.focused {
background: #666;
border-top: 2px solid #ddd;
background: #928374;
color: #FFFFFF;
}

#workspaces button.urgent {
background-color: #fff;
color: #000000;
background: #FB4934;
color: #FFFFFF;
}

#mode {
background: #444;
border-top: 2px solid #fff;
background: #928374;
color: #1D2021;
}

#custom-power, #clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-disk, #tray, #mode, #idle_inhibitor {
padding: 0 5px;
margin: 0px;
color: #ddd;
}
/* Window title */

#clock {
background-color: #000;
#window {
padding-right: 10px;
}

#battery {
background: #b80;
/* Pulseaudio */

#pulseaudio {
background: #68986A;
}

#battery.charging {
background: #CDCD32;
#pulseaudio.muted {
background: #928374;
}

@keyframes blink {
to {
background: #CD3232;
}
/* Networks */
#network {
background: #458588;
}

#battery.critical:not(.charging) {
background: #333;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
#network.disconnected {
background: #800;
}

label:focus {
background-color: #000000;
/* Resources */

#custom-disk {
background: #B16286;
}

#cpu {
@@ -80,55 +108,50 @@ label:focus {
}

#memory {
background: #808;
background: #D3869B;
}

#backlight {
background: #884
}
/* Power */

#network {
background: #048;
}

#network.disconnected {
background: #800;
#temperature.critical {
background: #CC241D;
}

#pulseaudio {
background: #484;
#temperature {
background: #98971A;
}

#pulseaudio.muted {
background: #444;
#backlight {
background: #B8BB26;
}

#custom-launcher {
background: #800;
#battery {
background: #D79921;
}

#custom-disk {
background: #CD60CD;
#battery.charging {
background: #68986A;
}

.custom-vlc {
background: #ffa000;
@keyframes blink {
to {
background: #CC241D;
}
}

#temperature {
background: #b84;
#battery.critical:not(.charging) {
background: #D79921;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}

#temperature.critical {
background: #f40;
}
/* Tray/Dock */

#tray {
background-color: #48b;
}

#idle_inhibitor {
background-color: #333;
background: #83a598;
}

#idle_inhibitor.activated {


Loading…
Cancel
Save