diff --git a/compton.conf b/.config/compton.conf similarity index 100% rename from compton.conf rename to .config/compton.conf diff --git a/dunst/dunstrc b/.config/dunst/dunstrc similarity index 100% rename from dunst/dunstrc rename to .config/dunst/dunstrc diff --git a/i3/config b/.config/i3/config similarity index 74% rename from i3/config rename to .config/i3/config index 32d6e3a..5107b3d 100644 --- a/i3/config +++ b/.config/i3/config @@ -9,11 +9,15 @@ font pango: Noto Sans 8 floating_modifier $super #autostart -exec_always --no-startup-id hsetroot -cover ~/Pictures/wallpaper/wallhaven-39gogv.jpg +exec_always --no-startup-id hsetroot -cover ~/Pictures/wallpaper/wallhaven-r2ze21.jpg exec --no-startup-id xsettingsd & exec --no-startup-id compton -b exec --no-startup-id ibus-daemon & -exec --no-startup-id spotify +exec --no-startup-id ~/.SynologyDrive/SynologyDrive.app/bin/cloud-drive-ui + +# 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 # start a terminal bindsym $super+Return exec i3-sensible-terminal @@ -24,9 +28,9 @@ bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show dru # 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+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 3;focus +bindsym $super+Shift+f exec thunar;workspace $workspace;focus #bindsym $super+Shift+g exec geany #change volume @@ -49,6 +53,12 @@ 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 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 @@ -100,19 +110,23 @@ bindsym $alt+Control+Right workspace next bindsym $alt+Control+Left workspace prev set $workspace1 "1: Terminal" -set $workspace2 "2: " -set $workspace3 "3: " -set $workspace4 "4: Editor" +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 5 -bindsym $super+6 workspace 6 -bindsym $super+7 workspace 7 -bindsym $super+8 workspace 8 +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 @@ -120,12 +134,23 @@ 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 5 -bindsym $super+Shift+6 move container to workspace 6 -bindsym $super+Shift+7 move container to workspace 7 -bindsym $super+Shift+8 move container to workspace 8 +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 +# 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 + # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $super+Shift+r restart @@ -163,9 +188,9 @@ for_window [class=".*"] border pixel 4 assign [class=URxvt] $workspace1 assign [class=Firefox|Transmission-gtk] $workspace2 assign [class=Thunar|File-roller] $workspace3 -assign [class=Code|Geany|Evince|Gucharmap|Soffice|libreoffice*] $workspace4 -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 +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 diff --git a/i3status/config b/.config/i3status/config similarity index 88% rename from i3status/config rename to .config/i3status/config index 7d7e724..581e749 100644 --- a/i3status/config +++ b/.config/i3status/config @@ -10,6 +10,8 @@ general { order += "load" order += "cpu_temperature 0" +order += "cpu_temperature 1" +order += "fan_speed 1" order += "disk /" order += "disk /home" # order += "ethernet eno1" @@ -23,9 +25,14 @@ load { cpu_temperature 0 { format = "  %degrees °C " - 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 = "  %free Free " } diff --git a/.screenlayout/LEFT_DELL_S2719DGF+RIGHT_DELL_U3415W.sh b/.screenlayout/LEFT_DELL_S2719DGF+RIGHT_DELL_U3415W.sh new file mode 100755 index 0000000..dae4de0 --- /dev/null +++ b/.screenlayout/LEFT_DELL_S2719DGF+RIGHT_DELL_U3415W.sh @@ -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 diff --git a/.screenlayout/TOP_DELL_U3415W+BOTTOM_DELL_S2719DGF.sh b/.screenlayout/TOP_DELL_U3415W+BOTTOM_DELL_S2719DGF.sh new file mode 100755 index 0000000..f1522d9 --- /dev/null +++ b/.screenlayout/TOP_DELL_U3415W+BOTTOM_DELL_S2719DGF.sh @@ -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 diff --git a/media.md b/media.md index e15a2f9..25a3edb 100644 --- a/media.md +++ b/media.md @@ -9,3 +9,7 @@ ## 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