- waybar rice
- small edit to wezterm
- fixed sway im emoji picker rule
- made screenshot to file. will change later
- added second monitor scale
- added sway next
- fixed dap
This commit is contained in:
iceyrazor 2025-07-27 22:37:30 -05:00
parent 9276e2300a
commit 5887bb0d4d
4 changed files with 159 additions and 146 deletions

View File

@ -25,6 +25,40 @@ if ok then
vim.fn.sign_define('DapStopped', { text='', texthl='DapStopped', linehl='DapStopped', numhl= 'DapStopped' }) vim.fn.sign_define('DapStopped', { text='', texthl='DapStopped', linehl='DapStopped', numhl= 'DapStopped' })
dap.configurations.rust = {
{
name = "Launch",
type = "codelldb",
request = "launch",
program = function()
--return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/target/debug/", "file")
vim.fn.jobstart('cargo build')
if vim.fn.expand("%:t:r") == "main" then
return vim.fn.getcwd() .. "/target/debug/" .. vim.fn.fnamemodify(vim.fn.getcwd(), ':t')
else
return vim.fn.getcwd() .. "/target/debug/" .. vim.fn.fnameescape(vim.fn.expand("%:t:r"))
end
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
}
dap.configurations.c = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
--return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
return vim.fn.getcwd() .. "/" .. vim.fn.fnamemodify(vim.fn.getcwd(), ':t')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
},
}
local ok, dapui = pcall(require, 'dapui') local ok, dapui = pcall(require, 'dapui')
if ok then if ok then
dapui.setup() dapui.setup()
@ -32,7 +66,17 @@ if ok then
vim.keymap.set("n", "<Leader>dl", function() dap.step_into() end) vim.keymap.set("n", "<Leader>dl", function() dap.step_into() end)
vim.keymap.set("n", "<Leader>dj", function() dap.step_over() end) vim.keymap.set("n", "<Leader>dj", function() dap.step_over() end)
vim.keymap.set("n", "<Leader>dk", function() dap.step_out() end) vim.keymap.set("n", "<Leader>dk", function() dap.step_out() end)
vim.keymap.set("n", "<Leader>dc", function() dap.run(dap.configurations.rust[1]) end) --vim.keymap.set("n", "<Leader>dc", function() dap.run(dap.configurations.rust[1]) end)
vim.keymap.set("n", "<Leader>dc", function()
local ft = vim.bo.filetype
local configs = dap.configurations[ft]
if type(configs) == "table" and configs[1] then
dap.run(configs[1])
else
vim.notify("No DAP configuration found for filetype: " .. ft, vim.log.levels.ERROR)
end
end)
vim.keymap.set("n", "<Leader>dC", function() dap.continue() end) vim.keymap.set("n", "<Leader>dC", function() dap.continue() end)
vim.keymap.set("n", "<Leader>db", function() dap.toggle_breakpoint() end) vim.keymap.set("n", "<Leader>db", function() dap.toggle_breakpoint() end)
vim.keymap.set("n", "<Leader>dB", function() vim.keymap.set("n", "<Leader>dB", function()
@ -58,23 +102,4 @@ if ok then
end end
]]-- ]]--
end end
dap.configurations.rust = {
{
name = "Launch",
type = "codelldb",
request = "launch",
program = function()
--return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/target/debug/", "file")
vim.fn.jobstart('cargo build')
if vim.fn.expand("%:t:r") == "main" then
return vim.fn.getcwd() .. "/target/debug/" .. vim.fn.fnamemodify(vim.fn.getcwd(), ':t')
else
return vim.fn.getcwd() .. "/target/debug/" .. vim.fn.fnameescape(vim.fn.expand("%:t:r"))
end
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
}
end end

View File

@ -25,6 +25,7 @@ set $menu rofi -show drun
### Output configuration ### Output configuration
output "HDMI-A-1" scale 0.7 output "HDMI-A-1" scale 0.7
output "DP-1" scale 0.7
workspace 1 output HDMI-A-1 workspace 1 output HDMI-A-1
workspace 2 output HDMI-A-1 workspace 2 output HDMI-A-1
@ -48,33 +49,6 @@ workspace 18 output DP-1
workspace 19 output DP-1 workspace 19 output DP-1
workspace 20 output DP-1 workspace 20 output DP-1
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
# or input <identifier> # or input <identifier>
input "type:keyboard" { input "type:keyboard" {
xkb_layout us,de xkb_layout us,de
@ -82,26 +56,17 @@ input "type:keyboard" {
xkb_options caps:swapescape xkb_options caps:swapescape
} }
### Key bindings
# #
# Basics: # Basics:
# #
# Start a terminal
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+Shift+Return exec $term2 bindsym $mod+Shift+Return exec $term2
# Kill focused window
bindsym $mod+q kill bindsym $mod+q kill
# Start your launcher
bindsym $mod+d exec $menu bindsym $mod+d exec $menu
bindsym $mod+SHIFT+D exec $HOME/.local/bin/system/rofi-search-web.sh bindsym $mod+SHIFT+D exec $HOME/.local/bin/system/rofi-search-web.sh
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal floating_modifier $mod normal
#toggle border #toggle border
@ -114,6 +79,7 @@ input "type:keyboard" {
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
bindsym $mod+Escape exec grim -g "$(slurp -b 00000088 -c cba6f7; sleep 0.5)" - | wl-copy bindsym $mod+Escape exec grim -g "$(slurp -b 00000088 -c cba6f7; sleep 0.5)" - | wl-copy
bindsym $mod+Print exec grim -g "$(slurp -b 00000088 -c cba6f7; sleep 0.5)" - > ~/out.png
bindsym $mod+Shift+Escape exec grim -o HDMI-A-1 - | wl-copy bindsym $mod+Shift+Escape exec grim -o HDMI-A-1 - | wl-copy
# #
# Moving around: # Moving around:
@ -132,6 +98,9 @@ input "type:keyboard" {
# #
# Workspaces: # Workspaces:
# #
# cycle
bindsym $mod+n workspace next
bindsym $mod+b workspace prev
# Switch to workspace # Switch to workspace
bindsym $mod+1 workspace number 1 bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2 bindsym $mod+2 workspace number 2
@ -208,23 +177,13 @@ bindsym $mod+o mode "mon2"
# #
# Scratchpad: # Scratchpad:
# #
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
# #
# Resizing containers: # Resizing containers:
# #
mode "resize" { mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 20px bindsym $left resize shrink width 20px
bindsym $down resize grow height 20px bindsym $down resize grow height 20px
bindsym $up resize shrink height 20px bindsym $up resize shrink height 20px
@ -266,7 +225,7 @@ for_window [class="vesktop"] \
floating enable, \ floating enable, \
border none, \ border none, \
move to workspace 11, \ move to workspace 11, \
resize set 1500 900, \ resize set 1800 1000, \
move position 0 0 move position 0 0
# discord # discord
@ -299,5 +258,4 @@ for_window [app_id="showmethekey-gtk"] \
resize set 1487 50, \ resize set 1487 50, \
# im-emoji-picker window # im-emoji-picker window
for_window [title="im-emoji-picker"] \ no_focus [title="im-emoji-picker"]
focus disable

View File

@ -1,16 +1,15 @@
{ {
"layer": "top", "layer": "top",
"position": "bottom", "position": "bottom",
// "modules-left": ["hyprland/workspaces"], "modules-left": [ "hyprland/workspaces", "sway/workspaces", "custom/ws_end_arrow", "sway/mode" ],
"modules-left": [ "sway/workspaces", "sway/mode" ],
//"modules-center": ["clock", ], //"custom/weather"],
"modules-right": [ "modules-right": [
"custom/mod_end_arrow",
"custom/mic", "custom/mic",
"pulseaudio", "pulseaudio",
//"backlight", //"backlight",
"battery", "battery",
"custom/wifi",
"network", "network",
"cpu", "cpu",
"memory", "memory",
@ -23,80 +22,119 @@
"custom/power" "custom/power"
], ],
"custom/ws_end_arrow":{
"format": "",
"tooltip": false,
},
"custom/mod_end_arrow":{
"format": "",
"tooltip": false,
},
"hyprland/workspaces": { "hyprland/workspaces": {
//"format": "{name}: {icon}", //"format": "{name}: {icon}",
//"all-outputs":true, //"all-outputs":true,
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
/* /*
"1": "", "1": "",
"2": "",
"3": "", "3": "",
"4": "", "4": "",
"5": "" "5":"  ",
*/ */
"1":"  ", "1":"  ",
"2":"  ", "2":"  ",
"3":"  ", "3":"  ",
"4":"  ", "4":"  ",
"5":"  ", "5": " ",
"6":"  ", "6":"  ",
"7":"  ", "7":"  ",
"8":"  ", "8":"  ",
"9":"  ", "9":"  ",
"10":"  ", "10":"  ",
"11":"  ", "11":"  ",
"12":"  ", "12":"  ",
"13":"  ", "13":"  ",
"14":"  ", "14":"  ",
"15":"  ", "15":"  ",
"16":"  ", "16":"  ",
"17":"  ", "17":"  ",
"18":"  ", "18":"  ",
"19":"  ", "19":"  ",
"20":"  " "20":"  "
}, },
/*
"persistent-workspaces": { "persistent-workspaces": {
"1": [], // Always show a workspace with name '3', on all outputs if it does not exists "1": ["HDMI-A-1"],
"2": [], "2": ["HDMI-A-1"],
"3": [], "3": ["HDMI-A-1"],
"4": [], "4": ["HDMI-A-1"],
"5": [], "5": ["HDMI-A-1"],
"6": [], "6": ["HDMI-A-1"],
"7": [], "7": ["HDMI-A-1"],
"8": [], "8": ["HDMI-A-1"],
"9": [], "9": ["HDMI-A-1"],
"10": [] "10": ["HDMI-A-1"],
"11": ["DP-1"],
"12": ["DP-1"],
"13": ["DP-1"],
"14": ["DP-1"],
"15": ["DP-1"],
"16": ["DP-1"],
"17": ["DP-1"],
"18": ["DP-1"],
"19": ["DP-1"],
"20": ["DP-1"],
}, },
*/
"sort-by-name": true "sort-by-name": true
}, },
"sway/workspaces": { "sway/workspaces": {
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"1":"  ", "1":"  ",
"2":"  ", "2":"  ",
"3":"  ", "3":"  ",
"4":"  ", "4":"  ",
"5":"  ", "5":"  ",
"6":"  ", "6":"  ",
"7":"  ", "7":"  ",
"8":"  ", "8":"  ",
"9":"  ", "9":"  ",
"10":"  ", "10":"  ",
"11":"  ", "11":"  ",
"12":"  ", "12":"  ",
"13":"  ", "13":"  ",
"14":"  ", "14":"  ",
"15":"  ", "15":"  ",
"16":"  ", "16":"  ",
"17":"  ", "17":"  ",
"18":"  ", "18":"  ",
"19":"  ", "19":"  ",
"20":"  " "20":"  "
}, },
"persistent-workspaces": {
"1": ["HDMI-A-1"],
"2": ["HDMI-A-1"],
"3": ["HDMI-A-1"],
"4": ["HDMI-A-1"],
"5": ["HDMI-A-1"],
"6": ["HDMI-A-1"],
"7": ["HDMI-A-1"],
"8": ["HDMI-A-1"],
"9": ["HDMI-A-1"],
"10": ["HDMI-A-1"],
"11": ["DP-1"],
"12": ["DP-1"],
"13": ["DP-1"],
"14": ["DP-1"],
"15": ["DP-1"],
"16": ["DP-1"],
"17": ["DP-1"],
"18": ["DP-1"],
"19": ["DP-1"],
"20": ["DP-1"],
},
"sort-by-name": true "sort-by-name": true
}, },
@ -118,7 +156,7 @@
"clock": { "clock": {
"timezone": "America/Chicago", "timezone": "America/Chicago",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%a %m/%d/%Y %I:%M:%S}", "format": "{:%a %m/%d/%Y %I:%M:%S}",
"interval": 1 "interval": 1
}, },
@ -136,26 +174,20 @@
"cpu": { "cpu": {
"interval": 1, "interval": 1,
"format": " {icon0}{icon1}{icon2}{icon3} {usage:>2}%", "format": " {icon0}{icon1}{icon2}{icon3} {usage:>2}%",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"] "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
}, },
"memory": { "memory": {
"interval": 30, "interval": 30,
"format": " {used:0.1f}G/{total:0.1f}G" "format": "   {used:0.1f}G/{total:0.1f}G"
},
"custom/uptime": {
"format": "{}",
"interval": 1600,
"exec": "sh -c '(uptime -p)'"
}, },
"pulseaudio": { "pulseaudio": {
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"format-muted": "", "format-muted": "  ",
"format-icons": { "format-icons": {
"default": ["", "", " "] "default": ["", "", " "]
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
@ -167,7 +199,7 @@
}, },
"custom/lock": { "custom/lock": {
"format": "", "format": "",
"on-click": "hyprlock" "on-click": "hyprlock"
}, },
@ -180,7 +212,7 @@
}, },
"custom/weather": { "custom/weather": {
"format": "{}", "format": "{}",
"tooltip": true, "tooltip": true,
"interval": 1800, "interval": 1800,
"exec": "$(pwd)/scripts/weather-stats/weather-stats", "exec": "$(pwd)/scripts/weather-stats/weather-stats",
@ -188,13 +220,13 @@
}, },
"custom/rss": { "custom/rss": {
"format": " {}", "format": " {}",
"interval": 3, "interval": 3,
"exec": "/usr/bin/newsboat -x print-unread|sed 's/\\s.*//; s/Error:/E/'" "exec": "/usr/bin/newsboat -x print-unread|sed 's/\\s.*//; s/Error:/E/'"
}, },
"custom/disc": { "custom/disc": {
"format": " {}", "format": " {}",
"interval": 20, "interval": 20,
"exec": "df -h -x=used /dev/mapper/artix-root | sed '1d' | awk '{print $4}'| sed 's/[^0-9]*//g'" "exec": "df -h -x=used /dev/mapper/artix-root | sed '1d' | awk '{print $4}'| sed 's/[^0-9]*//g'"
}, },
@ -206,8 +238,8 @@
}, },
"custom/wifi": { "custom/wifi": {
"format": "{}", "format": "{}",
"interval": 1000, "interval": 1000,
"exec": "sed \"s/down/\\:\\(/;s/up/\\:\\)/\" /sys/class/net/$wifi_device/operstate" "exec": "sed 's/down/\\:\\(/;s/up/\\:\\)/' /sys/class/net/wlan0/operstate"
} }
} }

View File

@ -7,8 +7,6 @@ config.enable_tab_bar = false
config.font = wezterm.font_with_fallback { config.font = wezterm.font_with_fallback {
'B612 Mono', 'B612 Mono',
--'Inconsolata',
-- 'CozetteVector', --has weird offset with japanese. きki becomes せse and vice versa
'JetBrainsMono', 'JetBrainsMono',
'JetBrainsMono Nerd Font', 'JetBrainsMono Nerd Font',
'JetBrainsMono Nerd Font Mono', 'JetBrainsMono Nerd Font Mono',