diff --git a/.config/conky/conky_nets b/.config/conky/conky_nets new file mode 100644 index 0000000..1a71b80 --- /dev/null +++ b/.config/conky/conky_nets @@ -0,0 +1,29 @@ +conky.config = { + alignment = 'left', + gap_x = 40, + gap_y = 80, + background = true, + update_interval = 3.0, + double_buffer = true, + use_xft = true, + font = 'DejaVu Sans Mono:size=11', + own_window = true, + own_window_class = 'Conky', + own_window_type = 'override', + own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', + own_window_transparent = false, + own_window_argb_visual = true, + own_window_argb_value = 0, + maximum_width = 450, + draw_shades = false, + draw_outline = false, + top_name_width = 200, + default_color = 'red', + + lua_load = './nets.lua', +} + +conky.text = [[ +${lua_parse get_network_info} +]] + diff --git a/.config/conky/conky_proc b/.config/conky/conky_proc new file mode 100644 index 0000000..22ee7ac --- /dev/null +++ b/.config/conky/conky_proc @@ -0,0 +1,41 @@ +conky.config = { + alignment = 'bottom_right', + gap_x = 40, + gap_y = 80, + background = true, + update_interval = 3.0, + double_buffer = true, + use_xft = true, + font = 'DejaVu Sans Mono:size=10', + own_window = true, + own_window_class = 'Conky', + own_window_type = 'override', -- Window type: "desktop", "override", "panel", "dock" + own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', + own_window_transparent = false, -- Set to false to use own_window_argb_value + own_window_argb_visual = true, + own_window_argb_value = 0, -- Semi-transparent background (0-255) + maximum_width = 450, + draw_shades = false, + draw_outline = false, + top_name_width = 200, + default_color = 'red' +} + +conky.text = [[ +${color white} +${font Ubuntu:bold:size=10}Name${goto 250}PID${goto 330}CPU%${goto 400}MEM%${font} ${color red} +${hr 2} +${top name 1}${goto 250}${top pid 1}${goto 330}${top cpu 1}${goto 400}${top mem 1} +${top name 2}${goto 250}${top pid 2}${goto 330}${top cpu 2}${goto 400}${top mem 2} +${top name 3}${goto 250}${top pid 3}${goto 330}${top cpu 3}${goto 400}${top mem 3} +${top name 4}${goto 250}${top pid 4}${goto 330}${top cpu 4}${goto 400}${top mem 4} +${top name 5}${goto 250}${top pid 5}${goto 330}${top cpu 5}${goto 400}${top mem 5} +${top name 6}${goto 250}${top pid 6}${goto 330}${top cpu 6}${goto 400}${top mem 6} +${top name 7}${goto 250}${top pid 7}${goto 330}${top cpu 7}${goto 400}${top mem 7} +${top name 8}${goto 250}${top pid 8}${goto 330}${top cpu 8}${goto 400}${top mem 8} +${top name 9}${goto 250}${top pid 9}${goto 330}${top cpu 9}${goto 400}${top mem 9} +${top name 10}${goto 250}${top pid 10}${goto 330}${top cpu 10}${goto 400}${top mem 10} +${hr 2} +]] + + diff --git a/.config/conky/conky_system b/.config/conky/conky_system new file mode 100644 index 0000000..48829b9 --- /dev/null +++ b/.config/conky/conky_system @@ -0,0 +1,64 @@ +-- Conky settings +conky.config = { + alignment = 'top_right', -- Position: top right + background = true, -- Set to true for a background + border_width = 1, + cpu_avg_samples = 2, + default_color = 'red', -- Default text color + double_buffer = true, + draw_borders = false, + draw_graph_borders = true, + draw_outline = false, + draw_shades = false, + extra_newline = false, + font = 'Sans:size=11', -- Font and size + gap_x = 100, -- X-axis gap from the screen edge + gap_y = 50, -- Y-axis gap from the screen edge + minimum_height = 5, + minimum_width = 300, + net_avg_samples = 2, + no_buffers = true, + override_utf8_locale = true, + own_window = true, + own_window_class = 'Conky', + own_window_type = 'override', -- Window type: "desktop", "override", "panel", "dock" + own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', + own_window_transparent = false, -- Set to false to use own_window_argb_value + own_window_argb_visual = true, + own_window_argb_value = 0, -- Semi-transparent background (0-255) + stippled_borders = 0, + update_interval = 1.0, -- Update interval in seconds + uppercase = false, + use_spacer = 'none', + use_xft = true, + imlib_cache_size = 0, + show_graph_range = false, + show_graph_scale = false, +} + +-- Conky text +conky.text = [[ +${color #FF3333}System${color} +${color #FFFFFF}Date:${color} ${time %A, %d %B} +${color #FFFFFF}Time:${color} ${time %H:%M:%S} +${color #FFFFFF}Uptime:${color} ${uptime} +${color #FFFFFF}Kernel:${color} ${kernel} + +${color #FF3333}AMD GPU${color} +${color #FFFFFF}Temp:${color} ${execi 10 cat /sys/class/drm/card0/device/hwmon/hwmon*/temp1_input | awk '{print $1/1000}'} °C + +${color #FF3333}CPU${color} +${color #FFFFFF}Usage:${color} ${cpu cpu1}% ${alignr}${cpubar cpu1 6,100} +${color #FFFFFF}Temperature:${color} ${hwmon 1 temp 1}°C +${color #FFFFFF}Processes:${color} ${running_processes}/${processes} + +${color #FF3333}Memory${color} +${color #FFFFFF}RAM:${color} ${memperc}% ${alignr}${membar 6,100} +${color #FFFFFF}Used:${color} ${execi 300 free -m | grep "Mem:" | awk '{print $3" MB"} / {print $2" MB"}'} +${color #FFFFFF}Free:${color} ${execi 300 free -m | grep "Mem:" | awk '{print $4" MB"}'} + +${color #FF3333}Network${color} +${color #FFFFFF}IP Address:${color} ${addr wlan0} +${color #FFFFFF}Download:${color} ${downspeed wlan0} kb/s ${alignr}${totaldown wlan0} +${color #FFFFFF}Upload:${color} ${upspeed wlan0} kb/s ${alignr}${totalup wlan0} +]] diff --git a/.config/conky/nets.lua b/.config/conky/nets.lua new file mode 100644 index 0000000..3b02967 --- /dev/null +++ b/.config/conky/nets.lua @@ -0,0 +1,33 @@ +function conky_get_network_info() + -- получаем список интерфейсов с IPv4-адресами + local f = io.popen("ip -o -4 addr show | awk '{print $2,$4}'") + local output = f:read("*all") + f:close() + + local result = "" + for line in output:gmatch("[^\r\n]+") do + local iface, addr = line:match("([^%s]+)%s+([^%s]+)") + if iface then + -- получаем MAC-адрес + local f_mac = io.popen("cat /sys/class/net/" .. iface .. "/address 2>/dev/null") + local mac = f_mac:read("*l") or "N/A" + f_mac:close() + + local down = conky_parse("${downspeed " .. iface .. "}") + local up = conky_parse("${upspeed " .. iface .. "}") + + result = result .. + string.format("${color white}%s${color} ", iface) .. + string.format("${color red}IP: %s\n", addr) .. + string.format("${color red}MAC: %s\n", mac) .. + string.format("${color red} ↓%s ↑ %s\n\n", down, up) + end + end + + if result == "" then + result = "EMPTY" + end + + return result +end + diff --git a/.config/i3/_config b/.config/i3/_config new file mode 100644 index 0000000..bb2750b --- /dev/null +++ b/.config/i3/_config @@ -0,0 +1,190 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex --autostart --environment i3 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# move tiling windows via drag & drop by left-clicking into the title bar, +# or left-clicking anywhere into the window while holding the floating modifier. +tiling_drag modifier titlebar + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id dmenu_run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status +} diff --git a/.config/i3/config b/.config/i3/config new file mode 100644 index 0000000..1839b37 --- /dev/null +++ b/.config/i3/config @@ -0,0 +1,164 @@ + +# the Super button +set $mod Mod4 + +font pango:monospace 8 + +exec --no-startup-id dex --autostart --environment i3 + +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -i /home/debian/wallpaper_arasaka_1.png +bindsym $mod+Shift+x exec i3lock --nofork -i /home/debian/wallpaper_arasaka_1.png +exec --no-startup-id xset s off -dpms + +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +floating_modifier $mod + +tiling_drag modifier titlebar + +bindsym $mod+Return exec i3-sensible-terminal + +bindsym $mod+Shift+q kill + +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +bindsym $mod+h split h + +bindsym $mod+v split v + +bindsym $mod+f fullscreen toggle + +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +bindsym $mod+Shift+space floating toggle + +bindsym $mod+space focus mode_toggle + +bindsym $mod+a focus parent + +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +bindsym $mod+Shift+c reload +bindsym $mod+Shift+r restart +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" + +mode "resize" { + bindsym j resize shrink width 5 px or 5 ppt + bindsym k resize grow height 5 px or 5 ppt + bindsym l resize shrink height 5 px or 5 ppt + bindsym semicolon resize grow width 5 px or 5 ppt + + # same bindings, but for the arrow keys + 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 + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# ========================= +# CUSTOM SETTINGS +# ========================= + + +bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +10% +bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 10%- + +exec --no-startup-id /home/debian/.config/polybar/grayblocks/launch.sh + +exec_always --no-startup-id feh --bg-fill '/home/debian/wallpaper_arasaka_1.png' + +exec --no-startup-id flameshot + +#exec --no-startup-id compton -c -f -i 0.95 -e 0.9 -r 12 -o 0.7 -l -15 -t -15 -D 10 -I 0.03 -O 0.03 +exec --no-startup-id picom + +exec --no-startup-id conky -c /home/debian/.config/conky/conky_system +exec --no-startup-id conky -c /home/debian/.config/conky/conky_proc +exec --no-startup-id conky -c /home/debian/.config/conky/conky_nets + + +exec --no-startup-id birdtray + +# exec --no-startup-id pasystray + +bindsym $mod+o exec --no-startup-id /home/debian/.config/rofi/powermenu/type-3/powermenu.sh +bindsym $mod+d exec --no-startup-id /home/debian/.config/rofi/launchers/type-3/launcher.sh + +exec --no-startup-id setxkbmap -model pc104 -layout us,ru -option grp:alt_shift_toggle + +for_window [class=".*"] title_format "" +default_border pixel 6 +gaps inner 10 + +# class border backgr. text indicator child_border +client.focused #CC0000 #cc0000 #ffffff #CC0000 #CC0000 +client.focused_inactive #BB3E3E #5f676a #ffffff #484e50 #BB3E3E +client.unfocused #463939 #222222 #888888 #292d2e #463939 +client.urgent #2f343a #900000 #ffffff #900000 #2f343a +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c + + + + diff --git a/.config/polybar/custom/config.ini b/.config/polybar/custom/config.ini new file mode 100644 index 0000000..e0c56f8 --- /dev/null +++ b/.config/polybar/custom/config.ini @@ -0,0 +1,12 @@ +[settings] +screenchange-reload = true + +include-file = ~/.config/polybar/custom/modules/colors.ini +include-file = ~/.config/polybar/custom/modules/bar.ini +include-file = ~/.config/polybar/custom/modules/workspaces.ini +include-file = ~/.config/polybar/custom/modules/cpu.ini +include-file = ~/.config/polybar/custom/modules/memory.ini +include-file = ~/.config/polybar/custom/modules/net.ini +include-file = ~/.config/polybar/custom/modules/date.ini +include-file = ~/.config/polybar/custom/modules/tray.ini + diff --git a/.config/polybar/custom/main.ini b/.config/polybar/custom/main.ini new file mode 100644 index 0000000..221142d --- /dev/null +++ b/.config/polybar/custom/main.ini @@ -0,0 +1,87 @@ +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; POLYBAR CYBERPUNK — Static Neon Red version (no scripts) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +[colors] +background = #0d0d0d +foreground = #c8c8c8 +accent = #ff003c +dim = #444444 + +[bar/cyberpunk] +width = 100% +height = 30 +background = ${colors.background} +foreground = ${colors.foreground} +border-size = 1 +border-color = ${colors.accent} +padding-left = 2 +padding-right = 2 + +font-0 = "Noto Sans:style=Regular:size=10;2" +font-1 = "Font Awesome 6 Free:style=Solid:pixelsize=12" + +modules-left = workspaces +; modules-center = +modules-right = cpu memory network date tray + +[settings] +screenchange-reload = true + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; MODULES +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +[module/workspaces] +type = internal/xworkspaces +label-active = %name% +label-active-background = ${colors.accent} +label-active-foreground = ${colors.background} +label-active-padding = 2 + +label-occupied = %name% +label-occupied-foreground = ${colors.accent} +label-occupied-padding = 2 + +label-empty = %name% +label-empty-foreground = ${colors.dim} +label-empty-padding = 2 + +[module/cpu] +type = internal/cpu +interval = 2 +format =