Fix amixer typo

master
Quentin Duchemin 2025-04-23 15:54:31 +02:00
parent bb10a0d5a0
commit dca8f9d5c2
2 changed files with 350 additions and 6 deletions

View File

@ -132,7 +132,7 @@ bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
# start rofi (a program launcher)
bindsym $mod+d exec rofi -show run
bindsym $mod+Shift+d exec rofimoji
bindsym $mod+Shift+d exec rofimoji --skin-tone neutral
# just lock the screen
bindsym $mod+l exec --no-startup-id $Locker && sleep 1
@ -212,9 +212,9 @@ bindsym $mod+ccedilla workspace number 9
bindsym $mod+agrave workspace number 10
# move focused container to workspace
bindsym $mod+Shift+ampersand move container to workspace 1
bindsym $mod+Shift+eacute move container to workspace 2
bindsym $mod+Shift+quotedbl move container to workspace 3
bindsym $mod+Shift+ampersand move container to workspace 1; workspace 1
bindsym $mod+Shift+eacute move container to workspace 2; workspace 2
bindsym $mod+Shift+quotedbl move container to workspace 3; workspace 3
bindsym $mod+Shift+apostrophe move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+minus move container to workspace 6
@ -239,8 +239,8 @@ bindsym $mod+r mode "$resize_mode"
# ALSA keybinding (won't work with some keyboards... scroll in polybar in that case)
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse -M sset Master 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id aimxer -D pulse -M sset Master 5%-
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse -M sset Master 1%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse -M sset Master 1%-
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse -M sset 'Master' toggle
##################################
@ -275,6 +275,7 @@ for_window [class="Signal" window_type="normal"] move scratchpad
for_window [class="Telegram"] move scratchpad
# we don't use class="Thunderbird" to not move windows like "MsgCompose" to scratchpad : only the main window will be in scratchpad
for_window [instance="Mail"] move scratchpad
for_window [class="Blueman-manager"] move scratchpad
for_window [instance="helvum"] floating enable, move scratchpad
for_window [instance="pavucontrol"] floating enable, move scratchpad
# only target main window
@ -327,8 +328,10 @@ exec xrandr --dpi $dpi
exec --no-startup-id xinput set-prop 'FocalTechPS/2 FocalTech Touchpad' 'libinput Accel Speed' 0.8
exec --no-startup-id xinput set-prop 'Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)' 'libinput Accel Speed' 0.8
exec --no-startup-id xinput set-prop "Asus TouchPad" "libinput Accel Speed" 0.65
exec xinput set-prop "DLL07A0:01 044E:120B" "libinput Accel Speed" 0.6
# That one supports tapping but is disabled by default!
exec --no-startup-id xinput set-prop "Asus TouchPad" "libinput Tapping Enabled" 1
exec xinput set-prop "DLL07A0:01 044E:120B" "libinput Tapping Enabled" 1
# GUI for PulseAudio
exec pavucontrol

View File

@ -0,0 +1,341 @@
[variables]
dpi = 110
height = 40
top_left = powermenu system-uptime-pretty battery
top_center = player-mpris
;top_center = xwindow
top_right = system-usb-udev backlight pulseaudio date
bottom_left = i3
bottom_right = temperature cpu memory filesystem-custom
[module/memory]
type = internal/memory
interval = 0.2
format = <label>
format-warn = <label-warn>
warn-percentage = 60
label = ${env:BAR_MEMORY_LAPTOP}
label-warn = ${env:BAR_MEMORY_LAPTOP_WARN}
[variables]
bottom_center = updates-arch-combined network-enp0s31f6 network-wlp2s0
[module/network-wlp2s0]
type = internal/network
interface = wlp2s0
ping-interval = 3
label-connected = ${env:BAR_WIFI_CONNECTED}
label-disconnected =
label-disconnected-foreground = ${colors.text}
[module/network-enp0s20f0u1]
type = internal/network
interface = enp0s20f0u1
ping-interval = 3
label-connected = ${env:BAR_WIRED_CONNECTED}
label-disconnected =
label-disconnected-foreground = ${colors.text}
; Consider an 'UNKNOWN' interface state as up.
; Some devices like USB network adapters have
; an unknown state, even when they're running
; Default: false
unknown-as-up = true
[module/network-enp0s31f6]
type = internal/network
interface = enp0s31f6
ping-interval = 3
label-connected = ${env:BAR_WIRED_CONNECTED}
label-disconnected =
label-disconnected-foreground = ${colors.text}
; Consider an 'UNKNOWN' interface state as up.
; Some devices like USB network adapters have
; an unknown state, even when they're running
; Default: false
unknown-as-up = true
[global/wm]
margin-top=50
include-file = $HOME/.config/polybar/macchiato.ini
; Common to top and bottom bars
[bar/common]
width = 100%
dpi = ${variables.dpi}
enable-ipc = true
height = ${variables.height}
foreground = ${colors.text}
background = ${colors.surface0}
line-size = 3
line-color = ${colors.base}
locale = fr_FR.UTF-8
monitor = ${env:MONITOR:HDMI-0}
[bar/chostytopbar]
inherit = bar/common
font-0 = NotoSans-Regular:size=10;1
font-1 = MaterialIcons-Regular:size=11;4
font-2 = Symbola:size=10;2
font-3 = Weather Icons:size=10;3
overline-size = 10
underline-size = 10
overline-color = ${colors.mauve}
underline-color = ${colors.mauve}
border-bottom-size = 1
border-bottom-color = ${colors.base}
padding-left = 2
padding-right = 10
module-margin-left = 4
module-margin-right = 4
modules-left = ${variables.top_left}
modules-center = ${variables.top_center}
modules-right = ${variables.top_right}
tray-position = right
[bar/chostybottombar]
inherit = bar/common
bottom = true
overline-size = 3
overline-color = ${colors.mauve}
underline-size = 3
underline-color = ${colors.mauve}
spacing = 3
padding-left = 0
padding-right = 5
module-margin-left = 6
module-margin-right = 6
font-0 = NotoSans-Regular:size=10;1
font-1 = Symbola:size=4;2
font-2 = Symbola:size=5;2
;MaterialIcons are the ones used for i3 icons
font-3 = MaterialIcons-Regular:size=11;4
font-4 = Font Awesome 5 Free:style=solid:size=10;2
modules-left = ${variables.bottom_left}
modules-center = ${variables.bottom_center}
modules-right = ${variables.bottom_right}
[module/player-mpris]
type = custom/script
exec = python -u ~/.config/polybar/scripts/player-mpris.py status
tail = true
[module/xwindow]
type = internal/xwindow
label = ${env:BAR_WINDOW}
label-maxlen=100
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-3 = 4;
ws-icon-4 = 5;
ws-icon-5 = 6;
label-separator = |
label-mode-underline = ${colors.surface0}
label-focused = %icon% %name%
label-focused-foreground = ${colors.text}
label-focused-underline = ${colors.mauve}
label-focused-font = 0
label-focused-padding = 4
label-unfocused = %icon% %name%
label-unfocused-underline = ${colors.surface0}
label-unfocused-font = 0
label-unfocused-padding = 4
label-urgent = %icon% %name%
label-urgent-foreground = ${colors.base}
label-urgent-background = ${colors.red}
label-urgent-underline = ${colors.mauve}
label-urgent-font = 0
label-urgent-padding = 4
label-visible = %icon% %name%
label-visible-foreground = ${colors.text}
label-visible-underline = ${colors.surface0}
label-visible-font = 0
label-visible-padding = 4
[module/cpu]
type = internal/cpu
interval = 0.5
format = <label> <ramp-coreload>
label = ${env:BAR_CPU}
ramp-coreload-0 = ▁
ramp-coreload-0-font = 3
ramp-coreload-0-foreground = ${colors.sapphire}
ramp-coreload-1 = ▂
ramp-coreload-1-font = 3
ramp-coreload-1-foreground = ${colors.sapphire}
ramp-coreload-2 = ▃
ramp-coreload-2-font = 3
ramp-coreload-2-foreground = ${colors.sapphire}
ramp-coreload-3 = ▄
ramp-coreload-3-font = 3
ramp-coreload-3-foreground = ${colors.sapphire}
ramp-coreload-4 = ▅
ramp-coreload-4-font = 3
ramp-coreload-4-foreground = ${colors.peach}
ramp-coreload-5 = ▆
ramp-coreload-5-font = 3
ramp-coreload-5-foreground = ${colors.peach}
ramp-coreload-6 = ▇
ramp-coreload-6-font = 3
ramp-coreload-6-foreground = ${colors.maroon}
ramp-coreload-7 = █
ramp-coreload-7-font = 3
ramp-coreload-7-foreground = ${colors.red}
[module/date]
type = internal/date
interval = 1.0
date = " %A %d %B %Y"
time = %H:%M:%S
label = ${env:BAR_DATE}
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
interval = 0.5
format = <label>
format-warn = <label-warn>
label = ${env:BAR_TEMP_OK}
label-warn = ${env:BAR_TEMP_WARN}
label-warn-foreground = ${colors.text}
[module/powermenu]
type = custom/menu
format-padding = 3
label-open = ${env:BAR_MENU_OPEN}
label-close = ${env:BAR_MENU_CLOSE}
label-separator = " · "
menu-0-0 = Exit i3
menu-0-0-foreground = ${colors.text}
menu-0-0-exec = i3-msg exit
menu-0-1 = Reboot
menu-0-1-foreground = ${colors.text}
menu-0-1-exec = menu-open-1
menu-0-2 = Power off
menu-0-2-foreground = ${colors.text}
menu-0-2-exec = menu-open-2
menu-1-0 = Cancel
menu-1-0-foreground = ${colors.mauve}
menu-1-0-exec = menu-open-0
menu-1-1 = Reboot
menu-1-1-foreground = ${colors.mauve}
menu-1-1-exec = systemctl reboot -i
menu-2-0 = Cancel
menu-2-0-foreground = ${colors.mauve}
menu-2-0-exec = menu-open-0
menu-2-1 = Power off
menu-2-1-foreground = ${colors.mauve}
menu-2-1-exec = systemctl poweroff
[module/system-usb-udev]
type = custom/script
exec = ~/.config/polybar/scripts/system-usb-udev.sh
tail = true
click-left = ~/.config/polybar/scripts/system-usb-udev.sh --mount
click-right = ~/.config/polybar/scripts/system-usb-udev.sh --unmount
[module/updates-arch-combined]
type = custom/script
exec = ~/.config/polybar/scripts/updates-arch-combined.sh
interval = 600
[module/filesystem-custom]
type = custom/script
exec = ~/.config/polybar/scripts/filesystem.sh
interval = 60
[module/system-uptime-pretty]
type = custom/script
exec = ~/.config/polybar/scripts/system-uptime-pretty.sh
interval = 30
[module/backlight]
type = internal/backlight
card = intel_backlight
label = ${env:BAR_BACKLIGHT}
bar-width = 10
bar-indicator = |
bar-fill = ─
bar-empty = ─
enable-scroll = true
[module/pulseaudio]
type = internal/pulseaudio
interval = 5
format-volume = <ramp-volume> <label-volume>
label-muted = 🔇 muted
label-muted-foreground = ${colors.rosewater}
ramp-volume-0 = 🔈
ramp-volume-1 = 🔉
ramp-volume-2 = 🔊
ramp-headphones-0 = 
ramp-headphones-1 = 
[module/battery]
type = internal/battery
full-at = 100
battery = BAT0
adapter = AC0
poll-interval = 5
format-charging = <label-charging>
format-discharging = <label-discharging>
format-full = <label-full>
label-charging = ${env:BAR_BATTERY_CHARGING}
label-discharging = ${env:BAR_BATTERY_DISCHARGING}
label-full = ${env:BAR_BATTERY_FULL}
[module/alsa]
type = internal/alsa
master-soundcard = hw:PCH
speaker-soundcard = hw:PCH
headphone-soundcard = hw:PCH
master-mixer = Master
format-volume = <ramp-volume> <label-volume>
label-muted = 🔇 muted
label-muted-foreground = ${colors.rosewater}
ramp-volume-0 = ${env:BAR_LOW_VOL}
ramp-volume-1 = ${env:BAR_MED_VOL}
ramp-volume-2 = ${env:BAR_HIGH_VOL}
ramp-headphones-0 = ${env:BAR_HEAD_VOL}
ramp-headphones-1 = ${env:BAR_HEAD_VOL}
interval = 3