rofi powermenu + themes, polybar amd_gpu module, nvim icon fix mason, add powermenu on i3

This commit is contained in:
Tiago Sousa 2023-05-19 14:33:01 +01:00
parent aa29dcc3a8
commit 56bb5ee23d
10 changed files with 387 additions and 5 deletions

View file

@ -76,6 +76,9 @@ bindsym $mod+d exec --no-startup-id rofi -show drun
# .desktop file. It is a wrapper around dmenu, so you need that installed. # .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# start power menu (rofi)
bindsym $mod+p exec --no-startup-id $HOME/.config/rofi/scripts/powermenu.sh
# change focus # change focus
bindsym $mod+h focus left bindsym $mod+h focus left
bindsym $mod+j focus down bindsym $mod+j focus down

View file

@ -7,9 +7,9 @@ local options = {
ui = { ui = {
icons = { icons = {
package_pending = "", package_installed = "",
package_installed = "", package_pending = "",
package_uninstalled = "", package_uninstalled = ""
}, },
keymaps = { keymaps = {

View file

@ -92,7 +92,7 @@ offset-y = 0.7%
modules-left = i3 sep title modules-left = i3 sep title
modules-center = date dot time modules-center = date dot time
modules-right = cpu dot gpu dot memory dot pulseaudio sep filesystem modules-right = cpu dot amdgpu dot memory dot pulseaudio sep filesystem
background = ${colors.base} background = ${colors.base}
foreground = ${colors.text} foreground = ${colors.text}

View file

@ -82,6 +82,20 @@ format-prefix-foreground = ${colors.green}
format-prefix-padding-right = 1 format-prefix-padding-right = 1
format-suffix = °C format-suffix = °C
[module/amdgpu]
type = custom/script
exec = $HOME/.config/polybar/scripts/amd_gpu_temp.sh
interval = 1
label = %output%
format = <label>
format-prefix = 󰢮
format-prefix-foreground = ${colors.green}
format-prefix-padding-right = 1
format-suffix = °C
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 1 interval = 1

View file

@ -0,0 +1,3 @@
#! /usr/bin/bash
sensors | grep "edge" | awk '{print $2}' | cut -d "." -f 1 | sed -e 's/+//'

View file

@ -11,4 +11,5 @@ configuration{
sidebar-mode: true; sidebar-mode: true;
} }
@theme "/home/tsousa/.config/rofi/themes/catppuccin-frappe.rasi" //@theme "/home/tsousa/.config/rofi/themes/catppuccin-frappe.rasi"
@theme "/home/tsousa/.config/rofi/themes/catppuccin-macchiato.rasi"

View file

@ -0,0 +1,28 @@
#! /usr/bin/env bash
OPTIONS="Suspend\nLock\nReboot\nPower-off\nExit i3\n"
LAUNCHER="rofi -dmenu -i -p Power"
LOCKER="betterlockscreen -l"
option=$(echo -e "$OPTIONS" | $LAUNCHER | awk '{print $1}' | tr -d '\r\n')
if [ ${#option} -gt 0 ]
then
case $option in
Suspend)
$LOCKER ;systemctl suspend
;;
Reboot)
systemctl reboot
;;
Lock)
$LOCKER
;;
Power-off)
systemctl poweroff
;;
Exit)
eval exit i3
;;
esac
fi

View file

@ -0,0 +1,111 @@
* {
bg-col: #eff1f5;
bg-col-light: #eff1f5;
border-col: #eff1f5;
selected-col: #eff1f5;
blue: #1e66f5;
fg-col: #4c4f69;
fg-col2: #d20f39;
grey: #9ca0b0;
width: 600;
font: "JetBrainsMono Nerd Font 14";
}
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
lines: 5;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
message {
background-color: @bg-col-light;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: @blue;
background-color: @bg-col-light;
}

View file

@ -0,0 +1,111 @@
* {
bg-col: #24273a;
bg-col-light: #24273a;
border-col: #24273a;
selected-col: #24273a;
blue: #8aadf4;
fg-col: #cad3f5;
fg-col2: #ed8796;
grey: #6e738d;
width: 600;
font: "JetBrainsMono Nerd Font 14";
}
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
lines: 5;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
message {
background-color: @bg-col-light;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: @blue;
background-color: @bg-col-light;
}

View file

@ -0,0 +1,111 @@
* {
bg-col: #1e1e2e;
bg-col-light: #1e1e2e;
border-col: #1e1e2e;
selected-col: #1e1e2e;
blue: #89b4fa;
fg-col: #cdd6f4;
fg-col2: #f38ba8;
grey: #6c7086;
width: 600;
font: "JetBrainsMono Nerd Font 14";
}
element-text, element-icon , mode-switcher {
background-color: inherit;
text-color: inherit;
}
window {
height: 360px;
border: 3px;
border-color: @border-col;
background-color: @bg-col;
}
mainbox {
background-color: @bg-col;
}
inputbar {
children: [prompt,entry];
background-color: @bg-col;
border-radius: 5px;
padding: 2px;
}
prompt {
background-color: @blue;
padding: 6px;
text-color: @bg-col;
border-radius: 3px;
margin: 20px 0px 0px 20px;
}
textbox-prompt-colon {
expand: false;
str: ":";
}
entry {
padding: 6px;
margin: 20px 0px 0px 10px;
text-color: @fg-col;
background-color: @bg-col;
}
listview {
border: 0px 0px 0px;
padding: 6px 0px 0px;
margin: 10px 0px 0px 20px;
columns: 2;
lines: 5;
background-color: @bg-col;
}
element {
padding: 5px;
background-color: @bg-col;
text-color: @fg-col ;
}
element-icon {
size: 25px;
}
element selected {
background-color: @selected-col ;
text-color: @fg-col2 ;
}
mode-switcher {
spacing: 0;
}
button {
padding: 10px;
background-color: @bg-col-light;
text-color: @grey;
vertical-align: 0.5;
horizontal-align: 0.5;
}
button selected {
background-color: @bg-col;
text-color: @blue;
}
message {
background-color: @bg-col-light;
margin: 2px;
padding: 2px;
border-radius: 5px;
}
textbox {
padding: 6px;
margin: 20px 0px 0px 20px;
text-color: @blue;
background-color: @bg-col-light;
}