revisit i3 for memories, modify waybar config to make it look better >:)

main
Ayush Mukherjee 2 years ago
parent 5ff0fa7e71
commit fdaf69e0e0

@ -1,2 +1,3 @@
--ozone-platform=wayland
--ozone-hint=wayland
--enable-features=UseOzonePlatform

@ -175,7 +175,7 @@ gaps inner 20
#smart_gaps on
# ws 4 no gaps
workspace $ws4 gaps inner 0
#workspace $ws4 gaps inner 0
# set desktop bg
exec_always --no-startup-id feh --bg-fill /home/ayush/.config/i3/wall.jpg
@ -224,10 +224,14 @@ bindsym XF86MonBrightnessDown exec sudo /usr/bin/light -U 10
# Custom Bindings for Applications
# Mod + n brave
#bindsym $mod+n exec "brave --enable-features=VaapiVideoDecoder --use-gl=desktop --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-memory-buffer-compositor-resources --disable-gpu-memory-buffer-video-frames --enable-hardware-overlays"
bindsym $mod+n exec "brave --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization --enable-video-acceleration --enable-zero-copy --use-gl=desktop --ignore-gpu-blocklist --ignore-gpu-blacklist --enable-oop-rasterization --enable-raw-draw --enable-gpu-rasterization --use-vulkan --disable-reading-from-canvas --disable-sync-preferences"
#bindsym $mod+n exec "brave --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization --enable-video-acceleration --enable-zero-copy --use-gl=desktop --ignore-gpu-blocklist --ignore-gpu-blacklist --enable-oop-rasterization --enable-raw-draw --enable-gpu-rasterization --use-vulkan --disable-reading-from-canvas --disable-sync-preferences"
bindsym $mod+n exec firefox
bindsym $mod+b exec notesnook
bindsym $mod+Shift+b exec "microsoft-edge-beta --enable-features=VaapiVideoDecoder,VaapiVideoEncoder --disable-features=UseChromeOSDirectVideoDecoder"
# Mod + b min
bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization"
#bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization"
# Mod + m pantheon files
bindsym $mod+m exec io.elementary.files

@ -3,7 +3,7 @@ output eDP-1 {
#mode 1920x1080@60.004Hz
mode 1920x1080@144.003Hz
scale 1.25
adaptive_sync on
adaptive_sync off
}
# set mouse
@ -21,6 +21,9 @@ input "1267:12521:ELAN1205:00_04F3:30E9_Touchpad" {
exec systemctl --user import-environment SWAYSOCK WAYLAND_DISPLAY
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# fix for screen sharing
exec /usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-wlr
# fix for gtk theming
exec_always {
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
@ -257,14 +260,15 @@ bindsym XF86MonBrightnessDown exec sudo /usr/bin/light -U 10
# Custom Bindings for Applications
# Mod + n firefox
bindsym $mod+n exec firefox -p
#bindsym $mod+n exec "brave --enable-features=VaapiVideoDecoder --use-gl=desktop --disable-features=UseChromeOSDirectVideoDecoder --disable-gpu-memory-buffer-compositor-resources --disable-gpu-memory-buffer-video-frames --enable-hardware-overlays"
#bindsym $mod+n exec "brave --enable-features=VaapiVideoEncoder,VaapiVideoDecoder,CanvasOopRasterization --enable-video-acceleration --enable-zero-copy --use-gl=desktop --ignore-gpu-blocklist --ignore-gpu-blacklist --enable-oop-rasterization --enable-raw-draw --enable-gpu-rasterization --use-vulkan --disable-reading-from-canvas --disable-sync-preferences"
bindsym $mod+n exec firefox
# Mod + b (old: min) notesnook
#bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ozone-platform-hint=auto --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization"
bindsym $mod+b exec "notesnook --ozone-platform=wayland --ozone-platform-hint=wayland"
# Mod + Shift + b edge
bindsym $mod+Shift+b exec "microsoft-edge-beta --enable-features=UseOzonePlatform,VaapiVideoDecoder,VaapiVideoEncoder,WebRTCPipeWireCapturer --ozone-platform=wayland --ozone-platform-hint=wayland --disable-features=UseChromeOSDirectVideoDecoder --use-gl=egl"
# Mod + m pantheon files
bindsym $mod+m exec io.elementary.files

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

@ -2,20 +2,21 @@
//"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px)
"spacing": 0, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [],
"modules-right": ["custom/bluetooth-battery", "battery", "pulseaudio", "cpu", "temperature", "memory", "backlight", "clock", "tray"],
"modules-right": ["custom/bluetooth-battery", "custom/left-semi", "battery", "custom/right-semi", "pulseaudio", "custom/left-semi", "cpu", "custom/right-semi", "temperature", "custom/left-semi", "memory", "custom/right-semi", "backlight", "custom/left-semi", "clock", "custom/right-semi", "tray"],
"fixed-center": true,
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"tray": {
// "icon-size": 21,
"icon-size": 14,
"spacing": 10
},
"clock": {
"format": " {:%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
@ -24,7 +25,7 @@
"tooltip": false
},
"memory": {
"format": "󰍛 {}%"
"format": " {}%"
},
"temperature": {
"critical-threshold": 80,
@ -37,8 +38,8 @@
"battery": {
"states": {
// "good": 95,
"warning": 19,
"critical": 15,
"warning": 50,
"critical": 40,
},
"format": " {capacity}%",
"format-time": "{H}h {M}m",
@ -47,6 +48,12 @@
"format-alt": "{icon} {time}",
"format-icons": ["", "", "", "", ""]
},
"custom/left-semi": {
"format": "",
},
"custom/right-semi": {
"format": "",
},
"custom/bluetooth-battery": {
"format": "{}",
"return-type": "json",

@ -1,30 +1,23 @@
* {
font-family: 'JetBrainsMono Nerd Font', 'Material Icons', 'unifont';
font-size: 15px;
font-size: 10pt;
}
window#waybar {
background-color: rgba(30, 34, 42, 1);
background-color: #1e222a;
color: #979eab;
padding: 0 1px;
}
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
padding: 0 500px;
}
#workspaces button {
margin: 5px 0;
padding: 0 2px;
background: transparent;
color: #979eab;
box-shadow: inset 0 -2px transparent;
border: none;
border-radius: 0;
transition: none;
}
#workspaces button:hover {
@ -43,6 +36,17 @@ window#waybar.chromium {
box-shadow: inset 0 -2px #e06c75;
}
#custom-left-semi,
#custom-right-semi {
color: #2b2f37;
margin: 0;
padding: 0;
}
#custom-right-semi {
margin-right: 4px;
}
#clock,
#battery,
#cpu,
@ -52,13 +56,14 @@ window#waybar.chromium {
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#mpd {
#mode
{
padding: 0 10px;
color: #979eab;
}
.modules-right {
padding: 5px 0;
}
#window,
@ -78,7 +83,8 @@ window#waybar.chromium {
#clock {
background-color: #282c35;
padding: 0 20px;
color: #abb2bf;
padding: 0 10px;
}
#battery {
@ -100,6 +106,7 @@ window#waybar.chromium {
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
transition: none;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
@ -171,7 +178,7 @@ label:focus {
}
#tray {
background-color: #2980b9;
background-color: #1e2127;
}
#tray > .passive {

Loading…
Cancel
Save