Merge branch 'HomeWorkstation' of Jason/dotfiles into master
commit
ac81726964
|
@ -0,0 +1,57 @@
|
|||
## shadow
|
||||
shadow = true;
|
||||
no-dnd-shadow = true;
|
||||
no-dock-shadow = true;
|
||||
clear-shadow = true;
|
||||
shadow-radius = 12;
|
||||
shadow-offset-x = -12;
|
||||
shadow-offset-y = -12;
|
||||
shadow-opacity = 0.95;
|
||||
shadow-red = 0.18;
|
||||
shadow-green = 0.20;
|
||||
shadow-blue = 0.25;
|
||||
shadow-exclude = [ "class_g = 'Cairo-clock'" ,
|
||||
"class_g = 'CoverGloobus'",
|
||||
"class_g = 'Tilda'",
|
||||
"class_g = 'Conky'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g = 'Firefox'",
|
||||
"class_g = 'Firefox-esr'",
|
||||
"class_g = 'Dmenu'",
|
||||
"name = 'Notification'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
||||
## fading
|
||||
fading = true;
|
||||
fade-delta = 0.25;
|
||||
fade-in-step = 0.02;
|
||||
fade-out-step = 0.02;
|
||||
fade-exclude = [
|
||||
];
|
||||
|
||||
## other
|
||||
backend = "xrender";
|
||||
mark-wmwin-focused = true;
|
||||
mark-ovredir-focused = true;
|
||||
detect-rounded-corners = true;
|
||||
detect-client-opacity = true;
|
||||
refresh-rate = 0;
|
||||
vsync = "none";
|
||||
dbe = false;
|
||||
paint-on-overlay = true;
|
||||
focus-exclude = [ "class_g = 'Cairo-clock'" ,
|
||||
"class_g = 'CoverGloobus'",
|
||||
"class_g = 'Tilda'",
|
||||
"class_g = 'Firefox'",
|
||||
"class_g = 'Firefox-esr'"
|
||||
];
|
||||
detect-transient = true;
|
||||
detect-client-leader = true;
|
||||
invert-color-include = [ ];
|
||||
glx-copy-from-front = false;
|
||||
glx-swap-method = "undefined";
|
||||
wintypes:
|
||||
{
|
||||
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; };
|
||||
};
|
|
@ -0,0 +1,203 @@
|
|||
############################ GENERAL for all platform #############################
|
||||
# set modifier
|
||||
set $super Mod4
|
||||
set $alt Mod1
|
||||
|
||||
# set font
|
||||
font pango: Noto Sans 8
|
||||
|
||||
# Use Mouse+$super to drag floating windows to their wanted position
|
||||
floating_modifier $super
|
||||
|
||||
# Autostart (GENERAL)
|
||||
exec --no-startup-id xsettingsd &
|
||||
exec --no-startup-id compton -b
|
||||
exec --no-startup-id ibus-daemon &
|
||||
exec --no-startup-id ~/.SynologyDrive/SynologyDrive.app/bin/cloud-drive-ui
|
||||
|
||||
# start a terminal
|
||||
bindsym $super+Return exec i3-sensible-terminal
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'"
|
||||
bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
|
||||
|
||||
# common apps keybinds
|
||||
bindsym Print exec scrot 'Cheese_%a-%d%b%y_%H.%M.png' -e 'viewnior ~/$f'
|
||||
bindsym $super+l exec i3lock -i ~/Pictures/wallpaper/Download-free-Wonder-Woman-Wallpaper-HD-1.jpg
|
||||
bindsym $super+Shift+w exec firefox
|
||||
bindsym $super+Shift+f exec thunar;workspace $workspace;focus
|
||||
|
||||
# kill focused window
|
||||
bindsym $super+c kill
|
||||
# bindsym $alt+F4 kill
|
||||
|
||||
# change focus
|
||||
bindsym $super+Left focus left
|
||||
bindsym $super+Down focus down
|
||||
bindsym $super+Up focus up
|
||||
bindsym $super+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $super+Shift+Left move left
|
||||
bindsym $super+Shift+Down move down
|
||||
bindsym $super+Shift+Up move up
|
||||
bindsym $super+Shift+Right move right
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $super+h split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $super+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $super+f fullscreen toggle
|
||||
|
||||
# change container layout split
|
||||
bindsym $super+s layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $super+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $super+Shift+space focus mode_toggle
|
||||
|
||||
# switch to workspace
|
||||
bindsym $alt+Control+Right workspace next
|
||||
bindsym $alt+Control+Left workspace prev
|
||||
|
||||
set $workspace1 "1: Terminal"
|
||||
set $workspace2 "2: Firefox"
|
||||
set $workspace3 "3: File"
|
||||
set $workspace4 "4: Time"
|
||||
set $workspace5 "5: Editor"
|
||||
set $workspace6 "6: Chat"
|
||||
set $workspace7 "7: Anything"
|
||||
set $workspace8 "8: Anything"
|
||||
set $workspace9 "9: Music"
|
||||
|
||||
bindsym $super+1 workspace $workspace1
|
||||
bindsym $super+2 workspace $workspace2
|
||||
bindsym $super+3 workspace $workspace3
|
||||
bindsym $super+4 workspace $workspace4
|
||||
bindsym $super+5 workspace $workspace5
|
||||
bindsym $super+6 workspace $workspace6
|
||||
bindsym $super+7 workspace $workspace7
|
||||
bindsym $super+8 workspace $workspace8
|
||||
bindsym $super+9 workspace $workspace9
|
||||
|
||||
# Move Focused Container To Workspace
|
||||
bindsym $super+Shift+1 move container to workspace $workspace1
|
||||
bindsym $super+Shift+2 move container to workspace $workspace2
|
||||
bindsym $super+Shift+3 move container to workspace $workspace3
|
||||
bindsym $super+Shift+4 move container to workspace $workspace4
|
||||
bindsym $super+Shift+5 move container to workspace $workspace5
|
||||
bindsym $super+Shift+6 move container to workspace $workspace6
|
||||
bindsym $super+Shift+7 move container to workspace $workspace7
|
||||
bindsym $super+Shift+8 move container to workspace $workspace8
|
||||
bindsym $super+Shift+9 move container to workspace $workspace9
|
||||
|
||||
# Volume Tunning with media key on keyboard (Check media.md in repo for installing/using programs)
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 1 +5%
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 1 -5%
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute 1 toggle
|
||||
|
||||
# Music Control with media key on keyboard (Check media.md in repo for installing/using programs)
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
|
||||
# Media control using separate mode (for 60% keyboard)
|
||||
bindsym $super+m mode "media"
|
||||
mode "media" {
|
||||
bindsym Up exec pactl set-sink-volume 1 +5%
|
||||
bindsym Down exec pactl set-sink-volume 1 -5%
|
||||
bindsym 9 exec pactl set-sink-volume 1 90%
|
||||
bindsym 8 exec pactl set-sink-volume 1 80%
|
||||
bindsym 7 exec pactl set-sink-volume 1 70%
|
||||
bindsym 6 exec pactl set-sink-volume 1 60%
|
||||
bindsym 5 exec pactl set-sink-volume 1 50%
|
||||
bindsym 4 exec pactl set-sink-volume 1 40%
|
||||
|
||||
bindsym Right exec playerctl next
|
||||
bindsym Left exec playerctl previous
|
||||
bindsym space exec playerctl play-pause
|
||||
bindsym Return mode "default"
|
||||
}
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $super+Shift+r restart
|
||||
|
||||
# exit i3
|
||||
bindsym $super+q exec "i3-nagbar -t warning -m 'Really, exit?' -b 'Yes' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
bindsym Left resize shrink width 5 px or 5 ppt
|
||||
bindsym Down resize grow height 5 px or 5 ppt
|
||||
bindsym Up resize shrink height 5 px or 5 ppt
|
||||
bindsym Right resize grow width 5 px or 5 ppt
|
||||
bindsym Return mode "default"
|
||||
}
|
||||
bindsym $super+r mode "resize"
|
||||
|
||||
# panel
|
||||
bar {
|
||||
colors {
|
||||
background #2f343f
|
||||
statusline #2f343f
|
||||
separator #4b5262
|
||||
|
||||
# colour of border, background, and text
|
||||
focused_workspace #2f343f #bf616a #d8dee8
|
||||
active_workspace #2f343f #2f343f #d8dee8
|
||||
inactive_workspace #2f343f #2f343f #d8dee8
|
||||
urgent_workspacei #2f343f #ebcb8b #2f343f
|
||||
}
|
||||
status_command i3status
|
||||
}
|
||||
|
||||
# window rules, you can find the window class using xprop
|
||||
for_window [class=".*"] border pixel 4
|
||||
assign [class=URxvt] $workspace1
|
||||
assign [class=Firefox|Transmission-gtk] $workspace2
|
||||
assign [class=Thunar|File-roller] $workspace3
|
||||
assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] $workspace4
|
||||
assign [class=Code*|Geany|Evince|Gucharmap|Soffice|libreoffice*] $workspace5
|
||||
assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr|Arandr] $workspace6
|
||||
assign [class=Spotify] $workspace9
|
||||
for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol] floating enable
|
||||
for_window [class=URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus
|
||||
for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr] focus
|
||||
|
||||
# colour of border, background, text, indicator, and child_border
|
||||
client.focused #bf616a #2f343f #d8dee8 #bf616a #d8dee8
|
||||
client.focused_inactive #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||
client.unfocused #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||
client.urgent #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||
client.placeholder #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||
client.background #2f343f
|
||||
|
||||
########################### Specific for different platform ###########################
|
||||
|
||||
# Wallpaper
|
||||
exec_always --no-startup-id hsetroot -cover ~/Pictures/wallpaper/wallhaven-r2ze21.jpg
|
||||
|
||||
# Monitor setup
|
||||
# exec_always --no-startup-id bash ~/.screenlayout/TOP_DELL_U3415W+BOTTOM_DELL_S2719DGF.sh
|
||||
exec_always --no-startup-id bash ~/.screenlayout/LEFT_DELL_S2719DGF+RIGHT_DELL_U3415W.sh
|
||||
|
||||
# brightness control (Only available on Laptop)
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
|
||||
|
||||
# Assign workspace on specific monitor
|
||||
workspace $workspace1 output DP-2
|
||||
workspace $workspace2 output DP-2
|
||||
workspace $workspace3 output DP-2
|
||||
workspace $workspace4 output DP-2
|
||||
workspace $workspace5 output DP-0
|
||||
workspace $workspace6 output DP-0
|
||||
workspace $workspace7 output DP-0
|
||||
workspace $workspace8 output DP-0
|
||||
workspace $workspace9 output DP-0
|
|
@ -10,12 +10,13 @@ general {
|
|||
|
||||
order += "load"
|
||||
order += "cpu_temperature 0"
|
||||
order += "cpu_temperature 1"
|
||||
order += "fan_speed 1"
|
||||
order += "disk /"
|
||||
order += "disk /home"
|
||||
# order += "ethernet eno1"
|
||||
order += "wireless wlo1"
|
||||
order += "wireless wlp6s0"
|
||||
order += "volume master"
|
||||
order += "battery 0"
|
||||
order += "tztime local"
|
||||
|
||||
load {
|
||||
|
@ -24,9 +25,14 @@ load {
|
|||
|
||||
cpu_temperature 0 {
|
||||
format = "<span background='#bf616a'> %degrees °C </span>"
|
||||
path = "/sys/class/thermal/thermal_zone0/temp"
|
||||
path = "/sys/class/hwmon/hwmon1/temp1_input" # used by lm_sensors
|
||||
}
|
||||
|
||||
# TODO: complete fan_speed widget
|
||||
# cpu_temperature 1 {
|
||||
# path = "sys/class/hwmon/hwmon2/fan1_input"
|
||||
#}
|
||||
|
||||
disk "/" {
|
||||
format = "<span background='#fec7cd'> %free Free </span>"
|
||||
}
|
||||
|
@ -40,7 +46,7 @@ ethernet eno1 {
|
|||
format_down = "<span background='#88c0d0'> Disconnected </span>"
|
||||
}
|
||||
|
||||
wireless wlo1 {
|
||||
wireless wlp6s0 {
|
||||
format_up = "<span background='#b48ead'> %essid </span>"
|
||||
format_down = "<span background='#b48ead'> Disconnected </span>"
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xrandr --output DVI-D-0 --off --output HDMI-1 --off --output HDMI-0 --off --output DP-3 --off --output DP-2 --mode 2560x1440 --pos 0x0 --rotate normal --output DP-1 --off --output DP-0 --off
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xrandr --output DVI-D-0 --off --output HDMI-1 --off --output HDMI-0 --off --output DP-3 --off --output DP-2 --mode 2560x1440 --pos 0x0 --rotate normal --output DP-1 --off --output DP-0 --mode 3440x1440 --pos 2560x0 --rotate normal
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xrandr --output DVI-D-0 --off --output HDMI-1 --off --output HDMI-0 --off --output DP-3 --off --output DP-2 --mode 2560x1440 --pos 304x1440 --rotate normal --output DP-1 --off --output DP-0 --mode 3440x1440 --pos 0x0 --rotate normal
|
|
@ -0,0 +1,3 @@
|
|||
# backlight control using i3
|
||||
|
||||
Follow [backlight](https://wiki.archlinux.org/index.php/backlight), it will provide step by step guidance to use xbacklight on intel laptop
|
153
i3/config
153
i3/config
|
@ -1,153 +0,0 @@
|
|||
# set modifier
|
||||
set $super Mod4
|
||||
set $alt Mod1
|
||||
|
||||
# set font
|
||||
font pango: Noto Sans 8
|
||||
|
||||
# Use Mouse+$super to drag floating windows to their wanted position
|
||||
floating_modifier $super
|
||||
|
||||
#autostart
|
||||
exec --no-startup-id hsetroot -center ~/.wallpaper.png
|
||||
exec --no-startup-id xsettingsd &
|
||||
exec --no-startup-id compton -b
|
||||
|
||||
# start a terminal
|
||||
bindsym $super+Return exec i3-sensible-terminal
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'"
|
||||
bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
|
||||
|
||||
# common apps keybinds
|
||||
bindsym Print exec scrot 'Cheese_%a-%d%b%y_%H.%M.png' -e 'viewnior ~/$f'
|
||||
bindsym $super+l exec i3lock -i ~/.wallpaper.png
|
||||
bindsym $super+Shift+w exec firefox
|
||||
bindsym $super+Shift+f exec thunar;workspace 3;focus
|
||||
#bindsym $super+Shift+g exec geany
|
||||
|
||||
#change volume
|
||||
# bindsym XF86AudioRaiseVolume exec amixer -q set Master
|
||||
# bindsym XF86AudioLowerVolume exec amixer -q set Master 5%-
|
||||
# bindsym XF86AudioMute exec amixer set Master toggle
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5%
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5%
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle
|
||||
|
||||
# music control
|
||||
#bindsym XF86AudioNext exec mpc next
|
||||
#bindsym XF86AudioPrev exec mpc prev
|
||||
#bindsym XF86AudioPlay exec mpc toggle
|
||||
#bindsym XF86AudioStop exec mpc stop
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
|
||||
# brightness control
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
|
||||
|
||||
# kill focused window
|
||||
bindsym $super+c kill
|
||||
# bindsym $alt+F4 kill
|
||||
|
||||
# change focus
|
||||
bindsym $super+Left focus left
|
||||
bindsym $super+Down focus down
|
||||
bindsym $super+Up focus up
|
||||
bindsym $super+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $super+Shift+Left move left
|
||||
bindsym $super+Shift+Down move down
|
||||
bindsym $super+Shift+Up move up
|
||||
bindsym $super+Shift+Right move right
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym $super+h split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $super+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $super+f fullscreen toggle
|
||||
|
||||
# change container layout split
|
||||
bindsym $super+s layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $super+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $super+Shift+space focus mode_toggle
|
||||
|
||||
# switch to workspace
|
||||
bindsym $alt+Control+Right workspace next
|
||||
bindsym $alt+Control+Left workspace prev
|
||||
bindsym $super+1 workspace 1
|
||||
bindsym $super+2 workspace 2
|
||||
bindsym $super+3 workspace 3
|
||||
bindsym $super+4 workspace 4
|
||||
bindsym $super+5 workspace 5
|
||||
bindsym $super+6 workspace 6
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $super+Shift+1 move container to workspace 1
|
||||
bindsym $super+Shift+2 move container to workspace 2
|
||||
bindsym $super+Shift+3 move container to workspace 3
|
||||
bindsym $super+Shift+4 move container to workspace 4
|
||||
bindsym $super+Shift+5 move container to workspace 5
|
||||
bindsym $super+Shift+6 move container to workspace 6
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $super+Shift+r restart
|
||||
|
||||
# exit i3
|
||||
bindsym $super+q exec "i3-nagbar -t warning -m 'Really, exit?' -b 'Yes' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
bindsym Left resize shrink width 5 px or 5 ppt
|
||||
bindsym Down resize grow height 5 px or 5 ppt
|
||||
bindsym Up resize shrink height 5 px or 5 ppt
|
||||
bindsym Right resize grow width 5 px or 5 ppt
|
||||
bindsym Return mode "default"
|
||||
}
|
||||
bindsym $super+r mode "resize"
|
||||
|
||||
# panel
|
||||
bar {
|
||||
colors {
|
||||
background #2f343f
|
||||
statusline #2f343f
|
||||
separator #4b5262
|
||||
|
||||
# colour of border, background, and text
|
||||
focused_workspace #2f343f #bf616a #d8dee8
|
||||
active_workspace #2f343f #2f343f #d8dee8
|
||||
inactive_workspace #2f343f #2f343f #d8dee8
|
||||
urgent_workspacei #2f343f #ebcb8b #2f343f
|
||||
}
|
||||
status_command i3status
|
||||
}
|
||||
|
||||
# window rules, you can find the window class using xprop
|
||||
for_window [class=".*"] border pixel 4
|
||||
assign [class=URxvt] 1
|
||||
assign [class=Firefox|Transmission-gtk] 2
|
||||
assign [class=Thunar|File-roller] 3
|
||||
assign [class=Geany|Evince|Gucharmap|Soffice|libreoffice*] 4
|
||||
assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] 5
|
||||
assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr|Arandr] 6
|
||||
for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol] floating enable
|
||||
for_window [class=URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus
|
||||
for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr] focus
|
||||
|
||||
# colour of border, background, text, indicator, and child_border
|
||||
client.focused #bf616a #2f343f #d8dee8 #bf616a #d8dee8
|
||||
client.focused_inactive #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||
client.unfocused #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||
client.urgent #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||
client.placeholder #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||
client.background #2f343f
|
|
@ -0,0 +1,13 @@
|
|||
# ibus multi-language input
|
||||
|
||||
|
||||
|
||||
Check current ibus engine: `ibus engine`
|
||||
|
||||
Check available ibus engine: `ibus list-engine`
|
||||
|
||||
## Modification in i3 config
|
||||
|
||||
start ibus engine at beginning
|
||||
|
||||
add `ibus-daemon &` in i3 config
|
|
@ -0,0 +1,51 @@
|
|||
# Media control in i3
|
||||
There are multiple choices of audio program available, the i3 config file I followed at beginning using amixer, while I choose PulseAudio. Please check "addy-dclxvi/i3-staterpack"
|
||||
|
||||
His volume/music control config is shown as below:
|
||||
|
||||
```
|
||||
# change volume
|
||||
bindsym XF86AudioRaiseVolume exec amixer -q set Master
|
||||
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%-
|
||||
bindsym XF86AudioMute exec amixer set Master toggle
|
||||
|
||||
# music control
|
||||
bindsym XF86AudioNext exec mpc next
|
||||
bindsym XF86AudioPrev exec mpc prev
|
||||
bindsym XF86AudioPlay exec mpc toggle
|
||||
bindsym XF86AudioStop exec mpc stop
|
||||
```
|
||||
|
||||
Following are the process I used in my Media/Volume control in i3
|
||||
|
||||
## Volume Control using PulseAudio
|
||||
|
||||
* Install `PulseAudio` (Pulse Audio Sound server system)
|
||||
* Install `pactl` as commandline controller `PulseAudio`
|
||||
* Install `pavucontrol` as GUI controler of `PulseAudio`
|
||||
|
||||
### Check `pactl` controller is working and learn how to use it and add to i3
|
||||
|
||||
1. Play music on youtube or Spotify
|
||||
2. Open `pavucontrol` to check sound is player correctly
|
||||
3. Find correct Sink by `pactl list`, the playing one should be the "Sink" that has "State: Running"
|
||||
4. Increase volume by `pactl set-sink-volume <sink number> 70%`, which change volume and should be reflected on `pavucontrol` and your ear
|
||||
5. Now you know which sink is using and add the command line into i3 config
|
||||
|
||||
## Check `playerctl` controller is working and learn how to use it and add to i3
|
||||
|
||||
1. Play music on Spotify
|
||||
2. Pause the music by `playerctl play-pause`, and check whether the music stopped
|
||||
3. After confimring this commandline worked, add it to with keybind in your i3
|
||||
|
||||
## Media control in separate mode
|
||||
1. Create a mode "media" in i3 configuration
|
||||
2. In the mode, add bindsym to control media flow
|
||||
|
||||
## Media control using TUI
|
||||
1. Install `pulsemixer`
|
||||
2. Use `pulsemixer` TUI to change volume, this program cannot do single channel change, it can only do change on both channel at once
|
||||
|
||||
## Media control using GUI (Suggested in Ubuntu Distro)
|
||||
1. Install `pavucontrol`
|
||||
2. Use `pavucontrol` to change volume
|
|
@ -0,0 +1,9 @@
|
|||
# Multi-screen setup in i3 config
|
||||
|
||||
1. Install `arandr`, which can be used to visually setup multiscreen layout
|
||||
2. Configure multiscreen layout using `arandr` and save to a bash script (which containing `xrandr` commands)
|
||||
3. Add bash script execution in i3 config with `exec_always --no-startup-id ...` to let multiscreen configuration taking effect
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue