From 14fb600eea094748199f9d876ece41e342b33e1c Mon Sep 17 00:00:00 2001 From: ziabric Date: Sun, 1 Mar 2026 01:39:46 +0300 Subject: [PATCH] minor --- .config/conky/conky_nets | 29 + .config/conky/conky_proc | 41 + .config/conky/conky_system | 64 + .config/conky/nets.lua | 33 + .config/i3/_config | 190 +++ .config/i3/config | 164 +++ .config/polybar/custom/config.ini | 12 + .config/polybar/custom/main.ini | 87 ++ .config/polybar/custom/modules/bar.ini | 17 + .config/polybar/custom/modules/colors.ini | 6 + .config/polybar/custom/modules/cpu.ini | 22 + .config/polybar/custom/modules/date.ini | 8 + .config/polybar/custom/modules/memory.ini | 6 + .config/polybar/custom/modules/net.ini | 6 + .config/polybar/custom/modules/tray.ini | 8 + .config/polybar/custom/modules/workspaces.ini | 16 + .config/polybar/grayblocks/bars.ini | 556 ++++++++ .config/polybar/grayblocks/colors.ini | 23 + .config/polybar/grayblocks/config.ini | 293 +++++ .config/polybar/grayblocks/launch.sh | 14 + .config/polybar/grayblocks/modules.ini | 1169 +++++++++++++++++ .config/polybar/grayblocks/preview.ini | 316 +++++ .config/polybar/grayblocks/preview.sh | 14 + .../polybar/grayblocks/scripts/checkupdates | 117 ++ .../grayblocks/scripts/color-switch.sh | 55 + .../polybar/grayblocks/scripts/colors-dark.sh | 101 ++ .../grayblocks/scripts/colors-light.sh | 101 ++ .../polybar/grayblocks/scripts/launcher.sh | 3 + .../polybar/grayblocks/scripts/powermenu.sh | 95 ++ .config/polybar/grayblocks/scripts/pywal.sh | 65 + .config/polybar/grayblocks/scripts/random.sh | 73 + .../grayblocks/scripts/rofi/colors.rasi | 10 + .../grayblocks/scripts/rofi/confirm.rasi | 24 + .../grayblocks/scripts/rofi/launcher.rasi | 119 ++ .../grayblocks/scripts/rofi/message.rasi | 24 + .../grayblocks/scripts/rofi/networkmenu.rasi | 127 ++ .../grayblocks/scripts/rofi/powermenu.rasi | 127 ++ .../grayblocks/scripts/rofi/styles.rasi | 127 ++ .config/polybar/grayblocks/scripts/updates.sh | 45 + .config/polybar/grayblocks/user_modules.ini | 251 ++++ .config/rofi/applets/bin/appasroot.sh | 102 ++ .config/rofi/applets/bin/apps.sh | 104 ++ .config/rofi/applets/bin/battery.sh | 134 ++ .config/rofi/applets/bin/brightness.sh | 107 ++ .config/rofi/applets/bin/mpd.sh | 131 ++ .config/rofi/applets/bin/powermenu.sh | 129 ++ .config/rofi/applets/bin/quicklinks.sh | 103 ++ .config/rofi/applets/bin/screenshot.sh | 165 +++ .config/rofi/applets/bin/volume.sh | 134 ++ .config/rofi/applets/shared/colors.rasi | 18 + .config/rofi/applets/shared/fonts.rasi | 12 + .config/rofi/applets/shared/theme.bash | 4 + .config/rofi/applets/type-1/style-1.rasi | 152 +++ .config/rofi/applets/type-1/style-2.rasi | 152 +++ .config/rofi/applets/type-1/style-3.rasi | 152 +++ .config/rofi/applets/type-2/style-1.rasi | 153 +++ .config/rofi/applets/type-2/style-2.rasi | 153 +++ .config/rofi/applets/type-2/style-3.rasi | 153 +++ .config/rofi/applets/type-3/style-1.rasi | 153 +++ .config/rofi/applets/type-3/style-2.rasi | 153 +++ .config/rofi/applets/type-3/style-3.rasi | 153 +++ .config/rofi/applets/type-4/style-1.rasi | 164 +++ .config/rofi/applets/type-4/style-2.rasi | 164 +++ .config/rofi/applets/type-4/style-3.rasi | 164 +++ .config/rofi/applets/type-5/style-1.rasi | 166 +++ .config/rofi/applets/type-5/style-2.rasi | 167 +++ .config/rofi/applets/type-5/style-3.rasi | 176 +++ .config/rofi/colors/adapta.rasi | 16 + .config/rofi/colors/arc.rasi | 16 + .config/rofi/colors/black-red.rasi | 16 + .config/rofi/colors/black.rasi | 16 + .config/rofi/colors/catppuccin.rasi | 16 + .config/rofi/colors/cyberpunk.rasi | 16 + .config/rofi/colors/dracula.rasi | 16 + .config/rofi/colors/everforest.rasi | 16 + .config/rofi/colors/gruvbox.rasi | 16 + .config/rofi/colors/lovelace.rasi | 16 + .config/rofi/colors/navy.rasi | 16 + .config/rofi/colors/nord.rasi | 16 + .config/rofi/colors/onedark.rasi | 16 + .config/rofi/colors/paper.rasi | 16 + .config/rofi/colors/solarized.rasi | 16 + .config/rofi/colors/tokyonight.rasi | 16 + .config/rofi/colors/yousai.rasi | 16 + .config/rofi/config.rasi | 181 +++ .config/rofi/images/a.png | Bin 0 -> 272437 bytes .config/rofi/images/b.png | Bin 0 -> 202080 bytes .config/rofi/images/c.png | Bin 0 -> 228238 bytes .config/rofi/images/d.png | Bin 0 -> 2546962 bytes .config/rofi/images/e.jpg | Bin 0 -> 1448205 bytes .config/rofi/images/f.png | Bin 0 -> 451506 bytes .config/rofi/images/flowers-1.png | Bin 0 -> 664080 bytes .config/rofi/images/flowers-2.png | Bin 0 -> 347508 bytes .config/rofi/images/flowers-3.png | Bin 0 -> 127781 bytes .config/rofi/images/g.png | Bin 0 -> 1599940 bytes .config/rofi/images/gradient.png | Bin 0 -> 682420 bytes .config/rofi/images/h.jpg | Bin 0 -> 1133693 bytes .config/rofi/images/i.jpg | Bin 0 -> 2077018 bytes .config/rofi/images/j.jpg | Bin 0 -> 1402011 bytes .config/rofi/images/paper.png | Bin 0 -> 2794 bytes .config/rofi/images/user.jpeg | Bin 0 -> 98535 bytes .config/rofi/launchers/type-3/launcher.sh | 19 + .../rofi/launchers/type-3/shared/colors.rasi | 18 + .../rofi/launchers/type-3/shared/fonts.rasi | 12 + .config/rofi/launchers/type-3/style-1.rasi | 172 +++ .config/rofi/launchers/type-3/style-10.rasi | 175 +++ .config/rofi/launchers/type-3/style-2.rasi | 173 +++ .config/rofi/launchers/type-3/style-3.rasi | 173 +++ .config/rofi/launchers/type-3/style-4.rasi | 175 +++ .config/rofi/launchers/type-3/style-5.rasi | 175 +++ .config/rofi/launchers/type-3/style-6.rasi | 174 +++ .config/rofi/launchers/type-3/style-7.rasi | 176 +++ .config/rofi/launchers/type-3/style-8.rasi | 175 +++ .config/rofi/launchers/type-3/style-9.rasi | 176 +++ .config/rofi/powermenu/type-3/powermenu.sh | 105 ++ .../rofi/powermenu/type-3/shared/colors.rasi | 18 + .../rofi/powermenu/type-3/shared/confirm.rasi | 93 ++ .../rofi/powermenu/type-3/shared/fonts.rasi | 12 + .config/rofi/powermenu/type-3/style-1.rasi | 179 +++ .config/rofi/powermenu/type-3/style-2.rasi | 179 +++ .config/rofi/powermenu/type-3/style-3.rasi | 180 +++ .config/rofi/powermenu/type-3/style-4.rasi | 180 +++ .config/rofi/powermenu/type-3/style-5.rasi | 181 +++ .config/rofi/scripts/launcher_t1 | 1 + .config/rofi/scripts/launcher_t2 | 1 + .config/rofi/scripts/launcher_t3 | 1 + .config/rofi/scripts/launcher_t4 | 1 + .config/rofi/scripts/launcher_t5 | 1 + .config/rofi/scripts/launcher_t6 | 1 + .config/rofi/scripts/launcher_t7 | 1 + .config/rofi/scripts/powermenu_t1 | 1 + .config/rofi/scripts/powermenu_t2 | 1 + .config/rofi/scripts/powermenu_t3 | 1 + .config/rofi/scripts/powermenu_t4 | 1 + .config/rofi/scripts/powermenu_t5 | 1 + .config/rofi/scripts/powermenu_t6 | 1 + system_info.txt | 59 + 137 files changed, 11521 insertions(+) create mode 100644 .config/conky/conky_nets create mode 100644 .config/conky/conky_proc create mode 100644 .config/conky/conky_system create mode 100644 .config/conky/nets.lua create mode 100644 .config/i3/_config create mode 100644 .config/i3/config create mode 100644 .config/polybar/custom/config.ini create mode 100644 .config/polybar/custom/main.ini create mode 100644 .config/polybar/custom/modules/bar.ini create mode 100644 .config/polybar/custom/modules/colors.ini create mode 100644 .config/polybar/custom/modules/cpu.ini create mode 100644 .config/polybar/custom/modules/date.ini create mode 100644 .config/polybar/custom/modules/memory.ini create mode 100644 .config/polybar/custom/modules/net.ini create mode 100644 .config/polybar/custom/modules/tray.ini create mode 100644 .config/polybar/custom/modules/workspaces.ini create mode 100644 .config/polybar/grayblocks/bars.ini create mode 100644 .config/polybar/grayblocks/colors.ini create mode 100644 .config/polybar/grayblocks/config.ini create mode 100755 .config/polybar/grayblocks/launch.sh create mode 100644 .config/polybar/grayblocks/modules.ini create mode 100644 .config/polybar/grayblocks/preview.ini create mode 100755 .config/polybar/grayblocks/preview.sh create mode 100755 .config/polybar/grayblocks/scripts/checkupdates create mode 100755 .config/polybar/grayblocks/scripts/color-switch.sh create mode 100755 .config/polybar/grayblocks/scripts/colors-dark.sh create mode 100755 .config/polybar/grayblocks/scripts/colors-light.sh create mode 100755 .config/polybar/grayblocks/scripts/launcher.sh create mode 100755 .config/polybar/grayblocks/scripts/powermenu.sh create mode 100755 .config/polybar/grayblocks/scripts/pywal.sh create mode 100755 .config/polybar/grayblocks/scripts/random.sh create mode 100644 .config/polybar/grayblocks/scripts/rofi/colors.rasi create mode 100644 .config/polybar/grayblocks/scripts/rofi/confirm.rasi create mode 100644 .config/polybar/grayblocks/scripts/rofi/launcher.rasi create mode 100644 .config/polybar/grayblocks/scripts/rofi/message.rasi create mode 100644 .config/polybar/grayblocks/scripts/rofi/networkmenu.rasi create mode 100644 .config/polybar/grayblocks/scripts/rofi/powermenu.rasi create mode 100644 .config/polybar/grayblocks/scripts/rofi/styles.rasi create mode 100755 .config/polybar/grayblocks/scripts/updates.sh create mode 100644 .config/polybar/grayblocks/user_modules.ini create mode 100755 .config/rofi/applets/bin/appasroot.sh create mode 100755 .config/rofi/applets/bin/apps.sh create mode 100755 .config/rofi/applets/bin/battery.sh create mode 100755 .config/rofi/applets/bin/brightness.sh create mode 100755 .config/rofi/applets/bin/mpd.sh create mode 100755 .config/rofi/applets/bin/powermenu.sh create mode 100755 .config/rofi/applets/bin/quicklinks.sh create mode 100755 .config/rofi/applets/bin/screenshot.sh create mode 100755 .config/rofi/applets/bin/volume.sh create mode 100644 .config/rofi/applets/shared/colors.rasi create mode 100644 .config/rofi/applets/shared/fonts.rasi create mode 100755 .config/rofi/applets/shared/theme.bash create mode 100644 .config/rofi/applets/type-1/style-1.rasi create mode 100644 .config/rofi/applets/type-1/style-2.rasi create mode 100644 .config/rofi/applets/type-1/style-3.rasi create mode 100644 .config/rofi/applets/type-2/style-1.rasi create mode 100644 .config/rofi/applets/type-2/style-2.rasi create mode 100644 .config/rofi/applets/type-2/style-3.rasi create mode 100644 .config/rofi/applets/type-3/style-1.rasi create mode 100644 .config/rofi/applets/type-3/style-2.rasi create mode 100644 .config/rofi/applets/type-3/style-3.rasi create mode 100644 .config/rofi/applets/type-4/style-1.rasi create mode 100644 .config/rofi/applets/type-4/style-2.rasi create mode 100644 .config/rofi/applets/type-4/style-3.rasi create mode 100644 .config/rofi/applets/type-5/style-1.rasi create mode 100644 .config/rofi/applets/type-5/style-2.rasi create mode 100644 .config/rofi/applets/type-5/style-3.rasi create mode 100644 .config/rofi/colors/adapta.rasi create mode 100644 .config/rofi/colors/arc.rasi create mode 100644 .config/rofi/colors/black-red.rasi create mode 100644 .config/rofi/colors/black.rasi create mode 100644 .config/rofi/colors/catppuccin.rasi create mode 100644 .config/rofi/colors/cyberpunk.rasi create mode 100644 .config/rofi/colors/dracula.rasi create mode 100644 .config/rofi/colors/everforest.rasi create mode 100644 .config/rofi/colors/gruvbox.rasi create mode 100644 .config/rofi/colors/lovelace.rasi create mode 100644 .config/rofi/colors/navy.rasi create mode 100644 .config/rofi/colors/nord.rasi create mode 100644 .config/rofi/colors/onedark.rasi create mode 100644 .config/rofi/colors/paper.rasi create mode 100644 .config/rofi/colors/solarized.rasi create mode 100644 .config/rofi/colors/tokyonight.rasi create mode 100644 .config/rofi/colors/yousai.rasi create mode 100644 .config/rofi/config.rasi create mode 100644 .config/rofi/images/a.png create mode 100644 .config/rofi/images/b.png create mode 100644 .config/rofi/images/c.png create mode 100644 .config/rofi/images/d.png create mode 100644 .config/rofi/images/e.jpg create mode 100644 .config/rofi/images/f.png create mode 100644 .config/rofi/images/flowers-1.png create mode 100644 .config/rofi/images/flowers-2.png create mode 100644 .config/rofi/images/flowers-3.png create mode 100644 .config/rofi/images/g.png create mode 100644 .config/rofi/images/gradient.png create mode 100644 .config/rofi/images/h.jpg create mode 100644 .config/rofi/images/i.jpg create mode 100644 .config/rofi/images/j.jpg create mode 100644 .config/rofi/images/paper.png create mode 100644 .config/rofi/images/user.jpeg create mode 100755 .config/rofi/launchers/type-3/launcher.sh create mode 100644 .config/rofi/launchers/type-3/shared/colors.rasi create mode 100644 .config/rofi/launchers/type-3/shared/fonts.rasi create mode 100644 .config/rofi/launchers/type-3/style-1.rasi create mode 100644 .config/rofi/launchers/type-3/style-10.rasi create mode 100644 .config/rofi/launchers/type-3/style-2.rasi create mode 100644 .config/rofi/launchers/type-3/style-3.rasi create mode 100644 .config/rofi/launchers/type-3/style-4.rasi create mode 100644 .config/rofi/launchers/type-3/style-5.rasi create mode 100644 .config/rofi/launchers/type-3/style-6.rasi create mode 100644 .config/rofi/launchers/type-3/style-7.rasi create mode 100644 .config/rofi/launchers/type-3/style-8.rasi create mode 100644 .config/rofi/launchers/type-3/style-9.rasi create mode 100755 .config/rofi/powermenu/type-3/powermenu.sh create mode 100644 .config/rofi/powermenu/type-3/shared/colors.rasi create mode 100644 .config/rofi/powermenu/type-3/shared/confirm.rasi create mode 100644 .config/rofi/powermenu/type-3/shared/fonts.rasi create mode 100644 .config/rofi/powermenu/type-3/style-1.rasi create mode 100644 .config/rofi/powermenu/type-3/style-2.rasi create mode 100644 .config/rofi/powermenu/type-3/style-3.rasi create mode 100644 .config/rofi/powermenu/type-3/style-4.rasi create mode 100644 .config/rofi/powermenu/type-3/style-5.rasi create mode 120000 .config/rofi/scripts/launcher_t1 create mode 120000 .config/rofi/scripts/launcher_t2 create mode 120000 .config/rofi/scripts/launcher_t3 create mode 120000 .config/rofi/scripts/launcher_t4 create mode 120000 .config/rofi/scripts/launcher_t5 create mode 120000 .config/rofi/scripts/launcher_t6 create mode 120000 .config/rofi/scripts/launcher_t7 create mode 120000 .config/rofi/scripts/powermenu_t1 create mode 120000 .config/rofi/scripts/powermenu_t2 create mode 120000 .config/rofi/scripts/powermenu_t3 create mode 120000 .config/rofi/scripts/powermenu_t4 create mode 120000 .config/rofi/scripts/powermenu_t5 create mode 120000 .config/rofi/scripts/powermenu_t6 create mode 100644 system_info.txt 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 =