This commit is contained in:
Johannes Loher 2020-09-15 05:33:42 +02:00
parent 8486782b4a
commit 478cbad172
3 changed files with 174 additions and 23 deletions

View file

@ -141,13 +141,13 @@ bindsym $mod+r mode "resize"
# ------------------------------------------------------------------------------
# Workspaces
# ------------------------------------------------------------------------------
set $workspace1 "1"
set $workspace2 "2"
set $workspace3 "3"
set $workspace4 "4"
set $workspace5 "5"
set $workspace6 "6"
set $workspace7 "7…"
set $workspace1 "1:"
set $workspace2 "2:"
set $workspace3 "3:"
set $workspace4 "4:"
set $workspace5 "5:"
set $workspace6 "6:"
set $workspace7 "7:…"
# switch to workspace
bindsym $mod+1 workspace $workspace1
@ -198,8 +198,14 @@ bindsym XF86Explorer exec --no-startup-id thunar
# ------------------------------------------------------------------------------
# Audio shortcuts
# ------------------------------------------------------------------------------
{% if yadm.hostname == "avior" %}
set $audio_out alsa_output.pci-0000_00_1f.3.analog-stereo
set $audio_in alsa_input.pci-0000_00_1f.3.analog-stereo
{% else %}
set $audio_out alsa_output.pci-0000_00_1b.0.analog-stereo
set $audio_in alsa_input.pci-0000_00_1b.0.analog-stereo
{% endif %}
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume $audio_out +5%; pkill -RTMIN+10 i3blocks"
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume $audio_out -5%; pkill -RTMIN+10 i3blocks"
@ -211,7 +217,7 @@ bindsym XF86AudioMicMute exec --no-startup-id "pactl set-source-mute $audio_in t
# ------------------------------------------------------------------------------
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +10
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -10
bindsym XF86Display exec --no-startup-id /usr/local/bin/monitor
# ------------------------------------------------------------------------------
# Assignment of progrmans to workspaces
# ------------------------------------------------------------------------------
@ -272,19 +278,5 @@ exec --no-startup-id nm-applet --indicator
# Workspace bar
# ------------------------------------------------------------------------------
bar {
font pango:$font
position top
strip_workspace_numbers yes
colors {
separator $color_fg_unfocused
background $color_bg_focused
# border background text
focused_workspace $color_bg_focused $color_bg_focused $color_fg_focused
active_workspace $color_bg_focused $color_bg_focused $color_fg_unfocused
inactive_workspace $color_bg_focused $color_bg_focused $color_fg_unfocused
urgent_workspace $color_bg_focused $color_bg_focused $color_red
}
#swaybar_command waybar
status_command i3blocks -c ~/.i3blocks.conf
swaybar_command waybar
}

115
.config/waybar/config Normal file
View file

@ -0,0 +1,115 @@
{
"layer": "top",
"position": "top",
// "height": 30,
"modules-left": ["sway/workspaces", "custom/right-arrow-dark"],
"modules-center": [
"custom/left-arrow-dark",
"clock#1",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"clock#2",
"custom/right-arrow-dark",
"custom/right-arrow-light",
"clock#3",
"custom/right-arrow-dark"
],
"modules-right": [
"custom/left-arrow-dark",
"disk",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"pulseaudio",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"battery",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"tray"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"custom/left-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/left-arrow-light": {
"format": "",
"tooltip": false
},
"custom/right-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/right-arrow-light": {
"format": "",
"tooltip": false
},
"disk": {
"interval": 30,
"format": "{free} ",
"tooltip-format": "{used} von {total} in {path} verbraucht ({percentage_used}%)",
"tooltip": false,
"path": "/home"
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock#1": {
"format": "{:%A}",
"tooltip": false
},
"clock#2": {
"format": "{:%H:%M}",
"tooltip": false
},
"clock#3": {
"format": "{:%d.%m.%Y}",
"tooltip": false
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""],
"tooltip": false
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol",
"tooltip": false
}
}

44
.config/waybar/style.css Normal file
View file

@ -0,0 +1,44 @@
* {
border: none;
border-radius: 0;
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: 14pt;
min-height: 0;
}
window#waybar {
background: #252936;
color: #7780a1;
}
#workspaces button {
padding: 0 5px;
background: #1f222d;
color: #7780a1;
}
#workspaces button.focused {
color: #ffffff;
}
#custom-right-arrow-dark,
#custom-left-arrow-dark {
color: #1f222d;
}
#custom-right-arrow-light,
#custom-left-arrow-light {
color: #252936;
background: #1f222d;
}
#clock,
#disk,
#pulseaudio,
#battery,
#tray {
padding-left: 10px;
padding-right: 10px;
background: #1f222d;
}