First night in HomeStation i3

LubuntuLaptop
Jason Zhu 2020-03-09 23:59:22 +11:00
parent 66fc6071f8
commit fb51fefbdf
5 changed files with 97 additions and 7 deletions

57
compton.conf 100755
View File

@ -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; };
};

View File

@ -9,9 +9,10 @@ font pango: Noto Sans 8
floating_modifier $super floating_modifier $super
#autostart #autostart
exec --no-startup-id hsetroot -center ~/.wallpaper.png exec --no-startup-id hsetroot -cover ~/Pictures/wallpaper/wallhaven-39gogv.jpg
exec --no-startup-id xsettingsd & exec --no-startup-id xsettingsd &
exec --no-startup-id compton -b exec --no-startup-id compton -b
exec --no-startup-id ibus-daemon &
# start a terminal # start a terminal
bindsym $super+Return exec i3-sensible-terminal bindsym $super+Return exec i3-sensible-terminal
@ -31,9 +32,9 @@ bindsym $super+Shift+f exec thunar;workspace 3;focus
# bindsym XF86AudioRaiseVolume exec amixer -q set Master # bindsym XF86AudioRaiseVolume exec amixer -q set Master
# bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- # bindsym XF86AudioLowerVolume exec amixer -q set Master 5%-
# bindsym XF86AudioMute exec amixer set Master toggle # bindsym XF86AudioMute exec amixer set Master toggle
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 1 +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume 1 -5%
bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle bindsym XF86AudioMute exec pactl set-sink-mute 1 toggle
# music control # music control
#bindsym XF86AudioNext exec mpc next #bindsym XF86AudioNext exec mpc next
@ -44,6 +45,17 @@ bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioPlay exec playerctl play-pause bindsym XF86AudioPlay exec playerctl play-pause
mode "media" {
bindsym Up exec pactl set-sink-volume 1 +5%
bindsym Down exec pactl set-sink-volume 1 -5%
bindsym Right exec playerctl next
bindsym Left exec playerctl previous
bindsym space exec playerctl play-pause
bindsym Return mode "default"
}
bindsym $super+m mode "media"
# brightness control # brightness control
bindsym XF86MonBrightnessUp exec xbacklight -inc 10 bindsym XF86MonBrightnessUp exec xbacklight -inc 10
bindsym XF86MonBrightnessDown exec xbacklight -dec 10 bindsym XF86MonBrightnessDown exec xbacklight -dec 10

View File

@ -13,9 +13,8 @@ order += "cpu_temperature 0"
order += "disk /" order += "disk /"
order += "disk /home" order += "disk /home"
# order += "ethernet eno1" # order += "ethernet eno1"
order += "wireless wlo1" order += "wireless wlp6s0"
order += "volume master" order += "volume master"
order += "battery 0"
order += "tztime local" order += "tztime local"
load { load {
@ -40,7 +39,7 @@ ethernet eno1 {
format_down = "<span background='#88c0d0'>  Disconnected </span>" format_down = "<span background='#88c0d0'>  Disconnected </span>"
} }
wireless wlo1 { wireless wlp6s0 {
format_up = "<span background='#b48ead'>  %essid </span>" format_up = "<span background='#b48ead'>  %essid </span>"
format_down = "<span background='#b48ead'>  Disconnected </span>" format_down = "<span background='#b48ead'>  Disconnected </span>"
} }

11
ibus-language.md 100644
View File

@ -0,0 +1,11 @@
# 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

11
media.md 100644
View File

@ -0,0 +1,11 @@
# Media control in i3
## Media control using i3 commands
1. Create a mode "media" in i3 configuration
2. Check pulseaudio is installed
3. Check `pactl` is installed, which will be used as command line interface to turn music on/off
4. Check sink number, by `pactl list`, which will show SINK 0,1,2,etc. Find corret based on which hardware are you using
## 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