Trying sway again.
This commit is contained in:
parent
f74a21df78
commit
4af84a42b7
@ -13,6 +13,10 @@ URxvt.background: [90]#1d2021
|
|||||||
!URxvt.transparent: true
|
!URxvt.transparent: true
|
||||||
!URxvt.shading: 10
|
!URxvt.shading: 10
|
||||||
|
|
||||||
|
! Font settings I found on forum
|
||||||
|
URxvt.utf8: true
|
||||||
|
URxvt.locale: true
|
||||||
|
|
||||||
! Included this so you know how to make your foreground not match the color of your background
|
! Included this so you know how to make your foreground not match the color of your background
|
||||||
! light0_hard gruvbox
|
! light0_hard gruvbox
|
||||||
URxvt.foreground: #f9f5d7
|
URxvt.foreground: #f9f5d7
|
||||||
|
|||||||
@ -61,7 +61,7 @@ window:
|
|||||||
# Values for `decorations` (macOS only):
|
# Values for `decorations` (macOS only):
|
||||||
# - transparent: Title bar, transparent background and title bar buttons
|
# - transparent: Title bar, transparent background and title bar buttons
|
||||||
# - buttonless: Title bar, transparent background and no title bar buttons
|
# - buttonless: Title bar, transparent background and no title bar buttons
|
||||||
decorations: "Full"
|
decorations: "none"
|
||||||
|
|
||||||
# Background opacity
|
# Background opacity
|
||||||
#
|
#
|
||||||
|
|||||||
@ -79,12 +79,13 @@ border-top-size = 0
|
|||||||
padding-left = 5
|
padding-left = 5
|
||||||
padding-right = 5
|
padding-right = 5
|
||||||
; set the bar fonts
|
; set the bar fonts
|
||||||
|
; when using mono fonts, icons might appear way too small
|
||||||
;font-0 = fixed:pixelsize=10;1
|
;font-0 = fixed:pixelsize=10;1
|
||||||
;font-0 = "Wuncon Siji:pixelsize=15;1"
|
;font-0 = "Wuncon Siji:pixelsize=15;1"
|
||||||
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||||
;font-2 = "Inconsolata\ For\ Powerline:pixelsize=10;1"
|
;font-2 = "Inconsolata\ For\ Powerline:pixelsize=10;1"
|
||||||
;font-0 = FuraCode Nerd Font:pixelsize=11;1
|
;font-0 = FuraCode Nerd Font:pixelsize=11;1
|
||||||
font-0 = Hasklug Nerd Font Mono:pixelsize=11;1
|
font-0 = Hasklug Nerd Font:pixelsize=9;1
|
||||||
;font-1 = Siji:style=Regular:pixelsize=11
|
;font-1 = Siji:style=Regular:pixelsize=11
|
||||||
font-1 = Siji:pixelsize=14;0
|
font-1 = Siji:pixelsize=14;0
|
||||||
; override pointers
|
; override pointers
|
||||||
@ -104,7 +105,7 @@ bottom = false
|
|||||||
;border-right-size = 16
|
;border-right-size = 16
|
||||||
;unused modules - mpd xbacklight backlight-acpi alsa
|
;unused modules - mpd xbacklight backlight-acpi alsa
|
||||||
modules-left = i3
|
modules-left = i3
|
||||||
modules-center = temperature battery xkeyboard memory cpu filesystem updates-pacman updates-aurhelper reboot-check xbacklight top-process
|
modules-center = temperature gpu-temp battery xkeyboard memory cpu filesystem updates-pacman updates-aurhelper reboot-check xbacklight top-process
|
||||||
modules-right = net wifi0 vpn
|
modules-right = net wifi0 vpn
|
||||||
|
|
||||||
; TRAY MANAGEMENT
|
; TRAY MANAGEMENT
|
||||||
@ -147,6 +148,16 @@ tail = true
|
|||||||
label = %output%
|
label = %output%
|
||||||
label-foreground = ${colors.light0_hard}
|
label-foreground = ${colors.light0_hard}
|
||||||
|
|
||||||
|
[module/gpu-temp]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/scripts/gpu.temp.sh
|
||||||
|
tail = true
|
||||||
|
label = "%output%°C"
|
||||||
|
label-foreground = ${colors.light0_hard}
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.bright_green}
|
||||||
|
interval = 5
|
||||||
|
|
||||||
[module/info-hackspeed]
|
[module/info-hackspeed]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
@ -182,7 +193,7 @@ label = %title:0:30:...%
|
|||||||
[module/xkeyboard]
|
[module/xkeyboard]
|
||||||
type = internal/xkeyboard
|
type = internal/xkeyboard
|
||||||
blacklist-0 = num lock
|
blacklist-0 = num lock
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-prefix-foreground = ${colors.bright_green}
|
format-prefix-foreground = ${colors.bright_green}
|
||||||
;format-prefix-underline = ${colors.underline-keyboard}
|
;format-prefix-underline = ${colors.underline-keyboard}
|
||||||
; layout, number, name
|
; layout, number, name
|
||||||
@ -297,10 +308,10 @@ label-mode-background = ${colors.dark2}
|
|||||||
;label-mode-underline = ${colors.light2}
|
;label-mode-underline = ${colors.light2}
|
||||||
|
|
||||||
; can use: %icon% %name% %index
|
; can use: %icon% %name% %index
|
||||||
label-focused = %name%
|
label-focused = "%name%"
|
||||||
label-unfocused = ·%name%
|
label-unfocused = "·%name%"
|
||||||
label-visible = ·%name%
|
label-visible = "·%name%"
|
||||||
label-urgent = ·%name%
|
label-urgent = "·%name%"
|
||||||
|
|
||||||
label-focused-foreground = ${colors.bright_green}
|
label-focused-foreground = ${colors.bright_green}
|
||||||
label-unfocused-foreground = ${colors.light0_hard}
|
label-unfocused-foreground = ${colors.light0_hard}
|
||||||
@ -578,13 +589,12 @@ full-at = 97
|
|||||||
|
|
||||||
time-format = %H:%M
|
time-format = %H:%M
|
||||||
|
|
||||||
label-charging = %time% %percentage%%
|
label-charging = " %time% %percentage%%"
|
||||||
format-charging = <animation-charging> <label-charging>
|
format-charging = <animation-charging> <label-charging>
|
||||||
;format-charging-underline = #ffb52a
|
;format-charging-underline = #ffb52a
|
||||||
;format-charging-underline = ${colors.underline-battery}
|
;format-charging-underline = ${colors.underline-battery}
|
||||||
|
|
||||||
|
label-discharging = " %time% %percentage%%"
|
||||||
label-discharging = %time% %percentage%%
|
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
;format-discharging-underline = ${self.format-charging-underline}
|
;format-discharging-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
@ -592,11 +602,11 @@ format-full-prefix = " "
|
|||||||
format-full-prefix-foreground = ${colors.bright_green}
|
format-full-prefix-foreground = ${colors.bright_green}
|
||||||
;format-full-underline = ${self.format-charging-underline}
|
;format-full-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
ramp-capacity-0 =
|
ramp-capacity-0 = " "
|
||||||
ramp-capacity-1 =
|
ramp-capacity-1 = " "
|
||||||
ramp-capacity-2 =
|
ramp-capacity-2 = " "
|
||||||
ramp-capacity-3 =
|
ramp-capacity-3 = " "
|
||||||
ramp-capacity-4 =
|
ramp-capacity-4 = " "
|
||||||
ramp-capacity-foreground = ${colors.bright_green}
|
ramp-capacity-foreground = ${colors.bright_green}
|
||||||
|
|
||||||
animation-charging-0 =
|
animation-charging-0 =
|
||||||
|
|||||||
@ -63,7 +63,8 @@ focus_wrapping no
|
|||||||
|
|
||||||
# font pango:DejaVu Sans Mono 8
|
# font pango:DejaVu Sans Mono 8
|
||||||
# font xft:Fantasque Sans Mono 9
|
# font xft:Fantasque Sans Mono 9
|
||||||
font xft:FuraCode Nerd Font 8
|
# font xft:FuraCode Nerd Font 8
|
||||||
|
font xft:Hasklug Nerd Font
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
@ -484,14 +485,18 @@ set $transparent #ffffff00
|
|||||||
# This is how you would get a colors from xrdb
|
# This is how you would get a colors from xrdb
|
||||||
# set_from_resource $color0 i3wm.color0 #000000
|
# set_from_resource $color0 i3wm.color0 #000000
|
||||||
|
|
||||||
# window color class [border| backgr.| text| indicator| child_border]
|
# window color class border backgr. text indicator child_border
|
||||||
client.focused $gray_245 $dark0_hard $light0_hard $bright_orange $bright_green
|
client.focused $bright_green $dark0_hard $light0_hard $bright_orange $bright_green
|
||||||
client.focused_inactive $dark0_hard $dark0_hard $light0_hard $dark0_hard $dark0_hard
|
client.focused_inactive $faded_green $dark0_hard $light0_hard $dark0_hard $dark0_hard
|
||||||
client.unfocused $dark0_hard $dark0_hard $light0_hard $dark0_hard #FFFFFF00
|
client.unfocused $transparent $dark0_hard $light0_hard $dark0_hard $transparent
|
||||||
client.urgent $dark0_hard $dark0 $light0_hard $dark0_hard $bright_orange
|
client.urgent $bright_green $dark0 $light0_hard $dark0_hard $bright_orange
|
||||||
client.placeholder $dark0_hard $dark0_hard $light0_hard $dark0_hard $dark0_hard
|
client.placeholder $bright_green $dark0_hard $light0_hard $dark0_hard $dark0_hard
|
||||||
client.background $dark0_hard
|
client.background $dark0_hard
|
||||||
|
|
||||||
|
titlebar_border_thickness 1
|
||||||
|
titlebar_padding 1 1
|
||||||
|
|
||||||
|
|
||||||
# Took this from the default config
|
# Took this from the default config
|
||||||
# bar {
|
# bar {
|
||||||
# position top
|
# position top
|
||||||
@ -508,7 +513,7 @@ client.background $dark0_hard
|
|||||||
# }
|
# }
|
||||||
|
|
||||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||||
output * bg ~/pictures/l_ash03_big.jpg fill
|
output * bg ~/pictures/wallpaper/l_ash03_big.jpg fill
|
||||||
|
|
||||||
# Testing this out
|
# Testing this out
|
||||||
# dwt - disable while typing
|
# dwt - disable while typing
|
||||||
@ -516,7 +521,10 @@ output * bg ~/pictures/l_ash03_big.jpg fill
|
|||||||
input "1267:12590:ELAN0755:00_04F3:312E_Touchpad" {
|
input "1267:12590:ELAN0755:00_04F3:312E_Touchpad" {
|
||||||
dwt enabled
|
dwt enabled
|
||||||
tap enabled
|
tap enabled
|
||||||
|
# adaptive would be acceleration
|
||||||
|
accel_profile flat
|
||||||
natural_scroll enabled
|
natural_scroll enabled
|
||||||
|
pointer_accel 0.5
|
||||||
middle_emulation enabled
|
middle_emulation enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": ["clock"],
|
||||||
"modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2"],
|
"modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "custom/gpu-temp", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2"],
|
||||||
// Modules configuration
|
// Modules configuration
|
||||||
// "sway/workspaces": {
|
// "sway/workspaces": {
|
||||||
// "disable-scroll": true,
|
// "disable-scroll": true,
|
||||||
@ -183,6 +183,15 @@
|
|||||||
"escape": true,
|
"escape": true,
|
||||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||||
|
},
|
||||||
|
"custom/gpu-temp": {
|
||||||
|
"format": "{icon} {}°C",
|
||||||
|
"max-length": 10,
|
||||||
|
"format-icons": {
|
||||||
|
"default": ""
|
||||||
|
},
|
||||||
|
"escape": true,
|
||||||
|
"exec": "sh $HOME/scripts/gpu.temp.sh 2> /dev/null"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
|
/* compile with */
|
||||||
|
/* sass -w style.scss style.css */
|
||||||
|
|
||||||
* {
|
* {
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
/* font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; */
|
/* font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; */
|
||||||
font-family: FiraCode Nerd Font Mono;
|
font-family: Hasklug Nerd Font;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,4 +235,9 @@ label:focus {
|
|||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#gpu-temp {
|
||||||
|
color: #b16286;
|
||||||
|
border-bottom: 3px solid #b16286;
|
||||||
|
}
|
||||||
|
|
||||||
/*# sourceMappingURL=style.css.map */
|
/*# sourceMappingURL=style.css.map */
|
||||||
|
|||||||
@ -1,15 +1,20 @@
|
|||||||
|
/* compile with */
|
||||||
|
/* sass -w style.scss style.css */
|
||||||
@import 'gruvbox.scss';
|
@import 'gruvbox.scss';
|
||||||
|
|
||||||
* {
|
* {
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
/* font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; */
|
/* font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; */
|
||||||
font-family: FiraCode Nerd Font Mono;
|
/* font-family: FiraCode Nerd Font Mono; */
|
||||||
|
font-family: Hasklug Nerd Font;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
&#waybar {
|
&#waybar {
|
||||||
|
//background-color: $bg0;
|
||||||
background-color: $bg0;
|
background-color: $bg0;
|
||||||
|
opacity: 0.9;
|
||||||
color: $fg0;
|
color: $fg0;
|
||||||
transition-property: background-color;
|
transition-property: background-color;
|
||||||
transition-duration: .5s;
|
transition-duration: .5s;
|
||||||
@ -214,6 +219,7 @@ label:focus {
|
|||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
background-color: $bg0;
|
background-color: $bg0;
|
||||||
|
opacity: 0.9;
|
||||||
|
|
||||||
& > .passive {
|
& > .passive {
|
||||||
-gtk-icon-effect: dim;
|
-gtk-icon-effect: dim;
|
||||||
@ -281,3 +287,11 @@ label:focus {
|
|||||||
background: rgba(0, 0, 0, 0.2);
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#gpu-temp {
|
||||||
|
color: $light-green;
|
||||||
|
|
||||||
|
&.critical {
|
||||||
|
color: $light-red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
10
scripts/executable_gpu.temp.sh
Normal file
10
scripts/executable_gpu.temp.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
if ! command -v nvidia-settings &> /dev/null
|
||||||
|
then
|
||||||
|
# command not found
|
||||||
|
echo ""
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
# simply output the gpucoretemp as reported by the binary
|
||||||
|
nvidia-settings -q gpucoretemp -t
|
||||||
|
fi
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user